FrameRefMonitor

interface FrameRefMonitor

Interface for monitoring texture buffers created from this SurfaceTexture. Since only one texture buffer can exist at a time, this can be used to monitor for stuck frames.

Functions

Link copied to clipboard
abstract fun onDestroyBuffer(textureBuffer: VideoFrame.TextureBuffer)
Frame was destroyed (ref count reached 0).
Link copied to clipboard
abstract fun onNewBuffer(textureBuffer: VideoFrame.TextureBuffer)
A new frame was created.
Link copied to clipboard
abstract fun onReleaseBuffer(textureBuffer: VideoFrame.TextureBuffer)
Ref count of the frame was decremented by the calling thread.
Link copied to clipboard
abstract fun onRetainBuffer(textureBuffer: VideoFrame.TextureBuffer)
Ref count of the frame was incremented by the calling thread.