Skip to main content

decode

Function decode 

Source
pub fn decode(
    data: &[u8],
    hdr: &HasselbladHeader,
    out: &mut [u16],
    width: usize,
    height: usize,
    base: i32,
) -> Result<()>
Expand description

Decode a single-shot stream into out (width x height, row-major). base is added to the row-start predictor (0 except for some H4D-60 3FR files).