← back to roto on ba3a.dev

ProfileRenderer

class ProfileRenderer(project: Project, ffmpeg: Ffmpeg = Ffmpeg())

Renders a profile's clips into their handoffs: each clip runs through its ClipPipeline against the profile's cache, and its handoff is written by HandoffWriter, which keeps whatever the artist has painted. A clip whose stages are all cached renders without decoding or computing anything.

Clips render in order and the first that cannot stops the render; handoffs already written stay.

Constructors

Link copied to clipboard
constructor(project: Project, ffmpeg: Ffmpeg = Ffmpeg())

Types

Link copied to clipboard
class Report(val files: List<Path>)

What a render did: every handoff files it wrote, in clip order.

Functions

Link copied to clipboard
fun render(profile: Profile, folder: ProfileFolder, clips: List<Clip> = profile.clips, onClipDone: (done: Int, total: Int) -> Unit = { _, _ -> }): ProfileRenderer.Report

Renders clips — all of profile's unless told otherwise — of the profile stored in folder. onClipDone is told how many of the clips are written, after each one.