← back to roto on ba3a.dev

ClipPipeline

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.

Constructors

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

Properties

Link copied to clipboard

Where the canvas sits on every frame; needs the profile's scale.

Link copied to clipboard

The palette labels each zone is drawn in.

Link copied to clipboard

Each key frame's finished draft at canvas size: what the handoff's draft layer shows.

Link copied to clipboard

the stages that need only the clip's footage

Link copied to clipboard

Each key frame shaded at DraftShader.FACTOR times the canvas.

Link copied to clipboard

The lightness range of each zone over the whole clip.

Link copied to clipboard

The zone each figure pixel belongs to, in every frame.

Functions

Link copied to clipboard

What the clip's handoff is written from: its reference, draft and, with a model, model picture per key frame.