ColorLut
@UnstableApi
interface ColorLut : GlEffect
SingleColorLut |
Transforms the colors of a frame by applying the same color lookup table to each frame. |
Specifies color transformations using color lookup tables to apply to each frame in the fragment shader.
Summary
Public functions |
|
|---|---|
Int |
Returns the length N of the 3D N x N x N LUT cube with the given timestamp. |
Int |
getLutTextureId(presentationTimeUs: Long)Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp. |
Unit |
release()Releases the OpenGL texture of the LUT. |
GlShaderProgram! |
toGlShaderProgram(context: Context!, useHdr: Boolean)Returns a |
Inherited functions |
||
|---|---|---|
|
||
Public functions
getLength
fun getLength(presentationTimeUs: Long): Int
Returns the length N of the 3D N x N x N LUT cube with the given timestamp.
getLutTextureId
fun getLutTextureId(presentationTimeUs: Long): Int
Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp.
toGlShaderProgram
fun toGlShaderProgram(context: Context!, useHdr: Boolean): GlShaderProgram!
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
context: Context! |
A |
useHdr: Boolean |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |