AsyncFrame

One decoded frame of an AsyncMediaRuntime. It is the suspending form of Frame. info was read when the frame was made. Everything that reads the frame's data waits for the lane.

Properties

Link copied to clipboard

The frame's duration in microseconds, or null when it has none.

Link copied to clipboard

What the frame holds: its size, format, time and colour.

Link copied to clipboard

The frame's time in microseconds, or null when it has none.

Functions

Link copied to clipboard
open suspend override fun close()

Releases the resource. A second call waits for the first and reports the same result. A close finishes even when its caller is cancelled.

Link copied to clipboard
suspend fun closedCaptions(): ByteArray?

The closed caption bytes the frame carries, or null.

Link copied to clipboard
suspend fun copy(): AsyncFrame

A second reference to the same data, which the caller owns and closes.

Link copied to clipboard
suspend fun copyPlanesInto(destination: ByteArray): Int

Copies the frame's planes into destination and answers the count. See Frame.copyPlanesInto.

Link copied to clipboard

The frame's planes in a new array. See Frame.copyPlanesToByteArray.

Link copied to clipboard

The Dolby Vision metadata the frame carries, or null.

Link copied to clipboard

The Dolby Vision RPU the frame carries, or null.

Link copied to clipboard

A copy of a hardware frame in main memory. See Frame.downloadFromHardware.

Link copied to clipboard
suspend fun planesByteCount(): Int

How many bytes copyPlanesInto writes.