StillBytes

sealed interface StillBytes(source)

An encoded still held in memory, or why there is none.

A format this target cannot write is a Failure carrying FilmstripError.UnsupportedStillFormat, so branch on it rather than reading an empty buffer as an encode that worked.

Inheritors

Types

Link copied to clipboard
class Failure(val error: FilmstripError) : StillBytes

The frame could not be encoded.

Link copied to clipboard
class Success(val bytes: ByteArray, val size: Size, val format: StillFormat) : StillBytes

The frame was encoded.