Skip to main content

plan

Function plan 

Source
pub fn plan(
    format: Format,
    data_len: usize,
    width: i32,
    height: i32,
) -> Result<Plan, DecodeError>
Expand description

What decoding format at width x height from data_len bytes of data needs and gives, or the error decode() returns for it: the module docs’ size/length checks in their order. For crunch, success only establishes a memory bound: header or bitstream validation may subsequently return DecodeError::Crunch. HDR block content can likewise return DecodeError::Hdr after planning succeeds.