Back to Exoplayer

SingleFrameGlShaderProgram (ExoPlayer library)

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

latest3.3 KB
Original Source

Package com.google.android.exoplayer2.effect

Class SingleFrameGlShaderProgram


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classSingleFrameGlShaderProgramextends[BaseGlShaderProgram](BaseGlShaderProgram.html "class 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.

Manages a GLSL shader program for processing a frame. Implementations generally copy input pixels into an output frame, with changes to pixels specific to the implementation.

SingleFrameGlShaderProgram implementations must produce exactly one output frame per input frame with the same presentation timestamp. For more flexibility, implement GlShaderProgram directly.

All methods in this class must be called on the thread that owns the OpenGL context.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.effect.GlShaderProgram

GlShaderProgram.ErrorListener, GlShaderProgram.InputListener, GlShaderProgram.OutputListener

Field Summary

- 

Fields inherited from class com.google.android.exoplayer2.effect.BaseGlShaderProgram

inputListener

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | SingleFrameGlShaderProgram​(boolean useHdr) | Deprecated.

Creates a SingleFrameGlShaderProgram instance. |

Method Summary

- 

Methods inherited from class com.google.android.exoplayer2.effect.BaseGlShaderProgram

configure, drawFrame, flush, queueInputFrame, release, releaseOutputFrame, setErrorListener, setGlObjectsProvider, setInputListener, setOutputListener, signalEndOfCurrentInputStream

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

SingleFrameGlShaderProgram

public SingleFrameGlShaderProgram​(boolean useHdr)

Deprecated.

Creates a SingleFrameGlShaderProgram instance. Parameters: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.