Skip to main content

Module tc_offset_table

Module tc_offset_table 

Source
Expand description

Pre-computed offset look-up tables for fast timecode-to-frame conversion.

Converting timecodes to absolute frame numbers (especially with drop-frame adjustments) involves repeated arithmetic. For performance-critical paths such as real-time LTC decoders, this module provides a pre-built table that maps every minute boundary to its absolute frame offset, enabling O(1) look-ups plus a small linear interpolation.

Structs§

OffsetTable
Pre-computed offset table for a particular frame rate.

Functions§

signed_frame_distance
Compute the frame-accurate distance between two timecodes using the table.