docs/doc/reference/com/google/android/exoplayer2/effect/GlMatrixTransformation.html
Package com.google.android.exoplayer2.effect
Effect, GlEffectAll Known Subinterfaces:MatrixTransformationAll Known Implementing Classes:Crop, Presentation, ScaleAndRotateTransformation[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceGlMatrixTransformationextends[GlEffect](GlEffect.html "interface in com.google.android.exoplayer2.effect")
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 transformation Matrix to apply in the vertex shader for each input frame.
The matrix is applied to points given in normalized device coordinates (-1 to 1 on x, y, and z axes). Transformed pixels that are moved outside of the normal device coordinate range are clipped.
Output frame pixels outside of the transformed input frame will be black, with alpha = 0 if applicable.
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| default Size | configure(int inputWidth, int inputHeight) |
Deprecated.
Configures the input and output dimensions.
|
| float[] | getGlMatrixArray(long presentationTimeUs) |
Deprecated.
Returns the 4x4 transformation Matrix to apply to the frame with the given timestamp.
|
| default SingleFrameGlShaderProgram | toGlShaderProgram(Context context, boolean useHdr) |
Deprecated.
Returns a GlShaderProgram that applies the effect.
|
-
isNoOp
-
default[Size](../util/Size.html "class in com.google.android.exoplayer2.util")configure(int inputWidth,
int inputHeight)
Deprecated.
Configures the input and output dimensions.
Must be called before getGlMatrixArray(long).
Parameters:inputWidth - The input frame width, in pixels.inputHeight - The input frame height, in pixels.Returns:The output frame width and height, in pixels.
-
float[] getGlMatrixArray(long presentationTimeUs)
Deprecated.
Returns the 4x4 transformation Matrix to apply to the frame with the given timestamp.
-
default[SingleFrameGlShaderProgram](SingleFrameGlShaderProgram.html "class in com.google.android.exoplayer2.effect")toGlShaderProgram([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,
boolean useHdr)
throws[VideoFrameProcessingException](../util/VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")
Deprecated.
Description copied from interface: GlEffect
Returns a GlShaderProgram that applies the effect.
Specified by:toGlShaderProgram in interface GlEffectParameters: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.