CapturingImageOutput
@UnstableApi
public final class CapturingImageOutput implements Dumper.Dumpable, ImageOutput
A ImageOutput that captures image availability events.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
Dumps the fields of the object using the |
void |
Called on the playback thread when the renderer is disabled. |
void |
onImageAvailable(long presentationTimeUs, Bitmap bitmap)Called on the playback thread when a new image is available. |
Inherited Constants |
||
|---|---|---|
|
Public constructors
Public methods
onDisabled
public void onDisabled()
Called on the playback thread when the renderer is disabled.
This method should have an implementation that runs fast.
onImageAvailable
public 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 |
Bitmap bitmap |
The new image available. |