class VideoFrameTextureBuffer : VideoFrameBuffer
VideoFrameTextureBuffer provides an reference counted wrapper of an OpenGLES texture and related metadata
Type |
Wrapper enum of underlying supported GL texture types enum class Type |
<init> |
VideoFrameTextureBuffer provides an reference counted wrapper of an OpenGLES texture and related metadata VideoFrameTextureBuffer(width: Int, height: Int, textureId: Int, transformMatrix: Matrix?, type: Type, releaseCallback: Runnable) |
height |
Height of the video frame buffer val height: Int |
textureId |
ID of underlying GL texture val textureId: Int |
transformMatrix |
The transform matrix associated with the frame. This transform matrix maps 2D
homogeneous coordinates of the form (s, t, 1) with s and t in the inclusive range val transformMatrix: Matrix? |
type |
GL type of underlying GL texture val type: Type |
width |
Width of the video frame buffer val width: Int |
release |
Release the video frame buffer. Use after frame construction or release after the frame is no longer needed. Will trigger appropriate release of any internally allocated resources. Not using may result in leaks. fun release(): Unit |
retain |
Retain the video frame buffer. Use when shared ownership of the buffer is desired (e.g. when passing to separate thread), otherwise the frame may be spuriously released fun retain(): Unit |