@UnstableApi
public interface ImageOutput

Known direct subclasses
CapturingImageOutput

A ImageOutput that captures image availability events.


A listener for image output.

Summary

Constants

default static final ImageOutput

A no-op implementation of ImageOutput.

Public methods

abstract void

Called on the playback thread when the renderer is disabled.

abstract void
onImageAvailable(long presentationTimeUs, Bitmap bitmap)

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

Constants

NO_OP

default static final ImageOutput NO_OP

A no-op implementation of ImageOutput.

Public methods

onDisabled

abstract void onDisabled()

Called on the playback thread when the renderer is disabled.

This method should have an implementation that runs fast.

onImageAvailable

abstract void onImageAvailable(long presentationTimeUs, Bitmap bitmap)

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

This method should have an implementation that runs fast.

Parameters
long presentationTimeUs

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.