Back to Exoplayer

ColorLut (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/effect/ColorLut.html

latest3.8 KB
Original Source

Package com.google.android.exoplayer2.effect

Interface ColorLut

  • All Superinterfaces:Effect, GlEffectAll Known Implementing Classes:SingleColorLut

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceColorLutextends[GlEffect](GlEffect.html "interface in com.google.android.exoplayer2.effect")

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 a GlShaderProgram that applies the effect. |

- 

Methods inherited from interface com.google.android.exoplayer2.effect.GlEffect

isNoOp

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](../util/GlUtil.GlException.html "class in com.google.android.exoplayer2.util")

Deprecated.

Releases the OpenGL texture of the LUT. Throws:GlUtil.GlException

- 

toGlShaderProgram

default[SingleFrameGlShaderProgram](SingleFrameGlShaderProgram.html "class in com.google.android.exoplayer2.effect")toGlShaderProgram​([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,
                                                     boolean useHdr)
                                              throws[VideoFrameProcessingException](../util/VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")

Deprecated.

Description copied from interface: GlEffect

Returns a GlShaderProgram that applies the effect. Specified by:toGlShaderProgram in interface GlEffectParameters:context - A Context.useHdr - Whether input textures come from an HDR source. If true, colors will be in linear RGB BT.2020. If false, colors will be in linear RGB BT.709.Throws:VideoFrameProcessingException - If an error occurs while creating the GlShaderProgram.