Class HslAdjustment
- java.lang.Object
-
- com.google.android.exoplayer2.effect.HslAdjustment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HslAdjustment.Builder
A builder forHslAdjustment
instances.
-
Field Summary
Fields Modifier and Type Field Description float
hueAdjustmentDegrees
Indicates the hue adjustment in degrees.float
lightnessAdjustment
Indicates the lightness adjustment.float
saturationAdjustment
Indicates the saturation adjustment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleFrameGlTextureProcessor
toGlTextureProcessor(Context context, boolean useHdr)
Returns aSingleFrameGlTextureProcessor
that applies the effect.
-
-
-
Field Detail
-
hueAdjustmentDegrees
public final float hueAdjustmentDegrees
Indicates the hue adjustment in degrees.
-
saturationAdjustment
public final float saturationAdjustment
Indicates the saturation adjustment.
-
lightnessAdjustment
public final float lightnessAdjustment
Indicates the lightness adjustment.
-
-
Method Detail
-
toGlTextureProcessor
public SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr) throws FrameProcessingException
Description copied from interface:GlEffect
Returns aSingleFrameGlTextureProcessor
that applies the effect.- Specified by:
toGlTextureProcessor
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:
FrameProcessingException
-
-