FrameResult

sealed interface FrameResult(source)

A single frame rendered through a composition's effect chain.

A frame that could not be produced is a Failure arm rather than a thrown exception, so branch on it.

Inheritors

Types

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

The frame could not be produced.

Link copied to clipboard
class Success(val image: PlatformImage, val presentationTime: Duration, val colorSpace: ColorSpace) : FrameResult

The frame was produced.