VideoFrame

interface VideoFrame

The VideoFrame class provides methods for obtaining information about a video frame.

Functions

Link copied to clipboard
abstract fun getBuffer(type: VideoType, buffer: ByteArray)

Provides access to the underlying buffer containing the pixel data of the video frame.

Link copied to clipboard
abstract fun getType(): VideoType

Retrieves the pixel format of the video frame.

Link copied to clipboard
abstract fun height(): Int

Retrieves the height of the video frame.

Link copied to clipboard
abstract fun size(type: VideoType): Int

Retrieves the size of the video frame buffer given its pixel format.

Link copied to clipboard
abstract fun width(): Int

Retrieves the width of the video frame.