FakeFrameProcessor.Listener


public class FakeFrameProcessor.Listener implements FrameProcessor.Listener


A fake FrameProcessor.Listener implementation for tests.

Summary

Public constructors

Creates a new instance.

Public methods

void

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

void
onFrameProcessed(Frame frame, @Nullable SyncFenceWrapper onCompleteFence)

Notifies the Listener that a frame has been fully processed.

void

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

Public fields

processedFrames

public final List<Frame> processedFrames

Public constructors

Listener

public Listener()

Creates a new instance.

Public methods

onError

public void onError(VideoFrameProcessingException exception)

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

onFrameProcessed

public 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

public void onWakeup()

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