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

# VideoFrameRGBABuffer

`class VideoFrameRGBABuffer : VideoFrameBuffer`

VideoFrameRGBABuffer provides an reference counted wrapper of an RGBA natively (i.e. in JNI) allocated direct byte buffer.

### Constructors

#### <init> | VideoFrameRGBABuffer provides an reference counted wrapper of an RGBA natively (i.e. in JNI) allocated direct byte buffer. `VideoFrameRGBABuffer(width: Int, height: Int, data: ByteBuffer, stride: Int, releaseCallback: Runnable)`

### Properties

#### data | RGBA plane data of video frame in memory. This must be a natively allocated direct byte buffer so that it can be passed to native code `val data: ByteBuffer`
#### height | Height of the video frame buffer `val height: Int`
#### stride | Stride of RGBA plane of video frame `val stride: Int`
#### 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`