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.

Link copied to clipboard
data class RawFrame(val rawBuffer: ByteBuffer, var timestampInUs: Long, val onClosed: (RawFrame) -> Unit = {}) : Closeable

A raw 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
inline fun <T> FrameWithCloseable.useAndUnwrap(block: (Frame) -> T): T

Uses the resource and unwraps the Frame to pass it to the given block.