data class VideoFrame(val buffer: ByteBuffer, val width: Int, val height: Int, val presentationTimeUs: Long = 0, val isCompressed: Boolean = false)
VideoFrame
(
buffer
, width
, height
, presentationTimeUs
, isCompressed
)
|
Signature
constructor(buffer: ByteBuffer, width: Int, height: Int, presentationTimeUs: Long = 0, isCompressed: Boolean = false) Parameters buffer: ByteBuffer
The ByteBuffer containing the raw video frame data
width: Int
The width of the video frame in pixels
height: Int
The height of the video frame in pixels
presentationTimeUs: Long
The presentation timestamp in microseconds
isCompressed: Boolean
Whether this frame contains compressed HEVC data (true) or decoded YUV pixel data (false)
Returns VideoFrame |
buffer
: ByteBuffer
[Get] |
The ByteBuffer containing the raw video frame data
Signature
val buffer: ByteBuffer |
height
: Int
[Get] |
The height of the video frame in pixels
Signature
val height: Int |
isCompressed
: Boolean
[Get] |
Whether this frame contains compressed HEVC data (true) or decoded YUV pixel data (false)
Signature
val isCompressed: Boolean = false |
presentationTimeUs
: Long
[Get] |
The presentation timestamp in microseconds
Signature
val presentationTimeUs: Long = 0 |
width
: Int
[Get] |
The width of the video frame in pixels
Signature
val width: Int |