Back to Exoplayer

HslAdjustment (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/effect/HslAdjustment.html

latest4.7 KB
Original Source

Package com.google.android.exoplayer2.effect

Class HslAdjustment

  • java.lang.Object

    • com.google.android.exoplayer2.effect.HslAdjustment
  • All Implemented Interfaces:GlEffect, Effect


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classHslAdjustmentextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[GlEffect](GlEffect.html "interface in com.google.android.exoplayer2.effect")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Adjusts the HSL (Hue, Saturation, and Lightness) of a frame.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static class | HslAdjustment.Builder | Deprecated.

A builder for HslAdjustment instances. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | float | hueAdjustmentDegrees | Deprecated.

Indicates the hue adjustment in degrees. | | float | lightnessAdjustment | Deprecated.

Indicates the lightness adjustment. | | float | saturationAdjustment | Deprecated.

Indicates the saturation adjustment. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | isNoOp​(int inputWidth, int inputHeight) | Deprecated.

Returns whether a GlEffect applies no change at every timestamp. | | SingleFrameGlShaderProgram | toGlShaderProgram​(Context context, boolean useHdr) | Deprecated.

Returns a GlShaderProgram that applies the effect. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

hueAdjustmentDegrees

public final float hueAdjustmentDegrees

Deprecated.

Indicates the hue adjustment in degrees.

- 

saturationAdjustment

public final float saturationAdjustment

Deprecated.

Indicates the saturation adjustment.

- 

lightnessAdjustment

public final float lightnessAdjustment

Deprecated.

Indicates the lightness adjustment.

Method Detail

- 

toGlShaderProgram

public[SingleFrameGlShaderProgram](SingleFrameGlShaderProgram.html "class in com.google.android.exoplayer2.effect")toGlShaderProgram​([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,
                                                    boolean useHdr)
                                             throws[VideoFrameProcessingException](../util/VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")

Deprecated.

Description copied from interface: GlEffect

Returns a GlShaderProgram that applies the effect. Specified by:toGlShaderProgram in interface GlEffectParameters:context - A Context.useHdr - Whether input textures come from an HDR source. If true, colors will be in linear RGB BT.2020. If false, colors will be in linear RGB BT.709.Throws:VideoFrameProcessingException - If an error occurs while creating the GlShaderProgram.

- 

isNoOp

public boolean isNoOp​(int inputWidth,
                      int inputHeight)

Deprecated.

Description copied from interface: GlEffect

Returns whether a GlEffect applies no change at every timestamp.

This can be used as a hint to skip this instance.

Specified by:isNoOp in interface GlEffectParameters:inputWidth - The input frame width, in pixels.inputHeight - The input frame height, in pixels.