amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.video.buffer / VideoFrameTextureBuffer

VideoFrameTextureBuffer

class VideoFrameTextureBuffer : VideoFrameBuffer

VideoFrameTextureBuffer provides an reference counted wrapper of an OpenGLES texture and related metadata

Types

Type

Wrapper enum of underlying supported GL texture types

enum class Type

Constructors

<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)

Properties

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 [0, 1] to the coordinate that should be used to sample that location from the buffer.

val transformMatrix: Matrix?

type

GL type of underlying GL texture

val type: Type

width

Width of the video frame buffer

val width: Int

Functions

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