TimestampAdjustment.TimestampMap


interface TimestampAdjustment.TimestampMap


Maps input timestamps to output timestamps asynchronously.

Implementation can choose to calculate the timestamp and invoke the consumer on another thread asynchronously.

Summary

Public functions

Unit
calculateOutputTimeUs(
    inputTimeUs: Long,
    outputTimeConsumer: TimestampConsumer!
)

Calculates the output timestamp that corresponds to the input timestamp.

Public functions

calculateOutputTimeUs

fun calculateOutputTimeUs(
    inputTimeUs: Long,
    outputTimeConsumer: TimestampConsumer!
): Unit

Calculates the output timestamp that corresponds to the input timestamp.

The implementation should invoke the outputTimeConsumer with the output timestamp, on any thread.