Skip to main content

Crate alpha2_model

Crate alpha2_model 

Source
Expand description

Versioned, host-independent project model for alpha2.

This crate describes intent only. It contains no decoder handles, GPU resources, filesystem paths, or application-specific types.

Modules§

easing_presets
Easings made from a name, a function or a spring. Each is an Easing the evaluator already knows, so no curve family adds arithmetic to it.

Structs§

AudioAlignment
Where each node’s signal sits ahead of the mix output, in the unit its latencies were given in (see AudioRouting::alignment).
AudioBus
A named bus: it sums what tracks and other buses route into it, runs its effects, and outputs through its fader to another bus or the master.
AudioEdge
One connection of the routing graph.
AudioEffectLoad
The most audio effect state a project holds at once.
AudioEffectParam
One parameter of an audio effect that animates.
AudioLiveness
Which edges carry signal and which nodes a mixer runs, under mute and solo (see AudioRouting::liveness).
AudioProperties
Per-clip audio presentation controls.
AudioRouting
A project’s audio routing: every edge, and an order in which each node comes after the nodes that feed or key it.
AudioSend
A copy of a track’s or bus’s signal added into a bus.
AudioStreamShape
An audio stream’s channel count and sample rate.
BusId
A stable audio-bus identifier.
CaptionCue
Text shown over one timeline interval.
Captions
What a caption track shows: its cues, in its style.
CaptionsFromWords
Caption cues built from a words data set.
ChannelMap
What the left and right channels play of a stream’s channels: each a sum of weighted channels, where terms naming one channel add. A mono project plays the average of the two rows. At least one row has a term.
ChannelTerm
One channel of a stream and its weight in a row of a ChannelMap.
Clip
A reference to a source over independent timeline and source ranges.
ClipComposition
A clip’s use of a Composition, and how its time maps onto it.
ClipEffect
One versioned effect invocation: a composition’s effect or transition node, a timeline transition, or an effect generator.
ClipId
A stable timeline-clip identifier.
ClipTransition
A two-input transition over the overlap of two visual clips.
ColorPipeline
How sources’ colors come into the working space.
Composition
An acyclic graph of image operations with one selected output.
CompositionControl
A node setting a composition exposes to group nodes: an effect or transition parameter of one of its nodes.
CompositionId
A stable composition-graph identifier.
CompositionNode
One image operation in a Composition.
CompositionReads
What each composition’s output reads: the group inputs and clip nodes reachable from its output, following group nodes into their compositions. A group node needs only the ports its composition reads, so unread ports may be left unconnected.
CorrectionRef
A similarity data set applied to a clip’s own picture before its transform.
CubicBezier
A CSS cubic-bezier(x1, y1, x2, y2) timing curve.
Dash
A dash pattern.
DataBinding
A value that follows a channel of a data set at render time: the data value mode.
DataInterval
One timed range; start == end is an instant.
DataRemap
A linear map from input to output, clamped to output.
DataSamples
Samples on one time grid, stored by column.
DataSet
Values derived from media, anchored to a source or to the timeline.
DataSetId
A stable data-set identifier.
DataWord
One timed word.
DetectorFilter
One static filter before a compressor’s or expander’s level detector, so that only a band of the detected signal drives the gain. A compressor with a high-pass here is a de-esser.
Domain
An inclusive range of accepted values; an unbounded end is infinite.
EasingPoint
One point of a points curve.
EffectParamSpec
One declared parameter of a built-in definition.
EffectResource
Host-resolved, non-media data consumed by one or more visual effects.
EffectResourceId
A stable effect-resource identifier.
EffectSpec
A built-in effect, transition or generator definition, without its shader.
EllipseGeometry
The ellipse inscribed in a size, turned clockwise about its centre. Its outline starts at the top and runs clockwise.
EqBand
A single equalizer section stored independently from its DSP implementation.
FontSizeFit
The font sizes a text is fitted between, as fractions of the canvas’s shorter side.
GradientStop
One color of a gradient.
GridPlacement
Where a grid item lies on one axis, as CSS grid_column writes it: 2, "1 / 3", "span 2", "2 / span 3", "auto". A missing end is auto.
ImportNotes
What an import read but could not keep, counted.
ImportedCaptions
Cues read from a subtitle file.
Insets
A length on each side of a box (padding or margin). Missing sides are 0.
Keyframe
One timestamped control value.
LayoutBorder
A border inside the border box, as wide on every side.
LayoutFontSizeFit
The font sizes a layout text is fitted between, as a text style’s crate::FontSizeFit, in layout sizes. A min above max wins.
LayoutInset
Where an absolute box lies in its parent’s padding box. A missing side is auto; with neither left nor right, the box keeps its flow position on that axis.
LayoutIssue
Where in a layout tree a problem lies, and what it is.
LayoutNode
One box of a layout tree.
LayoutOffset
A box’s offset after layout: x right, y down.
LayoutShape
A box’s shapes, drawn as a shapes generator draws its items on a picture the size of the box’s content box. A shape box has no size of its own.
LayoutTextStyle
A box’s text style once inherited. Lengths are fractions of the picture’s shorter side.
Limiter
Final peak limiter placed at the end of the master bus.
LineClamp
Lines past a clamp point are discarded, as CSS Overflow 4 line-clamp discards them.
MadeBy
Which extractor made a data set. Recorded for hosts; the engine never reads it.
MadeByPlugin
The plugin build that made a data set.
MasterAudio
Project-wide master bus settings.
Matte
Another visual clip whose picture sets where this clip is visible.
MediaFingerprint
Evidence of a source’s media, each part recorded only when known.
MediaSource
A host-resolved media resource.
MergeLayer
One layer of a NodeOp::Merge.
MotionPath
A path and how far along it a position is.
NodeId
A stable identifier of a node within one composition graph. It has no /, which joins the IDs of the group and media nodes a step was drawn through.
Path
One or more subpaths.
PathGeometry
A path, animated as one value.
PathVertex
A path vertex and its tangents. The segment from a to b is the cubic Bezier through a.point, a.point + a.out_tangent, b.point + b.in_tangent and b.point; zero tangents make it straight.
PointKeyframe
One keyframe of an AnimatedPoint.
PolystarGeometry
A regular polygon or star, its first point straight up from the centre before rotation, the rest clockwise.
Project
A complete serializable project document.
ProjectId
A stable project identifier.
ProjectSettings
Output-wide settings independent of a renderer or encoder.
RectangleGeometry
A rectangle about its centre, turned clockwise about it. Its outline starts at the top-right corner and runs clockwise.
Rgb
An opaque color as a color picker shows it: straight, sRGB-encoded components in 0..=1.
Rgba
A straight (not premultiplied), sRGB-encoded color with alpha, each component in 0..=1.
RunTime
A run’s time span.
ShapeIssue
Where in a content tree a problem lies, and what it is.
ShapeMask
A shape that limits where a clip is visible.
ShapeTransform
A group’s placement. In pixel space: translate by position, rotate, scale, then translate by minus anchor, so anchor lands on position. The default is identity.
Shutter
A rotary shutter: the part of each frame during which motion is recorded.
Steps
A staircase of equal steps, as CSS steps().
StreamTopology
The streams a media file carries.
StrokeItem
A stroke along geometry, centred on its outline.
Subpath
A run of vertices joined by cubic Bezier segments.
SuppliedFile
A file of a resource slot that a plugin run read, by name and content, never by path.
TextAnimator
One animator: what it selects, and what it does to what it selects.
TextAnimatorProperties
What an animator does to each character, in proportion to its selection. A property left out does nothing.
TextBackground
A box behind each line of text, as CSS draws an inline box’s background with box-decoration-break: clone: each line’s box has its own padding, radius and border.
TextBoxBorder
The border of a text box, drawn inside the box’s edge.
TextDash
Dashes along a box border, as SVG stroke-dasharray and stroke-dashoffset: they start at the end of the top-left corner and run clockwise.
TextHighlight
A box over the timed run being said, sliding from run to run, drawn over the background boxes and under the glyphs. The run is the timed run that started last; before the first starts there is none.
TextInsets
A length on each side of a text box, as fractions of the font size.
TextReveal
A straight edge that shows a unit up to it, as a linear wipe: across the unit’s box (its advances by its em boxes, outset by its strokes) in the direction angle_degrees.
TextRun
A piece of a text with its own style, that animators’ Class and Timing selectors can pick.
TextRunStyle
A run’s changes to its holder’s text style, as an inline box’s own CSS properties. Each field set replaces the holder’s value for the run’s characters; a field left out keeps it. A change of family, weight, style, size or letter spacing shapes the run apart and can move line breaks; fill, strokes, background and decorations only paint.
TextShadow
A shadow of a text’s glyphs and strokes, behind them.
TextStroke
A band around the glyphs and the strokes listed before it, drawn behind them.
TextStyle
How text looks and where it lies, for caption cues or a text crate::Generator.
TextStylePatch
Changes to a TextStyle. Each field set replaces the base’s whole value (lists are not merged); a field left out keeps the base’s.
TimeKeyframe
One keyframe of a TimeMap::Curve.
TimeScale
A positive rational rate of one time against another.
Timeline
Timeline tracks ordered from back to front for visual tracks.
Track
A homogeneous visual or audio timeline lane.
TrackAudio
Per-track audio bus controls.
TrackId
A stable timeline-track identifier.
TrackList
A grid track list as CSS writes it: "1fr 2fr 120px", "repeat(3, minmax(100px, 1fr))", "repeat(auto-fill, 160px)". Named lines are not supported.
TrimItem
Keeps a span of geometry’s length.
ValueBezier
A cubic Bezier in (time, value) between two keys of a number.
Vec2
A two-dimensional value in normalized output coordinates.
VideoStreamShape
A video stream’s displayed size and frame rate.
VisualProperties
Resolution-independent visual presentation controls for a clip.

Enums§

AlignContent
Where the lines of a wrapping flex container, or a grid’s rows, lie across the container.
AlignItems
Where children lie across a flex container’s main axis, or in their grid areas.
Animated
A value that is constant, controlled by sorted keyframes, split into one animated number per component, or following a data set.
AnimatedPoint
A position that can move along curves between its keyframes.
AnimatorGrouping
The units whose clusters scale and turn about one pivot, as After Effects’ Anchor Point Grouping.
AudioEdgeKind
Which of its source’s signals an edge carries.
AudioEffect
A serializable audio effect applied to a clip, a track, a bus or the master.
AudioNode
A track or a bus, by position.
AudioNodeRef
A track or a bus, named by its id.
AudioRead
How a clip’s sound is read from its source.
AudioSink
What an edge feeds.
BindingProblem
What is wrong with a DataBinding, a CorrectionRef or a CaptionsFromWords.
BlendSpace
The color space in which blend modes are evaluated.
BlockEllipsis
What ends a line that a clamp cuts, as CSS block-ellipsis.
CacheIntent
Whether a runtime may keep and reuse a clip’s rendered picture.
CaptionImportError
Why a file is not a subtitle file at all.
ClipBlendMode
Blend mode, from W3C Compositing and Blending Level 1 (CSS mix-blend-mode) with the specification’s formulas, plus plus-lighter from Level 2.
ClipReference
What a reference to a clip is.
DataAnchor
The clock a data set’s times are on.
DataInterpolation
How a sampled data set reads between its samples.
DataKind
What a data set holds; each kind has a consumer in the engine.
DataOwner
What holds the value a ModelError::InvalidDataBinding names.
DataProblem
What is wrong with a data set.
DataSpace
Where a bound point is read.
DataValues
The values of a data set, by kind.
DataVia
The reader whose clock maps time onto a source-anchored data set.
Detector
How a compressor measures the level it compresses by.
Display
How a box lays its children out.
Easing
A timing curve from linear progress to eased progress, without a hold.
EffectKind
What an effect definition draws.
EffectOwner
What holds the effect a ModelError::InvalidEffect names.
EffectParamType
The type of a parameter’s values: the EffectValue variant it takes.
EffectParamUnit
How a parameter’s value reads in an editor.
EffectProblem
Why a ClipEffect naming a built-in does not match it.
EffectResourceKind
Portable effect-resource categories supported by the render ABI.
EffectValue
Serializable value supplied to one runtime effect parameter.
EqBandKind
The filter shape of one equalizer band, by the Audio EQ Cookbook’s second-order forms.
ErrorSubject
The document object a ModelError is about, by id.
Extrapolation
What a keyframed value does before its first keyframe or after its last.
FadeShape
Curve applied by a clip’s fade in and fade out.
FillRule
Which regions of a path are inside it.
FlexDirection
The main axis of a flex container.
FlexWrap
Whether a flex container’s children wrap.
FontStyle
Which faces of a family text prefers, as CSS font-style.
FrameInterpolation
What is shown at a source time between two frames of a video source.
Generator
The picture of a generated source.
GeneratorIssue
Why a generator is invalid.
GridAutoFlow
How a grid places items that have no placement of their own.
GridEdge
One edge of a grid item’s placement.
HdrSources
What a project does with HDR sources.
HighlightGap
What a highlight does after its run ends, before the next starts.
Interpolation
Interpolation from one keyframe to the next.
JustifyContent
Where children lie along a container’s main axis, or a grid’s columns in it.
LayoutLength
A layout length that may be a percent: a size or an inset side.
LayoutProblem
Why a layout tree is invalid.
LayoutSize
A layout length that may not be a percent: a gap, radius, border width, font size, padding or margin side, or translation.
LineCap
How an open stroke ends.
LineJoin
How stroke segments meet at a vertex.
LinearPrimaries
Named RGB primaries linear-light media may be in, each with its own white point.
LintEdge
The end of a range a LintIssue is about.
LintIssue
Something in a project that is valid but probably not meant.
LintOwner
What a LintIssue is about.
LoopMode
How each pass of a TimeMap::Loop follows the one before.
MaskMode
How a mask combines with the coverage of the masks before it.
MatteMode
Which property of the matte clip’s picture is coverage.
MediaKind
The payload domain of a source.
MissingFrames
How an image sequence shows a frame missing from its numbering.
ModelError
A document invariant violation.
NodeInput
One named input of a node, as a node’s inputs are listed.
NodeOp
The operation of a CompositionNode.
Orient
How a transform turns with its position.
Overflow
Whether content past a box’s padding box is drawn.
Paint
A color or gradient.
PolystarKind
What kind of figure a polystar is.
Position
Whether a box is in its parent’s flow.
ProjectLoadError
Failure while decoding a serialized project document.
ProjectWriteError
Why crate::Project::to_json wrote no document.
ProviderSource
A source whose media an extension provider supplies, not the host’s video and image decoders.
RangeShape
How selection rises and falls across a Range selector’s range.
RangeUnits
What a Range selector’s start, end and offset count in.
RepeatCount
How often repeat() repeats its tracks.
RunState
Which runs a Timing selector selects.
SegmentShape
What a keyframe segment does at one progress.
SendTap
Where a send takes its copy of the signal.
ShapeGeometry
A geometry alone, as a mask’s outline is.
ShapeItem
One entry of a shapes generator’s content tree.
ShapeLintOwner
The shapes or layout generator a shape LintIssue is about.
ShapeOwner
What holds the shape or layout a ModelError::InvalidShape or ModelError::InvalidLayout names.
ShapeProblem
Why a content tree or a mask outline is invalid.
ShutterProblem
The Shutter field a crate::ModelError::InvalidShutter names.
Spread
What a linear or radial gradient shows outside its first and last stops.
StepPosition
Where a steps curve rises, as the CSS steps() positions.
TextAlign
How lines of text align within it.
TextBoxExtent
Which part of each line a text’s background box spans, where tracking and pushing place its characters.
TextContent
A text: one string, or runs whose texts joined are the text.
TextSelector
How an animator selects characters.
TextUnit
The units a Range selector counts.
TimeMap
How a clip plays its source range over its timeline range.
TimeMapProblem
What is wrong with a clip’s TimeMap.
TimeOffsetProblem
Why a crate::ModelError::InvalidTimeOffset refuses a time offset node.
TimelineOwner
What holds a timeline-keyed value or a clip reference; track indexes timeline.tracks.
TrackBreadth
One side of minmax(): how large a grid track may be at least or at most.
TrackComponent
One entry of a track list: a track, or repeat() of some.
TrackKind
The media domain accepted by a track.
TrackSize
The size of one grid track.
TrimMode
What a trim measures.

Constants§

ADJUSTMENT_TRANSITION_ID
The one transition a transition from or to an adjustment clip may run.
ANIMATOR_SCALE_RANGE
The range an animator’s scale takes on each axis.
ASPECT_RATIO_RANGE
The range of a layout box’s aspect_ratio.
AUDIO_EFFECT_STATE_MARGIN_MS
How long before its start, beyond its track’s and its own compressor lookahead, a clip’s effects count as holding state, in milliseconds. This covers one block of the largest size at the lowest project rate plus per-lookahead sample rounding. Effects count until the clip’s end.
BUILTIN_EFFECT_PREFIX
Id prefix of built-in effects, transitions and generators. A document id under it must name a built-in, so host effects use ids outside it.
CURRENT_SCHEMA_VERSION
The newest project-document schema understood by this build.
EQ_FREQUENCY_RANGE_HZ
The frequencies an EQ band may name, in hertz: 10 Hz to just under the Nyquist frequency of the highest project rate. A band renders at most at 0.49 times the project’s rate, so a higher band sounds at that limit.
EQ_Q_RANGE
The resonances an EQ band renders.
FONT_SCALE_RANGE
The range a run’s font_scale takes, as multiples of the text’s font size.
FONT_SIZE_FIT_STEPS
Steps per unit of font size (a fraction of the shorter side) that a fitted font size takes between its bounds. Steps of 1 / 8192 are exact in f32 and under a pixel at 8K.
FONT_WEIGHT_RANGE
The font weights text takes, as CSS font-weight numbers.
HDR_PEAK_NITS_RANGE
Supported ColorPipeline::hdr_peak_nits: SDR white to PQ’s ceiling.
LAYOUT_TEXT_DEFAULTS
The initial text style: what the root inherits.
LETTER_SPACING_RANGE
The letter spacings text takes, as fractions of the font size.
LINE_HEIGHT_RANGE
The line heights text takes, as multiples of the font size.
LOOP_FADE_SECONDS
How long sound fades out before, and in after, each wrap of a repeating loop.
MAX_ANIMATOR_OFFSET
Largest magnitude of a text animator’s offset on each axis, in font sizes.
MAX_AUDIO_BUSES
Most buses a project holds.
MAX_AUDIO_DELAY_MS
Most audio held in delay lines at once, in milliseconds, summed over the effects MAX_AUDIO_EFFECTS counts (a compressor’s lookahead_ms, a reverb’s REVERB_DELAY_MS) and the routing edges that wait for a longer path (see crate::Project::audio_effect_load). At the highest project rate this is under 100 MB of state.
MAX_AUDIO_EFFECTS
Most audio effects a project holds state for at once: the master’s, the buses’, the tracks’, and those of clips holding state then (see AUDIO_EFFECT_STATE_MARGIN_MS). An equalizer is one effect regardless of bands.
MAX_AUDIO_SENDS
Most sends one track or bus holds.
MAX_BLOCK_ELLIPSIS_BYTES
Most bytes in a BlockEllipsis::String.
MAX_CANVAS_DIMENSION
Largest canvas edge accepted by the portable project model.
MAX_CANVAS_PIXELS
Largest total canvas area accepted before quality scaling.
MAX_CAPTION_FILE_BYTES
The largest subtitle file read, in bytes. A cue’s JSON is longer than its subtitle block, so a larger file holds more cues than a project can.
MAX_CAPTION_FILE_CUES
The most cues read from one subtitle file: a day of continuous captions at one cue every 1.3 s.
MAX_CAPTION_FONT_SIZE
Largest caption font size, as a fraction of the frame’s shorter side.
MAX_CAPTION_NAME_BYTES
Most bytes of a caption style’s name or a cue’s speaker.
MAX_CAPTION_STYLES
Most named styles one caption track holds.
MAX_CHAIN_EFFECTS
Most effects one chain holds: a clip’s, a track’s, a bus’s, or the master’s.
MAX_CHANNEL_GAIN
Largest magnitude of a ChannelTerm gain.
MAX_CLASS_NAME_BYTES
Most bytes of one class name.
MAX_CLIPS
Maximum number of clips across one project, and of sources in it.
MAX_CLIPS_PER_TRACK
Maximum number of clips on one track.
MAX_CLIP_MASKS
Most shape masks on one clip.
MAX_COMPOSITIONS
Most compositions in one project.
MAX_COMPOSITION_CONTROLS
Most controls a composition exposes as a group.
MAX_COMPOSITION_DEPTH
Deepest nesting of compositions. A composition that draws no other has depth one; one that draws others (via group nodes or composition-source media nodes) is one deeper than the deepest of them. Each time offset node on a path of inputs adds one more.
MAX_COMPOSITION_NODES
Most nodes in one composition.
MAX_COMPRESSOR_RATIO
Largest compressor ratio.
MAX_DASH_ENTRIES
Most entries in a stroke’s dash pattern.
MAX_DATA_CHANNELS
Most channels of one points or scalars data set.
MAX_DATA_COORDINATE
Largest magnitude of a normalized coordinate (points, similarity translation).
MAX_DATA_ID_BYTES
Most bytes of a data set’s id.
MAX_DATA_INTERVALS
Most intervals of one intervals data set.
MAX_DATA_LABEL_BYTES
Most bytes of an interval label, a word’s text or speaker, or a channel name.
MAX_DATA_ROTATION_DEGREES
Largest magnitude of a similarity rotation, in degrees.
MAX_DATA_SCALAR
Largest magnitude of a scalar or an interval score.
MAX_DATA_SCALE
Largest similarity scale; the smallest is just above zero.
MAX_DATA_SETS
Most data sets in one project.
MAX_DATA_VALUES
Most values (numbers or lost markers) of one sampled data set.
MAX_DATA_WORDS
Most words of one words data set.
MAX_DELAY_FEEDBACK
Most feedback a delay effect takes.
MAX_DELAY_MS
Longest delay effect time, in milliseconds; the shortest is one.
MAX_DERIVED_CUES
Most cues a caption track derives from words, as many as one subtitle file holds.
MAX_EASING_POINTS
The most points a points curve lists.
MAX_EASING_STEPS
The most steps a steps curve has.
MAX_EFFECT_INPUTS
The most named inputs an effect node gives its effect, matching what an effect definition may declare.
MAX_EFFECT_RESOURCES
Maximum number of effect resources in one project.
MAX_ENVELOPE_MS
Longest attack or release time, in milliseconds.
MAX_EQ_BANDS
Most bands one equalizer holds.
MAX_EQ_GAIN_DB
Largest peaking gain, in decibels either way, an EQ band renders.
MAX_EXPANDER_RANGE_DB
Deepest expander attenuation, in decibels.
MAX_FLEX_FACTOR
Largest flex grow or shrink factor.
MAX_FOLLOW_DEPTH
Longest chain of canvas-space follows from one clip, counted in links.
MAX_FONT_FAMILY_BYTES
Most bytes in a text style’s font family name.
MAX_FRAME_INLINED_NODES
Most composition nodes the clips at one instant draw together, each clip counted as MAX_INLINED_NODES counts its composition and composition source. This bounds per-frame work to one composition of the largest allowed size.
MAX_GAIN
Largest linear amplitude accepted by any authored gain.
MAX_GRADIENT_STOPS
Most stops in one gradient.
MAX_GRID_TRACKS
Most explicit tracks on one axis of a grid, repeat() counts expanded.
MAX_GROUP_INPUTS
Most inputs a composition takes as a group.
MAX_HIGHLIGHT_TRANSITION
Longest highlight transition.
MAX_HOLD_MS
Longest expander hold, in milliseconds.
MAX_INLINED_NODES
Most nodes the project’s compositions draw in total. Each node counts one, except a group node or composition-source media node, which counts the nodes of the composition it draws. A time offset node also counts the nodes it draws again: those its input reads up to the next time offset nodes, each counted as it counts itself. This bounds compile cost however uses multiply.
MAX_KEYFRAMES
Most keyframes of one animated value.
MAX_KNEE_DB
Widest compressor knee, in decibels.
MAX_LATEX_BYTES
Longest LaTeX formula a source holds, in bytes.
MAX_LATEX_FONT_SIZE
Largest LaTeX font size, in pixels per em.
MAX_LAYOUT_DEPTH
Deepest nesting of one layout tree; the root is depth 1.
MAX_LAYOUT_FONT_SIZE
Largest font size of a layout’s text, as a fraction of the picture’s shorter side.
MAX_LAYOUT_FRACTION
Largest magnitude of a layout length written as a fraction of the picture’s shorter side.
MAX_LAYOUT_ISOLATED
Most isolated nodes (with a visual field or hidden overflow) in one layout tree.
MAX_LAYOUT_NODES
Most nodes in one layout tree, the root included.
MAX_LAYOUT_PERCENT
Largest magnitude of a layout length written as a percent.
MAX_LAYOUT_PX
Largest magnitude of a layout length in canvas pixels: 1,024 times the largest canvas side.
MAX_LAYOUT_TEXTS
Most nodes with text in one layout tree.
MAX_LOOKAHEAD_MS
Longest compressor or expander lookahead, in milliseconds.
MAX_LOOP_PASSES
Most passes a looping clip makes over its timeline range. A longer loop is several clips.
MAX_LOTTIE_DOCUMENT_BYTES
Largest Lottie animation a provider reads, in bytes (a JSON file or an unpacked dotLottie animation). Parsing can take about 45 times the document size, so this caps it near 750 MiB; larger documents are refused before parsing.
MAX_MAKEUP_DB
Largest compressor makeup gain, in decibels either way.
MAX_MATRIX_GAIN
Largest magnitude of a matrix effect’s gain.
MAX_MERGE_LAYERS
Most layers in one merge node.
MAX_MOTION_PATH_VERTICES
The most vertices the path of a path position has.
MAX_PATH_SUBPATHS
Most subpaths one path holds.
MAX_PATH_VERTICES
Most vertices one path holds, over all its subpaths.
MAX_PDF_DOCUMENT_BYTES
Largest PDF document a provider reads, in bytes. Larger files are refused before reading.
MAX_PDF_PAGES
Most pages a PDF document a provider reads may have.
MAX_PITCH_CENTS
Largest pitch shift of a clip either way, in cents: two octaves.
MAX_POLYSTAR_POINTS
Most points a polystar has. A fractional count is valid; the fraction is dropped when drawn.
MAX_PROJECT_JSON_BYTES
Largest project document accepted by Project::from_json.
MAX_PROVIDER_DOCUMENT_BYTES
Largest dotLottie package a provider reads, in bytes, refusing larger files unread. Only the shown animation (within MAX_LOTTIE_DOCUMENT_BYTES) and its images are unpacked.
MAX_RANGE_INDEX
How far a Range selector in index units reaches past either end: [-N, 2N] units for N of this.
MAX_REVEAL_FEATHER
Widest feather of a text reveal’s edge, in font sizes.
MAX_RUN_CLASSES
Most classes one run carries.
MAX_SEQUENCE_FRAMES
Most frames an image sequence lists.
MAX_SHAPE_DEPTH
Deepest group nesting in one shapes generator.
MAX_SHAPE_ITEMS
Most items one shapes generator holds, including nested groups and their items.
MAX_SHUTTER_ANGLE_DEGREES
Largest Shutter::angle_degrees: two frames.
MAX_SHUTTER_PHASE_DEGREES
Largest magnitude of Shutter::phase_degrees: one frame.
MAX_SHUTTER_SAMPLES
Most samples a Shutter averages.
MAX_SUPPLIED_FILES
The most supplied files one plugin run reads, and one directory slot holds.
MAX_SUPPLIED_NAME_BYTES
The longest resource name of a supplied file, in bytes.
MAX_SVG_DOCUMENT_BYTES
Largest SVG document a provider reads, in bytes. Parsing can take about 30 times the document size, so this caps it near 960 MiB; larger documents are refused before parsing.
MAX_TEXT_ANIMATORS
Most animators one text style holds.
MAX_TEXT_BORDER_WIDTH
Widest text box border, as a fraction of the font size.
MAX_TEXT_CONTENT_BYTES
Most bytes of text in one caption cue or text generator.
MAX_TEXT_DASH_ENTRY
Largest dash or gap of a text box border, as a fraction of the font size.
MAX_TEXT_DASH_OFFSET
Largest magnitude of a text box border’s dash offset, as a fraction of the font size.
MAX_TEXT_FONT_SELECTIONS
Most distinct (family, weight, style) selections one text draws in, counted after each run’s style is applied.
MAX_TEXT_GENERATOR_FONT_SIZE
Largest font size of a text generator, as a fraction of the canvas’s shorter side.
MAX_TEXT_PADDING
Largest text background padding and radius, as a fraction of the font size.
MAX_TEXT_POSITION
Largest magnitude of a text’s position or anchor coordinate, in canvas or text extents.
MAX_TEXT_RUNS
Most runs one text holds.
MAX_TEXT_SHADOWS
Most shadows under one text.
MAX_TEXT_SHADOW_BLUR
Widest text shadow blur, as a fraction of the font size.
MAX_TEXT_SHADOW_OFFSET
Farthest a text shadow lies from its text on each axis, as a fraction of the font size.
MAX_TEXT_STROKES
Most strokes around one text.
MAX_TEXT_STROKE_EXTENT
Widest a text’s strokes reach together (the sum of their widths), as a fraction of the font size.
MAX_TRACKS
Maximum number of tracks in one project.
MAX_TRANSITIONS_PER_TRACK
Maximum number of transitions on one track.
MIN_LEVEL_DB
The quietest compressor or expander threshold or ducker depth, in decibels; each is at most 0 dB.
MIN_POLYSTAR_POINTS
Fewest points a polystar has.
MIN_SHUTTER_SAMPLES
Fewest samples a Shutter averages.
RANGE_PERCENT
The range a percent Range selector’s start, end and offset take.
REVERB_DELAY_MS
What one reverb counts toward MAX_AUDIO_DELAY_MS; its comb and allpass lines hold about 157 ms at any rate.
SAMPLE_RATE_RANGE
Supported project audio sample-rate interval.
SIMILARITY_ARITY
Numbers per similarity sample: tx, ty, rotation in degrees, scale.
WORD_PAUSE_TICKS
The longest gap between two words of one cue, in ticks (0.6 s).

Traits§

AnimatedValue
A type an Animated value can hold. Sealed: implemented for the model’s animatable types.
TimelineValue
A value whose keyframes are in timeline time.

Functions§

builtin_effect
The built-in definition with id.
builtin_effects
Every built-in definition: effects, then transitions, then generators, in catalog order.
builtin_effects_json
The catalog JSON the built-ins were read from, as schema/effects.v1.json publishes it.
caption_rows
Splits cues onto rows, one caption track each. Every cue goes to the first row with room (a track holds MAX_CLIPS_PER_TRACK) whose last cue has ended by its start. O(n log n) in the cues, however many overlap.
check_builtin_effect
Checks effect against its built-in definition, used as kind, as project validation does for a timeline transition, a generator or a node without named inputs. Ids outside BUILTIN_EFFECT_PREFIX belong to the host and pass.
clip_runs
Clamps a cue’s run times to its range after the range was shortened. A run that would start at or after the end gets no time.
easing_points_at
The output of a points curve at linear progress (clamped to 0..=1): the straight line between its two neighbours among (0, 0), the points and (1, 1).
easing_points_between
The points of the curve strictly between linear progress start and end, with that part stretched over 0..1 and each output passed through output, which maps the part’s first output to 0 and its last to 1. None when an output is then not finite.
easing_points_range
The least and greatest output of a points curve.
easing_points_reversed
The points of the same curve played backwards: its output at progress is one minus this curve’s at 1 - progress.
easing_points_slope
The slope of a points curve at linear progress (clamped to 0..=1): that of the piece progress lies on, the later one at a point and the last at 1.
easing_points_valid
Whether points rise strictly in x inside (0, 1), have finite outputs, and number at most MAX_EASING_POINTS.
end_cues_where_the_next_starts
Ends each cue of cues, sorted by start, where the next starts, and drops a cue left empty.
group_words
Words grouped into cues that end at max_chars characters, a sentence’s end, a pause longer than WORD_PAUSE_TICKS, a change of speaker, or before the text would pass MAX_TEXT_CONTENT_BYTES or crate::MAX_TEXT_RUNS runs. Each cue has one run per word (with the separator that follows it), timed from the cue’s start, so Timing selectors follow the speech. A word whose text trims to nothing is skipped.
loop_passes
Passes a source-tick loop makes over timeline ticks, rounded up; zero for an empty source.
parse_srt
Reads SubRip (.srt) text.
parse_webvtt
Reads WebVTT (.vtt) text. NOTE, STYLE, and REGION blocks are ignored.
time_handles_valid
Whether a cubic from time 0 to 1 with inner time coordinates x1, x2 never runs backwards.
valid_class_name
Whether name is a class name a run or a Class selector may carry.
valid_interval
Checks an interval’s own fields (order against its neighbours is checked by the caller).
valid_word
Checks a word’s own fields (order against its neighbours is checked by the caller).
validate_shape_items
Checks a content tree: its limits, every value’s range, and that animated paths and paints agree in structure between keyframes.
value_in_bounds
Whether value is inside its kind’s bounds; component is the position within a sample’s numbers for a similarity set.

Type Aliases§

TimelineVisit
A visitor of timeline-clock values, given each value’s place as Type.field (Type[tag] for an enum variant), the names of the model’s JSON schema.