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 long
endTimeUs
Deprecated.GlEffect
glEffect
Deprecated.long
startTimeUs
Deprecated.
-
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 boolean
isNoOp(int inputWidth, int inputHeight)
Deprecated.Returns whether aGlEffect
applies no change at every timestamp.GlShaderProgram
toGlShaderProgram(Context context, boolean useHdr)
Deprecated.Returns aGlShaderProgram
that 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
- TheGlEffect
to apply, fromstartTimeUs
toendTimeUs
. This instance must not change the output dimensions.startTimeUs
- The time to begin applyingglEffect
on. 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:GlEffect
Returns aGlShaderProgram
that applies the effect.- Specified by:
toGlShaderProgram
in 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
.
-
-