GlShaderProgram.InputListener


public interface GlShaderProgram.InputListener


Listener for input-related video frame processing events.

This listener can be called from any thread.

Summary

Public methods

default void

Called when the GlShaderProgram has been flushed.

default void

Called when the GlShaderProgram has processed an input frame.

default void

Called when the GlShaderProgram is ready to accept another input frame.

Public methods

onFlush

default void onFlush()

Called when the GlShaderProgram has been flushed.

The implementation shall not assume the GlShaderProgram is ready to accept another input frame when this method is called. If the implementation manages a limited input capacity, it must clear all prior input frame capacity.

onInputFrameProcessed

default void onInputFrameProcessed(GlTextureInfo inputTexture)

Called when the GlShaderProgram has processed an input frame.

The implementation shall not assume the GlShaderProgram is ready to accept another input frame when this method is called.

Parameters
GlTextureInfo inputTexture

The GlTextureInfo that was used to queue the input frame.

onReadyToAcceptInputFrame

default void onReadyToAcceptInputFrame()

Called when the GlShaderProgram is ready to accept another input frame.

For each time this method is called, queueInputFrame can be called once.