Range Objects
start
int - The starting value of the range.end
int - The ending value of the range.
overlaps
merge
frame_to_range
frame
int - The single frame to be converted.
Range
- A Range object with both start and end set to the input frame.
frames_to_ranges
frames
Collection[int] - A collection of integers representing frames.
Ranges
- A list of Range objects representing the non-overlapping ranges.
ranges_to_list
ranges
Ranges - A list of Range objects.
List[List[int]]
- A list of lists where each inner list contains two integers, the start and end of a range.
range_to_ranges
range_
Range - The single Range to be converted.
Ranges
- A list containing the input Range as its only element.
range_to_frames
range_
Range - The single Range to be converted.
List[int]
- A list of integers representing the frames within the range.
ranges_to_frames
range_list
Ranges - A list of Range objects.
List[int]
- A sorted list of integers representing all frames within the ranges.
ranges_list_to_ranges
range_list
List[List[int]] - A list of lists where each inner list contains two integers, the start and end of a range.
Ranges
- A list of Range objects created from the input list of lists.
frames_class_to_frames_list
frames_class
Frames - A Frames class which can be a single int, a list of ints, a Range object, or a list of Range objects.
List[int]
- A sorted list of integers representing all frames within the input Frames class.
RuntimeError
- If the input frames_class is of an unexpected type.