Skip to main content

source_range_to_timeline

Function source_range_to_timeline 

Source
pub fn source_range_to_timeline(
    timeline: TimeRange,
    source: TimeRange,
    time_map: TimeMap,
    frame_rate: FrameRate,
    range_start: MediaTime,
    range_end: MediaTime,
) -> Option<Vec<TimeRange>>
Expand description

The timeline ranges of a clip at which its picture shows a source time in [range_start, range_end), the full preimage of picture_source_time.

Forward and stretched clips give one range, reversed clips one mirrored range, loops one per pass that reaches the interval, and a freeze the whole clip when its instant lies inside the interval. Ranges are in timeline order and disjoint. None for a time beyond ticks.