docs/doc/reference/com/google/android/exoplayer2/effect/MatrixTransformation.html
Package com.google.android.exoplayer2.effect
Effect, GlEffect, GlMatrixTransformationAll Known Implementing Classes:Crop, Presentation, ScaleAndRotateTransformation[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceMatrixTransformationextends[GlMatrixTransformation](GlMatrixTransformation.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 3x3 transformation Matrix to apply in the vertex shader for each frame.
The matrix is applied to points given in normalized device coordinates (-1 to 1 on x and y 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 float[] | getGlMatrixArray(long presentationTimeUs) |
Deprecated.
Returns the 4x4 transformation Matrix to apply to the frame with the given timestamp.
|
| Matrix | getMatrix(long presentationTimeUs) |
Deprecated.
Returns the 3x3 transformation Matrix to apply to the frame with the given timestamp.
|
-
isNoOp
-
configure, toGlShaderProgram
-
[Matrix](https://developer.android.com/reference/android/graphics/Matrix.html "class or interface in android.graphics")getMatrix(long presentationTimeUs)
Deprecated.
Returns the 3x3 transformation Matrix to apply to the frame with the given timestamp.
-
default float[] getGlMatrixArray(long presentationTimeUs)
Deprecated.
Description copied from interface: GlMatrixTransformation
Returns the 4x4 transformation Matrix to apply to the frame with the given timestamp.
Specified by:getGlMatrixArray in interface GlMatrixTransformation