Package tvi.webrtc
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 TypeMethodDescriptionvoid
onDestroyBuffer
(VideoFrame.TextureBuffer textureBuffer) Frame was destroyed (ref count reached 0).void
onNewBuffer
(VideoFrame.TextureBuffer textureBuffer) A new frame was created.void
onReleaseBuffer
(VideoFrame.TextureBuffer textureBuffer) Ref count of the frame was decremented by the calling thread.void
onRetainBuffer
(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).
-