pub fn decode(
src: &[u8],
profile: &Profile,
canceled: &AtomicBool,
) -> Result<DecodedImage, DecodeError>Expand description
Decode a CL (per-pixel nibble chroma) frame to BGRA8 output.
§Arguments
src— Raw pixel data:w × hY bytes followed byw × hCbCrbytes.profile— The profile describing this frame’s dimensions.
§Returns
Ok(DecodedImage) on success, or a DecodeError on failure.
§Errors
DecodeError::InvalidFormat— width or height ≤ 0.DecodeError::BufferTooShort— input too small for the declared dimensions.
§Panics
Never panics.