PreviewFrameReadback

Reads back a fully rendered preview frame: post-effects, pre-encode.

Every player backend provides one. It is pull-based and allocates its target per request, so it costs nothing until a frame is asked for.

Not a dev.jordond.filmstrip.thumbnail.ThumbnailSource. That one serves many cheap approximate frames, keyframe-snapped and downscaled. This one produces a single exact frame out of the live preview pipeline.

Functions

Link copied to clipboard

Renders the frame at position through the current effect chain, suspending until it is ready.

Link copied to clipboard
abstract fun requestFrame(position: Duration, callback: ReadbackCallback): Cancellable

Renders the frame at position through the current effect chain and delivers it.