VideoFrameBuffer

VideoFrameBuffer is a buffer which contains a single video buffer's raw data. Typically owned by a VideoFrame which includes additional metadata.

Inheritors

Properties

Link copied to clipboard
abstract val height: Int

Height of the video frame buffer

Link copied to clipboard
abstract val width: Int

Width of the video frame buffer

Functions

Link copied to clipboard
abstract fun 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.

Link copied to clipboard
abstract fun 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