TimestampAdjustment.TimestampMap


public 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 methods

abstract void
calculateOutputTimeUs(
    long inputTimeUs,
    TimestampConsumer outputTimeConsumer
)

Calculates the output timestamp that corresponds to the input timestamp.

Public methods

calculateOutputTimeUs

abstract void calculateOutputTimeUs(
    long inputTimeUs,
    TimestampConsumer outputTimeConsumer
)

Calculates the output timestamp that corresponds to the input timestamp.

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