CapturingImageOutput
@UnstableApi
class CapturingImageOutput : Dumper.Dumpable, ImageOutput
A ImageOutput that captures image availability events.
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
Dumps the fields of the object using the |
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 |
||
|---|---|---|
|
Public constructors
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 |
bitmap: Bitmap! |
The new image available. |