Class Contrast
- java.lang.Object
-
- com.google.android.exoplayer2.effect.Contrast
-
-
Field Summary
Fields Modifier and Type Field Description float
contrast
Adjusts the contrast of video frames in the interval [-1, 1].
-
Constructor Summary
Constructors Constructor Description Contrast(float contrast)
Creates a new instance for the given contrast value.
-
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.
-
-
-
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
-
-