Class 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, implement GlShaderProgram directly.

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

    • 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.