Class RgbAdjustment
- java.lang.Object
-
- com.google.android.exoplayer2.effect.RgbAdjustment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRgbAdjustment.BuilderA builder forRgbAdjustmentinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]getMatrix(long presentationTimeUs, boolean useHdr)Returns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.android.exoplayer2.effect.RgbMatrix
toGlTextureProcessor
-
-
-
-
Method Detail
-
getMatrix
public float[] getMatrix(long presentationTimeUs, boolean useHdr)Description copied from interface:RgbMatrixReturns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.- Specified by:
getMatrixin interfaceRgbMatrix- Parameters:
presentationTimeUs- The timestamp of the frame to apply the matrix on.useHdr- Iftrue, colors will be in linear RGB BT.2020. Iffalse, colors will be in linear RGB BT.709. Must be consistent withuseHdrinRgbMatrix.toGlTextureProcessor(Context, boolean).- Returns:
- The
RgbMatrixto apply to the frame.
-
-