Package-level declarations
Types
The frames of one clip of the profile in folder: a cut of its video at the source's own frame rate, which ffprobe reports, or a still's one frame. They are held once here, so everything looking at one clip shares them: a clip's frames run to hundreds of megabytes, and a screen that masks them under each new setting must not load them again each time.
The stages of one clip that need only its footage: plate, masks, root track, key frames. Clip setup previews these before a palette or a scale exists; ClipPipeline carries on from them. Each StageOutput is built on first use, like ClipPipeline's, and follows the clip's settings, so a new setting takes a new ClipMasking over the same footage.
Every stage of one clip, wired output to input, from its masking on to its handoff. Each stage's StageOutput is built on first use and keyed from the outputs it reads, so asking for a late one — the drafts — builds the keys of everything before it, and a cache hit anywhere loads nothing upstream of it.
What every clip of a profile is drawn on and in: the project's canvas and palette, and the profile's scale, null until the artist has marked it.
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.
A render Roto stopped: a profile or clip not set up far enough to draw, or a stage that cannot run on it.