Skip to main content

encode_scan

Function encode_scan 

Source
pub fn encode_scan(
    frame: &FrameInfo,
    scan_components: &[ScanComponent],
    grids: &[DctGrid],
    dc_specs: &[Option<HuffmanSpec>; 4],
    ac_specs: &[Option<HuffmanSpec>; 4],
    restart_interval: u16,
) -> Result<Vec<u8>>
Expand description

Encode DctGrids back to entropy-coded scan data.

Returns the raw entropy-coded bytes (without SOS header, but including restart markers if restart_interval > 0).