vsmuxtools.video.hdr.timeline
Frame timeline helpers shared by the dynamic HDR metadata builders.
resolve_ranges
resolve_ranges(ranges: Trim | list[int | None] | Sequence[Trim] | None, num_frames: int, caller: object = 'HDR metadata') -> list[tuple[int, int | None]]
Resolve Python frame ranges using the source helper's negative-bound semantics.
Source code in
vsmuxtools/video/hdr/timeline.py
select_ranges
select_ranges(mapping: Sequence[int], ranges: Trim | list[int | None] | Sequence[Trim] | None, caller: object = 'HDR metadata') -> list[int]
Select ranges from a timeline, retaining the source helper's leading padding behavior.
Source code in
vsmuxtools/video/hdr/timeline.py
remove_ranges
remove_ranges(mapping: Sequence[int], ranges: Trim | list[int | None] | Sequence[Trim] | None, caller: object = 'HDR metadata') -> list[int]
Remove inclusive editor ranges expressed as Python exclusive-end ranges.
Source code in
vsmuxtools/video/hdr/timeline.py
duplicate_frame
Insert copies immediately after a current-timeline frame.
Source code in
vsmuxtools/video/hdr/timeline.py
editor_ranges
Collapse sorted source indices into inclusive ranges for upstream editor configs.
Source code in
vsmuxtools/video/hdr/timeline.py
compile_editor_timeline
Compile a monotonic mapping into dovi_tool/hdr10plus_tool editor operations.
Source code in
vsmuxtools/video/hdr/timeline.py
segment_editor_config
segment_editor_config(length: int, frames: slice | tuple[int, int] | list[int] | None) -> TimelineConfig
Create a range-removal config for a contiguous prepared-output segment.