CapturingImageOutput


@UnstableApi
class CapturingImageOutput : Dumper.Dumpable, ImageOutput


A ImageOutput that captures image availability events.

Summary

Public constructors

Public functions

Unit
dump(dumper: Dumper!)

Dumps the fields of the object using the dumper.

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.

Inherited Constants

From androidx.media3.exoplayer.image.ImageOutput
const ImageOutput!

A no-op implementation of ImageOutput.

Public constructors

CapturingImageOutput

CapturingImageOutput()

Public functions

dump

fun dump(dumper: Dumper!): Unit

Dumps the fields of the object using the dumper.

Parameters
dumper: Dumper!

The Dumper to be used to dump fields.

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.