O
Sections
Every group

TimeRange

A span of time: where it starts and how long it lasts.

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

before_range

method

Returns whether this range ends before another begins.

bool otio_time_range_before_range(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

before_time

method

Returns whether this range ends before an instant.

bool otio_time_range_before_time(
    OtioTimeRange range,
    OtioRationalTime time,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput
epsilon_sdoubleinput

begins_range

method

Returns whether another range starts where this one does.

bool otio_time_range_begins_range(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

begins_time

method

Returns whether this range starts at an instant.

bool otio_time_range_begins_time(
    OtioTimeRange range,
    OtioRationalTime time,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput
epsilon_sdoubleinput

clamped_range

method

Returns the range pulled inside this one, where it lies outside it.

OtioTimeRange otio_time_range_clamped_range(OtioTimeRange range, OtioTimeRange other);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput

clamped_time

method

Returns the instant pulled inside the range, if it lies outside it.

OtioRationalTime otio_time_range_clamped_time(
    OtioTimeRange range,
    OtioRationalTime time);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput

contains_range

method

Returns whether another range falls entirely inside this one.

bool otio_time_range_contains_range(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

contains_time

method

Returns whether an instant falls inside the range, the end excluded.

bool otio_time_range_contains_time(OtioTimeRange range, OtioRationalTime time);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput

duration_extended_by

method

Returns the range with its duration lengthened.

OtioTimeRange otio_time_range_duration_extended_by(
    OtioTimeRange range,
    OtioRationalTime by);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
byOtioRationalTimeinput

end_time_exclusive

getter

Returns the instant just after the range's end.

OtioRationalTime otio_time_range_end_time_exclusive(OtioTimeRange range);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about

end_time_inclusive

getter

Returns the last instant the range covers.

OtioRationalTime otio_time_range_end_time_inclusive(OtioTimeRange range);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about

extended_by

method

Returns the smallest range covering both of two ranges.

OtioTimeRange otio_time_range_extended_by(OtioTimeRange range, OtioTimeRange other);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput

finishes_range

method

Returns whether another range ends where this one does.

bool otio_time_range_finishes_range(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

finishes_time

method

Returns whether this range ends at an instant.

bool otio_time_range_finishes_time(
    OtioTimeRange range,
    OtioRationalTime time,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput
epsilon_sdoubleinput

from_start_end_time

constructor

Builds a range from its start and the instant after its end.

OtioTimeRange otio_time_range_from_start_end_time(
    OtioRationalTime start_time,
    OtioRationalTime end_time_exclusive);
ParameterTypeRole
start_timeOtioRationalTimeinput
end_time_exclusiveOtioRationalTimeinput

from_start_end_time_inclusive

constructor

Builds a range from its start and its last instant.

OtioTimeRange otio_time_range_from_start_end_time_inclusive(
    OtioRationalTime start_time,
    OtioRationalTime end_time_inclusive);
ParameterTypeRole
start_timeOtioRationalTimeinput
end_time_inclusiveOtioRationalTimeinput

intersects

method

Returns whether two ranges share more than a single boundary instant.

bool otio_time_range_intersects(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

is_valid

getter

Returns whether a range is usable: valid times and a duration of at least zero.

bool otio_time_range_is_valid(OtioTimeRange range);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about

meets

method

Returns whether this range ends exactly where another begins.

bool otio_time_range_meets(OtioTimeRange range, OtioTimeRange other, double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

overlaps_range

method

Returns whether two ranges share any time at all.

bool otio_time_range_overlaps_range(
    OtioTimeRange range,
    OtioTimeRange other,
    double epsilon_s);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
otherOtioTimeRangeinput
epsilon_sdoubleinput

overlaps_time

method

Returns whether an instant falls inside the range, the ends included.

bool otio_time_range_overlaps_time(OtioTimeRange range, OtioRationalTime time);
ParameterTypeRole
rangeOtioTimeRangewhat the call is about
timeOtioRationalTimeinput