fromVideoFrame

open fun fromVideoFrame(videoFrame: VideoFrame, processingFlags: Int, timestamp: Long)

Replaces the data in this YuvFrame with the data from the provided frame. Will create new byte arrays to hold pixel data if necessary, or will reuse existing arrays if they're already the correct size.

Parameters

videoFrame

Source VideoFrame.

processingFlags

Processing flags, YuvFrame.PROCESSING_NONE for no processing.

timestamp

The timestamp to give the frame.