Interface RgbMatrix
- 
- All Known Implementing Classes:
- Brightness,- Contrast,- RgbAdjustment,- RgbFilter
 
 @Deprecated public interface RgbMatrix extends 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.Specifies a 4x4 RGB color transformation matrix to apply to each frame in the fragment shader.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description float[]getMatrix(long presentationTimeUs, boolean useHdr)Deprecated.Returns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.default SingleFrameGlShaderProgramtoGlShaderProgram(Context context, boolean useHdr)Deprecated.Returns aGlShaderProgramthat applies the effect.
 
- 
- 
- 
Method Detail- 
getMatrixfloat[] getMatrix(long presentationTimeUs, boolean useHdr)Deprecated.Returns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.- Parameters:
- presentationTimeUs- The timestamp of the frame to apply the matrix on.
- useHdr- If- true, colors will be in linear RGB BT.2020. If- false, colors will be in linear RGB BT.709. Must be consistent with- useHdrin- toGlShaderProgram(Context, boolean).
- Returns:
- The RgbMatrixto apply to the frame.
 
 - 
toGlShaderProgramdefault SingleFrameGlShaderProgram toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException Deprecated.Description copied from interface:GlEffectReturns aGlShaderProgramthat applies the effect.- Specified by:
- toGlShaderProgramin interface- GlEffect
- Parameters:
- context- A- Context.
- useHdr- Whether input textures come from an HDR source. If- true, colors will be in linear RGB BT.2020. If- false, colors will be in linear RGB BT.709.
- Throws:
- VideoFrameProcessingException- If an error occurs while creating the- GlShaderProgram.
 
 
- 
 
-