Interface GlMatrixTransformation
-
- All Superinterfaces:
GlEffect
- All Known Subinterfaces:
MatrixTransformation
- All Known Implementing Classes:
Presentation
,ScaleToFitTransformation
public interface GlMatrixTransformation extends GlEffect
Specifies a 4x4 transformationMatrix
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, 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Size
configure(int inputWidth, int inputHeight)
Configures the input and output dimensions.float[]
getGlMatrixArray(long presentationTimeUs)
Returns the 4x4 transformationMatrix
to apply to the frame with the given timestamp.default SingleFrameGlTextureProcessor
toGlTextureProcessor()
Returns aSingleFrameGlTextureProcessor
that applies the effect.
-
-
-
Method Detail
-
configure
default Size configure(int inputWidth, int inputHeight)
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
Size
, in pixels.
-
getGlMatrixArray
float[] getGlMatrixArray(long presentationTimeUs)
Returns the 4x4 transformationMatrix
to apply to the frame with the given timestamp.
-
toGlTextureProcessor
default SingleFrameGlTextureProcessor toGlTextureProcessor()
Description copied from interface:GlEffect
Returns aSingleFrameGlTextureProcessor
that applies the effect.- Specified by:
toGlTextureProcessor
in interfaceGlEffect
-
-