GlShaderProgram.InputListener


interface GlShaderProgram.InputListener


Listener for input-related video frame processing events.

This listener can be called from any thread.

Summary

Public functions

Unit

Called when the GlShaderProgram has been flushed.

Unit

Called when the GlShaderProgram has processed an input frame.

Unit

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

Public functions

onFlush

fun onFlush(): Unit

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

fun onInputFrameProcessed(inputTexture: GlTextureInfo!): Unit

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
inputTexture: GlTextureInfo!

The GlTextureInfo that was used to queue the input frame.

onReadyToAcceptInputFrame

fun onReadyToAcceptInputFrame(): Unit

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

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