Skip to main content

plan_composition

Function plan_composition 

Source
pub fn plan_composition(
    composition: &Composition,
    compositions: &[Composition],
    sources: &[MediaSource],
) -> Result<CompositionPlan, PlanError>
Expand description

Compiles composition’s output into steps, as a clip’s composition: its clip nodes draw the clip’s picture. compositions resolves group nodes and sources media nodes, which may name generated or composition sources.

The project must be valid (alpha2_model::Project::validate): every input names a node, there is no cycle, and no composition uses itself.

The plan holds at most MAX_PLAN_BYTES; an index holds every plan of a project within that together.

§Errors

Returns PlanError when there is no output, the output needs an input that is not connected or a group input no group node feeds, or the plan nests too deep or grows too large.