Class SingleFrameGlShaderProgram
- java.lang.Object
-
- com.google.android.exoplayer2.effect.BaseGlShaderProgram
-
- com.google.android.exoplayer2.effect.SingleFrameGlShaderProgram
-
- All Implemented Interfaces:
GlShaderProgram
@Deprecated public abstract class SingleFrameGlShaderProgram extends BaseGlShaderProgram
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, implementGlShaderProgram
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 aSingleFrameGlShaderProgram
instance.
-
Method Summary
-
Methods inherited from class com.google.android.exoplayer2.effect.BaseGlShaderProgram
configure, drawFrame, flush, queueInputFrame, release, releaseOutputFrame, setErrorListener, setGlObjectsProvider, setInputListener, setOutputListener, signalEndOfCurrentInputStream
-
-
-
-
Constructor Detail
-
SingleFrameGlShaderProgram
public SingleFrameGlShaderProgram(boolean useHdr)
Deprecated.Creates aSingleFrameGlShaderProgram
instance.- Parameters:
useHdr
- Whether input textures come from an HDR source. Iftrue
, colors will be in linear RGB BT.2020. Iffalse
, colors will be in linear RGB BT.709.
-
-