docs/doc/reference/com/google/android/exoplayer2/effect/SingleFrameGlShaderProgram.html
Package com.google.android.exoplayer2.effect
All Implemented Interfaces:GlShaderProgram
[@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.
-
GlShaderProgram.ErrorListener, GlShaderProgram.InputListener, GlShaderProgram.OutputListener
-
inputListener
Constructors | Constructor | Description |
| --- | --- |
| SingleFrameGlShaderProgram(boolean useHdr) |
Deprecated.
Creates a SingleFrameGlShaderProgram instance.
|
-
configure, drawFrame, flush, queueInputFrame, release, releaseOutputFrame, setErrorListener, setGlObjectsProvider, setInputListener, setOutputListener, signalEndOfCurrentInputStream
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.