Interface ColorLut
-
- All Known Implementing Classes:
SingleColorLut
@Deprecated public interface ColorLut 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 color transformations using color lookup tables to apply to each frame in the fragment shader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description int
getLength(long presentationTimeUs)
Deprecated.Returns the length N of the 3D N x N x N LUT cube with the given timestamp.int
getLutTextureId(long presentationTimeUs)
Deprecated.Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp.void
release()
Deprecated.Releases the OpenGL texture of the LUT.default SingleFrameGlShaderProgram
toGlShaderProgram(Context context, boolean useHdr)
Deprecated.Returns aGlShaderProgram
that applies the effect.
-
-
-
Method Detail
-
getLutTextureId
int getLutTextureId(long presentationTimeUs)
Deprecated.Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp.
-
getLength
int getLength(long presentationTimeUs)
Deprecated.Returns the length N of the 3D N x N x N LUT cube with the given timestamp.
-
release
void release() throws GlUtil.GlException
Deprecated.Releases the OpenGL texture of the LUT.- Throws:
GlUtil.GlException
-
toGlShaderProgram
default SingleFrameGlShaderProgram toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException
Deprecated.Description copied from interface:GlEffect
Returns aGlShaderProgram
that applies the effect.- Specified by:
toGlShaderProgram
in interfaceGlEffect
- Parameters:
context
- AContext
.useHdr
- Whether input textures come from an HDR source. Iftrue
, colors will be in linear RGB BT.2020. Iffalse
, colors will be in linear RGB BT.709.- Throws:
VideoFrameProcessingException
- If an error occurs while creating theGlShaderProgram
.
-
-