decodeInOutputOrder

open fun decodeInOutputOrder(sample: ByteArray, cancellationCheck: () -> Unit?): List<HeifPlanes>(source)

Decodes sample, the next sample of a track in decoding order, and returns the pictures the codec outputs after it, in output order: none, one or several. A codec whose output order differs from its decoding order, as HEVC's does with B pictures, holds a picture back until every picture before it in output order is decoded, and flush gives the ones it still holds at the end. The core plays a track through this method and flush, and pairs the pictures in turn with the samples in order of composition time.

The default returns what decode gives, for a codec that outputs each picture as it decodes it.