O
Sections
Every group

Algorithm

Operations that build a new object out of existing ones.

Symbols in this group are spelled otio_algorithm_…. An SDK drops that prefix, which is why the name beside each call is the short one.

flatten_stack

method

Collapses a stack's tracks into one, top layer winning where it is visible.

OtioStatus otio_algorithm_flatten_stack(
    OtioDocument *target,
    OtioNode stack,
    OtioNode *out_track,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
stacknodeinput
out_tracknodewritten through, not read
out_errortextwhy the call failed, or null to skip it

flatten_tracks

method

Collapses a list of tracks into one, lowest first.

OtioStatus otio_algorithm_flatten_tracks(
    OtioDocument *target,
    const OtioNode *tracks,
    size_t count,
    OtioNode *out_track,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
tracks ?list<node>input
countsizethe length of the buffer before it
out_tracknodewritten through, not read
out_errortextwhy the call failed, or null to skip it

track_trimmed_to_range

method

Returns a copy of a track holding only what falls inside a span.

The copy is added to the same document and has no parent.

OtioStatus otio_algorithm_track_trimmed_to_range(
    OtioDocument *target,
    OtioNode track,
    OtioTimeRange trim_range,
    OtioNode *out_track,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
tracknodeinput
trim_rangeOtioTimeRangeinput
out_tracknodewritten through, not read
out_errortextwhy the call failed, or null to skip it