Class BaseGlShaderProgram

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class BaseGlShaderProgram
    extends Object
    implements GlShaderProgram
    Deprecated. 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.
    A base implementation of GlShaderProgram.

    BaseGlShaderProgram manages an output texture pool, whose size is configurable on construction. An implementation should manage a GLSL shader program for processing frames. Override drawFrame(int, long) to customize drawing. Implementations generally copy input pixels into an output frame, with changes to pixels specific to the implementation.

    BaseShaderProgram implementations can produce any number of output frames per input frame with the same presentation timestamp. SingleFrameGlShaderProgram can be used to implement a GlShaderProgram that produces exactly one output frame per input frame.

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