← back to roto on ba3a.dev

DraftShader

class DraftShader(cache: StageCache)

The draft shading stage: each key frame, sampled onto the canvas at FACTOR times its size and shaded by RampShader, as palette labels. The draft is drawn large and reduced afterwards, so the reduction can vote on what every final pixel shows.

Cached under the frames, zone maps, boxes, shading, the key frames and each zone's colours, so moving a marker or editing ramps.json shades again without refitting or relabelling anything.

Constructors

Link copied to clipboard
constructor(cache: StageCache)

Types

Link copied to clipboard
object Companion

The stage name, its algorithm version and the draft factor.

Link copied to clipboard
class Inputs(val frames: StageOutput<List<Raster>>, val zones: StageOutput<List<IndexedRaster>>, val boxes: StageOutput<FrameBoxes>, val shading: StageOutput<ClipShading>)

The inputs a draft is shaded from: all of one clip's.

Functions

Link copied to clipboard

The draft of each of keyFrames, shaded from inputs in the colours of its zones.