VideoFrameI420Buffer
class VideoFrameI420Buffer(val width: Int, val height: Int, val dataY: ByteBuffer, val dataU: ByteBuffer, val dataV: ByteBuffer, val strideY: Int, val strideU: Int, val strideV: Int, releaseCallback: Runnable) : VideoFrameBuffer
VideoFrameI420Buffer provides an reference counted wrapper of a YUV where planes are natively (i.e. in JNI) allocated direct byte buffers.
Constructors
Link copied to clipboard
constructor(width: Int, height: Int, dataY: ByteBuffer, dataU: ByteBuffer, dataV: ByteBuffer, strideY: Int, strideU: Int, strideV: Int, releaseCallback: Runnable)
Properties
Link copied to clipboard
U plane data of video frame in memory. This must be a natively allocated direct byte buffer so that it can be passed to native code
Link copied to clipboard
V plane data of video frame in memory. This must be a natively allocated direct byte buffer so that it can be passed to native code
Link copied to clipboard
Y plane data of video frame in memory. This must be a natively allocated direct byte buffer that it can be passed to native code