RawFrame

Encoded frame representation

Properties

Link copied to clipboard
abstract val rawBuffer: ByteBuffer

Contains an audio or video frame data.

Link copied to clipboard
abstract val timestampInUs: Long

Presentation timestamp in µs

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
fun RawFrame.copy(rawBuffer: ByteBuffer = this.rawBuffer, timestampInUs: Long = this.timestampInUs, onClosed: (RawFrame) -> Unit = {}): RawFrame

Copy a RawFrame to a new RawFrame.

Link copied to clipboard
fun RawFrame.deepCopy(bufferPool: IBufferPool<ByteBuffer>, timestampInUs: Long = this.timestampInUs, onClosed: (RawFrame) -> Unit = {}): RawFrame

Deep copy the RawFrame.rawBuffer into a new RawFrame.