Interface GlShaderProgram.InputListener
-
- Enclosing interface:
- GlShaderProgram
public static interface GlShaderProgram.InputListenerListener 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 voidonFlush()Called when theGlShaderProgramhas been flushed.default voidonInputFrameProcessed(GlTextureInfo inputTexture)Called when theGlShaderProgramhas processed an input frame.default voidonReadyToAcceptInputFrame()Called when theGlShaderProgramis ready to accept another input frame.
-
-
-
Method Detail
-
onReadyToAcceptInputFrame
default void onReadyToAcceptInputFrame()
Called when theGlShaderProgramis 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 theGlShaderProgramhas processed an input frame.The implementation shall not assume the
GlShaderProgramis ready to accept another input frame when this method is called.- Parameters:
inputTexture- TheGlTextureInfothat was used to queue the input frame.
-
onFlush
default void onFlush()
Called when theGlShaderProgramhas been flushed.The implementation shall not assume the
GlShaderProgramis ready to accept another input frame when this method is called.
-
-