Back to Exoplayer

GlShaderProgram.InputListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/effect/GlShaderProgram.InputListener.html

latest2.8 KB
Original Source

Package com.google.android.exoplayer2.effect

Interface GlShaderProgram.InputListener


public static interfaceGlShaderProgram.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 the GlShaderProgram has been flushed. | | default void | onInputFrameProcessed​(GlTextureInfo inputTexture) | Called when the GlShaderProgram has processed an input frame. | | default void | onReadyToAcceptInputFrame() | Called when the GlShaderProgram is ready to accept another input frame. |

Method Detail

- 

onReadyToAcceptInputFrame

default void onReadyToAcceptInputFrame()

Called when the GlShaderProgram 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](../util/GlTextureInfo.html "class in com.google.android.exoplayer2.util")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:inputTexture - The GlTextureInfo that was used to queue the input frame.

- 

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.