Class HslAdjustment
- java.lang.Object
-
- com.google.android.exoplayer2.effect.HslAdjustment
-
@Deprecated public class HslAdjustment extends Object implements GlEffect
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 forHslAdjustment
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 aGlEffect
applies no change at every timestamp.SingleFrameGlShaderProgram
toGlShaderProgram(Context context, boolean useHdr)
Deprecated.Returns aGlShaderProgram
that applies the effect.
-
-
-
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 toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException
Deprecated.Description copied from interface:GlEffect
Returns aGlShaderProgram
that applies the effect.- Specified by:
toGlShaderProgram
in interfaceGlEffect
- Parameters:
context
- AContext
.useHdr
- Whether input textures come from an HDR source. Iftrue
, colors will be in linear RGB BT.2020. Iffalse
, colors will be in linear RGB BT.709.- Throws:
VideoFrameProcessingException
- If an error occurs while creating theGlShaderProgram
.
-
-