# TimestampAdjustment.TimestampMap

Artifact: [androidx.media3:media3-effect](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/effect/TimestampAdjustment.java+class:androidx.media3.effect.TimestampAdjustment.TimestampMap)

*** ** * ** ***


```
public interface TimestampAdjustment.TimestampMap
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Deprecated in Java

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](https://developer.android.com/reference/androidx/media3/effect/TimestampAdjustment.TimestampMap#calculateOutputTimeUs(long,androidx.media3.common.util.TimestampConsumer))( long inputTimeUs, https://developer.android.com/reference/androidx/media3/common/util/TimestampConsumer outputTimeConsumer )` **This method is deprecated.** Deprecated in Java |

## Public methods

### calculateOutputTimeUs

```
abstract void [calculateOutputTimeUs](https://developer.android.com/reference/androidx/media3/effect/TimestampAdjustment.TimestampMap#calculateOutputTimeUs(long,androidx.media3.common.util.TimestampConsumer))(
    long inputTimeUs,
    TimestampConsumer outputTimeConsumer
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Calculates the output timestamp that corresponds to the input timestamp.

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