Class TimestampWrapper
- java.lang.Object
-
- com.google.android.exoplayer2.effect.TimestampWrapper
-
@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.
-
-
Field Summary
Fields Modifier and Type Field Description longendTimeUsDeprecated.GlEffectglEffectDeprecated.longstartTimeUsDeprecated.
-
Constructor Summary
Constructors Constructor Description TimestampWrapper(GlEffect glEffect, long startTimeUs, long endTimeUs)Deprecated.Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanisNoOp(int inputWidth, int inputHeight)Deprecated.Returns whether aGlEffectapplies no change at every timestamp.GlShaderProgramtoGlShaderProgram(Context context, boolean useHdr)Deprecated.Returns aGlShaderProgramthat applies the effect.
-
-
-
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- TheGlEffectto apply, fromstartTimeUstoendTimeUs. This instance must not change the output dimensions.startTimeUs- The time to begin applyingglEffecton. Must be non-negative.endTimeUs- The time to stop applying {code glEffect} on. Must be non-negative.
-
-
Method Detail
-
toGlShaderProgram
public GlShaderProgram toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException
Deprecated.Description copied from interface:GlEffectReturns aGlShaderProgramthat applies the effect.- Specified by:
toGlShaderProgramin interfaceGlEffect- Parameters:
context- AContext.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.- Throws:
VideoFrameProcessingException- If an error occurs while creating theGlShaderProgram.
-
-