@UnstableApi
interface ImageOutput

Known direct subclasses
CapturingImageOutput

A ImageOutput that captures image availability events.


A listener for image output.

Summary

Constants

const ImageOutput!

A no-op implementation of ImageOutput.

Public functions

Unit

Called on the playback thread when the renderer is disabled.

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

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

Constants

NO_OP

const val NO_OPImageOutput!

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

The presentation time of the image, in microseconds. This time is an offset from the start of the current Timeline.Period.

bitmap: Bitmap!

The new image available.