Skip to main content

scramble_bytes

Function scramble_bytes 

Source
pub fn scramble_bytes(
    kind: ScramblerKind,
    per_frame_seed: u32,
    bytes: &mut [u8],
)
Expand description

Applies the byte-domain whitener for kind to bytes in place (self-inverse, so the same call scrambles and descrambles). Handles both the generic Additive LFSR and DVB-T energy dispersal; a no-op for None. The after-inner-FEC bit-domain scramble position uses the PnScrambler directly (DVB-T energy dispersal is byte-domain / before-FEC only).