Interface GlMatrixTransformation

  • All Superinterfaces:
    Effect, GlEffect
    All Known Subinterfaces:
    MatrixTransformation
    All Known Implementing Classes:
    Crop, Presentation, ScaleAndRotateTransformation

    @Deprecated
    public interface GlMatrixTransformation
    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 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.

    • Method Detail

      • configure

        default Size 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.
      • getGlMatrixArray

        float[] getGlMatrixArray​(long presentationTimeUs)
        Deprecated.
        Returns the 4x4 transformation Matrix to apply to the frame with the given timestamp.