ColorLut
@UnstableApi
public interface ColorLut extends 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 methods |
|
|---|---|
abstract int |
getLength(long presentationTimeUs)Returns the length N of the 3D N x N x N LUT cube with the given timestamp. |
abstract int |
getLutTextureId(long presentationTimeUs)Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp. |
abstract void |
release()Releases the OpenGL texture of the LUT. |
default GlShaderProgram |
toGlShaderProgram(Context context, boolean useHdr)Returns a |
Inherited methods |
||
|---|---|---|
|
||
Public methods
getLength
abstract int getLength(long presentationTimeUs)
Returns the length N of the 3D N x N x N LUT cube with the given timestamp.
getLutTextureId
abstract int getLutTextureId(long presentationTimeUs)
Returns the OpenGL texture ID of the LUT to apply to the pixels of the frame with the given timestamp.
toGlShaderProgram
default GlShaderProgram toGlShaderProgram(Context context, boolean useHdr)
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
Context context |
A |
boolean useHdr |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |