# 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)

*** ** * ** ***


```
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 functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[calculateOutputTimeUs](https://developer.android.com/reference/kotlin/androidx/media3/effect/TimestampAdjustment.TimestampMap#calculateOutputTimeUs(long,androidx.media3.common.util.TimestampConsumer))( inputTimeUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, outputTimeConsumer: https://developer.android.com/reference/kotlin/androidx/media3/common/util/TimestampConsumer! )` **This function is deprecated.** Deprecated in Java |

## Public functions

### calculateOutputTimeUs

```
fun [calculateOutputTimeUs](https://developer.android.com/reference/kotlin/androidx/media3/effect/TimestampAdjustment.TimestampMap#calculateOutputTimeUs(long,androidx.media3.common.util.TimestampConsumer))(
    inputTimeUs: Long,
    outputTimeConsumer: TimestampConsumer!
): Unit
```

> [!CAUTION]
> **This function 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.