Interface GlShaderProgram.InputListener
-
- Enclosing interface:
- GlShaderProgram
public static interface GlShaderProgram.InputListener
Listener for input-related video frame processing events.This listener can be called from any thread.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onFlush()
Called when theGlShaderProgram
has been flushed.default void
onInputFrameProcessed(GlTextureInfo inputTexture)
Called when theGlShaderProgram
has processed an input frame.default void
onReadyToAcceptInputFrame()
Called when theGlShaderProgram
is ready to accept another input frame.
-
-
-
Method Detail
-
onReadyToAcceptInputFrame
default void onReadyToAcceptInputFrame()
Called when theGlShaderProgram
is ready to accept another input frame.For each time this method is called,
GlShaderProgram.queueInputFrame(GlTextureInfo, long)
can be called once.
-
onInputFrameProcessed
default void onInputFrameProcessed(GlTextureInfo inputTexture)
Called when theGlShaderProgram
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
- TheGlTextureInfo
that was used to queue the input frame.
-
onFlush
default void onFlush()
Called when theGlShaderProgram
has been flushed.The implementation shall not assume the
GlShaderProgram
is ready to accept another input frame when this method is called.
-
-