← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class ClipFootage(ffmpeg: Ffmpeg, cache: StageCache, folder: ProfileFolder, clip: Clip) : PlateFootage

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.

Link copied to clipboard
class ClipMasking(val footage: ClipFootage, cache: StageCache, val clip: Clip)

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.

Link copied to clipboard
class ClipPipeline(val masking: ClipMasking, cache: StageCache, drawing: Drawing, models: ModelRepository? = null)

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.

Link copied to clipboard
class Drawing(val canvas: Canvas, val palette: ProjectPalette, val scale: ScaleSettings?)

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.

Link copied to clipboard
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.

Link copied to clipboard
class RenderException(message: String, cause: Throwable? = null) : IOException

A render Roto stopped: a profile or clip not set up far enough to draw, or a stage that cannot run on it.