# ImageOutput

# ImageOutput

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/image/ImageOutput "View this page in Java")

<br />

```
@UnstableApi
interface ImageOutput
```

<br />

Known direct subclasses  
[CapturingImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/CapturingImageOutput)  

|------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [CapturingImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/CapturingImageOutput) | A[ImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput)that captures image availability events. |

*** ** * ** ***

A listener for image output.

## Summary

|                                                    ### Constants                                                     |
|----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[ImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput)`!` | [NO_OP](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput#NO_OP()) A no-op implementation of ImageOutput. |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onDisabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput#onDisabled())`()` Called on the playback thread when the renderer is disabled.                                                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onImageAvailable](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput#onImageAvailable(long,android.graphics.Bitmap))`(presentationTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)`!)` Called on the playback thread when a new image is available. |

## Constants

### NO_OP

```
const val NO_OP: ImageOutput!
```

A no-op implementation of ImageOutput.  

## Public functions

### onDisabled

```
fun onDisabled(): Unit
```

Called on the playback thread when the renderer is disabled.

This method should have an implementation that runs fast.  

### onImageAvailable

```
fun onImageAvailable(presentationTimeUs: Long, bitmap: Bitmap!): Unit
```

Called on the playback thread when a new image is available.

This method should have an implementation that runs fast.  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `presentationTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The presentation time of the image, in microseconds. This time is an offset from the start of the current[Timeline.Period](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Period). |
| `bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)`!`         | The new image available.                                                                                                                                                                                           |