Package com.telnyx.webrtc.lib
Interface SurfaceTextureHelper.FrameRefMonitor
- Enclosing class:
- SurfaceTextureHelper
public static interface SurfaceTextureHelper.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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDestroyBuffer(VideoFrame.TextureBuffer textureBuffer) Frame was destroyed (ref count reached 0).voidonNewBuffer(VideoFrame.TextureBuffer textureBuffer) A new frame was created.voidonReleaseBuffer(VideoFrame.TextureBuffer textureBuffer) Ref count of the frame was decremented by the calling thread.voidonRetainBuffer(VideoFrame.TextureBuffer textureBuffer) Ref count of the frame was incremented by the calling thread.
-
Method Details
-
onNewBuffer
A new frame was created. New frames start with ref count of 1. -
onRetainBuffer
Ref count of the frame was incremented by the calling thread. -
onReleaseBuffer
Ref count of the frame was decremented by the calling thread. -
onDestroyBuffer
Frame was destroyed (ref count reached 0).
-