Skip to main content

encode_anc_timecode

Function encode_anc_timecode 

Source
pub fn encode_anc_timecode(
    tc: &Timecode,
    binary_groups: [u8; 4],
) -> Smpte309mPacket
Expand description

Encode a Timecode into a SMPTE 309M ANC packet.

binary_groups — 4 bytes of user binary group data (packed into words 4–7; words 8–15 are zero-padded binary group bytes). Pass [0u8; 4] if unused.

The returned packet has DID=0x60, SDID=0x60, and 16 parity-protected 10-bit words encoding the timecode and binary group data.