Class TimestampWrapper

  • All Implemented Interfaces:
    GlEffect, Effect

    @Deprecated
    public class TimestampWrapper
    extends Object
    implements GlEffect
    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.
    Applies a GlEffect from startTimeUs to endTimeUs, and no change on all other timestamps.
    • Field Detail

      • glEffect

        public final GlEffect glEffect
        Deprecated.
      • startTimeUs

        public final long startTimeUs
        Deprecated.
      • endTimeUs

        public final long endTimeUs
        Deprecated.
    • Constructor Detail

      • TimestampWrapper

        public TimestampWrapper​(GlEffect glEffect,
                                @IntRange(from=0L)
                                long startTimeUs,
                                @IntRange(from=0L)
                                long endTimeUs)
        Deprecated.
        Creates a new instance.
        Parameters:
        glEffect - The GlEffect to apply, from startTimeUs to endTimeUs. This instance must not change the output dimensions.
        startTimeUs - The time to begin applying glEffect on. Must be non-negative.
        endTimeUs - The time to stop applying {code glEffect} on. Must be non-negative.
    • Method Detail

      • isNoOp

        public boolean isNoOp​(int inputWidth,
                              int inputHeight)
        Deprecated.
        Description copied from interface: GlEffect
        Returns whether a GlEffect applies no change at every timestamp.

        This can be used as a hint to skip this instance.

        Specified by:
        isNoOp in interface GlEffect
        Parameters:
        inputWidth - The input frame width, in pixels.
        inputHeight - The input frame height, in pixels.