FrameRenderer

Renders frames of an EditComposition with its effects applied.

The part of dev.jordond.filmstrip.Filmstrip that draws pictures. A poster frame or a timeline strip takes one of these, and a dev.jordond.filmstrip.Filmstrip is one.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun frame(composition: EditComposition, at: Duration, heightPx: Int? = null, exportSpec: ExportSpec = ExportSpec()): FrameResult

Renders one frame of a composition, with its effects applied.

Link copied to clipboard
suspend fun FrameRenderer.frame(source: MediaSource, at: Duration, heightPx: Int? = null): FrameResult

Renders one frame of a single source, with no composition to build by hand.

Link copied to clipboard
abstract fun frames(composition: EditComposition, at: List<Duration>, heightPx: Int? = null, exportSpec: ExportSpec = ExportSpec()): Flow<FrameResult>

Renders several frames, emitting each as it is ready.

Link copied to clipboard
suspend fun FrameRenderer.still(composition: EditComposition, at: Duration, to: MediaSink, spec: StillSpec = StillSpec()): StillResult

Renders one frame of a composition and writes it as a still image.

suspend fun FrameRenderer.still(source: MediaSource, at: Duration, to: MediaSink, spec: StillSpec = StillSpec()): StillResult

Encodes one frame of a single source as a still image, with no composition to build by hand.