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 |
onFlush()Called when the |
Unit |
onInputFrameProcessed(inputTexture: GlTextureInfo!)Called when the |
Unit |
Called when the |
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 |
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.