FrameProcessor.Listener


public interface FrameProcessor.Listener


Listener for FrameProcessor events.

Summary

Public methods

abstract void

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

abstract void
onFrameProcessed(Frame frame, @Nullable SyncFenceWrapper onCompleteFence)

Notifies the Listener that a frame has been fully processed.

abstract void

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

Public methods

onError

abstract void onError(VideoFrameProcessingException exception)

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

onFrameProcessed

abstract void onFrameProcessed(Frame frame, @Nullable SyncFenceWrapper onCompleteFence)

Notifies the Listener that a frame has been fully processed.

Parameters
Frame frame

The queued Frame.

@Nullable SyncFenceWrapper onCompleteFence

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

onWakeup

abstract void onWakeup()

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