Frame

data class Frame(val rawBuffer: ByteBuffer, val ptsInUs: Long, val dtsInUs: Long? = null, val isKeyFrame: Boolean, val extra: List<ByteBuffer>?, val format: MediaFormat)(source)

Constructors

Link copied to clipboard
constructor(rawBuffer: ByteBuffer, ptsInUs: Long, dtsInUs: Long? = null, isKeyFrame: Boolean, extra: List<ByteBuffer>?, format: MediaFormat)

Properties

Link copied to clipboard

Decoded timestamp in µs (not used).

Link copied to clipboard

Contains csd buffers for key frames and audio frames only. Could be (SPS, PPS, VPS, etc.) for key video frames, null for non-key video frames. ESDS for AAC frames,...

Link copied to clipboard

Contains frame format.. TODO: to remove

Link copied to clipboard

true if frame is a key frame (I-frame for AVC/HEVC and audio frames)

Link copied to clipboard

Presentation timestamp in µs

Link copied to clipboard

Contains an audio or video frame data.

Functions

Link copied to clipboard

Removes the Frame.extra prefixes from the Frame.rawBuffer.