Class Contrast
- java.lang.Object
-
- com.google.android.exoplayer2.effect.Contrast
-
-
Field Summary
Fields Modifier and Type Field Description floatcontrastAdjusts 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 SingleFrameGlTextureProcessortoGlTextureProcessor(Context context, boolean useHdr)Returns aSingleFrameGlTextureProcessorthat applies the effect.
-
-
-
Method Detail
-
toGlTextureProcessor
public SingleFrameGlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr) throws FrameProcessingException
Description copied from interface:GlEffectReturns aSingleFrameGlTextureProcessorthat applies the effect.- Specified by:
toGlTextureProcessorin 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
-
-