TimestampAdjustment
@UnstableApi
class TimestampAdjustment : GlEffect
Changes the frame timestamps using the TimestampMap.
This effect doesn't drop any frames.
Summary
Nested types |
|---|
interface TimestampAdjustment.TimestampMapMaps input timestamps to output timestamps asynchronously. |
Public constructors |
|---|
TimestampAdjustment(Creates an instance. |
Public functions |
|
|---|---|
Long |
getDurationAfterEffectApplied(durationUs: Long)Returns the expected duration of the output stream when the effect is applied given a input |
GlShaderProgram! |
toGlShaderProgram(context: Context!, useHdr: Boolean)Returns a |
Public properties |
|
|---|---|
SpeedProvider! |
|
TimestampAdjustment.TimestampMap! |
Inherited functions |
|---|
Public constructors
TimestampAdjustment
TimestampAdjustment(
timestampMap: TimestampAdjustment.TimestampMap!,
speedProvider: SpeedProvider!
)
Creates an instance.
| Parameters | |
|---|---|
timestampMap: TimestampAdjustment.TimestampMap! |
The |
speedProvider: SpeedProvider! |
The |
Public functions
getDurationAfterEffectApplied
fun getDurationAfterEffectApplied(durationUs: Long): Long
Returns the expected duration of the output stream when the effect is applied given a input durationUs.
toGlShaderProgram
fun toGlShaderProgram(context: Context!, useHdr: Boolean): GlShaderProgram!
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
context: Context! |
A |
useHdr: Boolean |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |