-
public interface RendererFrameCallbackCallback for renderer frames.
-
-
Method Summary
Modifier and Type Method Description abstract voidonRendererTextureCreated(int textureId)Called on the renderer thread, hopefully only once, to notify thatthe texture was created (or to inform a new callback of the old texture). abstract voidonRendererFrame(@NonNull() SurfaceTexture surfaceTexture, int rotation, float scaleX, float scaleY)Called on the renderer thread after each frame was drawn.You are not supposed to hold for too long onto this thread, becausewell, it is the rendering thread. abstract voidonRendererFilterChanged(@NonNull() Filter filter)Called when the renderer filter changes. -
-
Method Detail
-
onRendererTextureCreated
abstract void onRendererTextureCreated(int textureId)
Called on the renderer thread, hopefully only once, to notify thatthe texture was created (or to inform a new callback of the old texture).
- Parameters:
textureId- the GL texture linked to the image stream
-
onRendererFrame
abstract void onRendererFrame(@NonNull() SurfaceTexture surfaceTexture, int rotation, float scaleX, float scaleY)
Called on the renderer thread after each frame was drawn.You are not supposed to hold for too long onto this thread, becausewell, it is the rendering thread.
- Parameters:
surfaceTexture- the texture to get transformationrotation- the rotation (to reach REF_VIEW)scaleX- the scaleX (in REF_VIEW) valuescaleY- the scaleY (in REF_VIEW) value
-
onRendererFilterChanged
abstract void onRendererFilterChanged(@NonNull() Filter filter)
Called when the renderer filter changes. This is guaranteed to be called at least oncebefore the first onRendererFrame.
- Parameters:
filter- the new filter
-
-
-
-