getBuffer

abstract fun getBuffer(type: VideoType, buffer: ByteArray)

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

Parameters

type

The pixel format.

buffer

The pre-allocated buffer to be filled.