Package-level declarations
Types
Link copied to clipboard
data class Frame(val rawBuffer: ByteBuffer, var ptsInUs: Long, var dtsInUs: Long?, val isKeyFrame: Boolean, 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
Packet internal representation. A Frame is composed by multiple packets.
Functions
Link copied to clipboard
fun FrameWithCloseable(rawBuffer: ByteBuffer, ptsInUs: Long, dtsInUs: Long?, isKeyFrame: Boolean, format: MediaFormat, onClosed: (FrameWithCloseable) -> Unit): FrameWithCloseable
Link copied to clipboard
Uses the resource and unwraps the Frame to pass it to the given block.