Package-level declarations
Types
Link copied to clipboard
data class Frame(val rawBuffer: ByteBuffer, val ptsInUs: Long, val dtsInUs: Long? = null, val isKeyFrame: Boolean, val extra: List<ByteBuffer>?, val format: MediaFormat)
Link copied to clipboard
data class FrameWithCloseable(val frame: Frame, val onClosed: (FrameWithCloseable) -> Unit) : Closeable
Frame internal representation.
Functions
Link copied to clipboard
fun FrameWithCloseable(rawBuffer: ByteBuffer, ptsInUs: Long, dtsInUs: Long?, isKeyFrame: Boolean, extra: List<ByteBuffer>?, format: MediaFormat, onClosed: (FrameWithCloseable) -> Unit): FrameWithCloseable
Link copied to clipboard
Removes the Frame.extra prefixes from the Frame.rawBuffer.
Link copied to clipboard
Uses the resource and unwraps the Frame to pass it to the given block.