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§
- Offset
Table - Pre-computed offset table for a particular frame rate.
Functions§
- signed_
frame_ distance - Compute the frame-accurate distance between two timecodes using the table.