Skip to main content

decode_quarter_frames

Function decode_quarter_frames 

Source
pub fn decode_quarter_frames(data: &[u8; 8]) -> Result<Timecode, AudioError>
Expand description

Decode eight MTC quarter-frame data bytes back into a Timecode.

Each byte must carry its own piece index in the upper nibble (0..=7) and the eight indices must all be present exactly once. Errors on a malformed set or out-of-range reconstructed fields.