Skip to main content

Module tc_range

Module tc_range 

Source
Expand description

Timecode range operations for defining and manipulating spans of timecode.

Provides TcRange for representing a contiguous span of timecode values, with support for iteration, containment checks, overlap detection, splitting, and merging.

Structs§

SplitResult
Result of splitting a range at a given timecode.
TcRange
A contiguous range of timecodes defined by an inclusive start and exclusive end.

Enums§

OverlapKind
Describes the overlap relationship between two ranges.

Functions§

merge_ranges
Merges a list of potentially overlapping ranges into a sorted, non-overlapping set.
total_coverage
Computes the total number of frames covered by a set of ranges (after merging).