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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
onNewBuffer
void onNewBuffer(VideoFrame.TextureBuffer textureBuffer)
A new frame was created. New frames start with ref count of 1.
-
onRetainBuffer
void onRetainBuffer(VideoFrame.TextureBuffer textureBuffer)
Ref count of the frame was incremented by the calling thread.
-
onReleaseBuffer
void onReleaseBuffer(VideoFrame.TextureBuffer textureBuffer)
Ref count of the frame was decremented by the calling thread.
-
onDestroyBuffer
void onDestroyBuffer(VideoFrame.TextureBuffer textureBuffer)
Frame was destroyed (ref count reached 0).
-
-