FrameProcessor.Listener


interface FrameProcessor.Listener


Listener for FrameProcessor events.

Summary

Public functions

Unit

Notifies the Listener that an exception has occurred during frame processing.

Unit
onFrameProcessed(frame: Frame!, onCompleteFence: SyncFenceWrapper?)

Notifies the Listener that a frame has been fully processed.

Unit

Notifies the Listener that the FrameProcessor is ready for queue to be called again.

Public functions

onError

fun onError(exception: VideoFrameProcessingException!): Unit

Notifies the Listener that an exception has occurred during frame processing.

onFrameProcessed

fun onFrameProcessed(frame: Frame!, onCompleteFence: SyncFenceWrapper?): Unit

Notifies the Listener that a frame has been fully processed.

Parameters
frame: Frame!

The queued Frame.

onCompleteFence: SyncFenceWrapper?

A SyncFenceWrapper that will signal when the processor has finished reading from the frame, or null if the read was synchronous.

onWakeup

fun onWakeup(): Unit

Notifies the Listener that the FrameProcessor is ready for queue to be called again.