Package 

Interface RendererFrameCallback

    • Method Summary

      Modifier and Type Method Description
      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).
      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.
      abstract void onRendererFilterChanged(@NonNull() Filter filter) Called when the renderer filter changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 transformation
        rotation - the rotation (to reach REF_VIEW)
        scaleX - the scaleX (in REF_VIEW) value
        scaleY - the scaleY (in REF_VIEW) value