pub fn decode(
src: &[u8],
profile: &Profile,
canceled: &AtomicBool,
) -> Result<DecodedImage, DecodeError>Expand description
Decode a CLCL (separate Cb/Cr nibble-plane) frame to BGRA8 output.
§Arguments
src— Raw pixel data:w × hY bytes, thenw × h / 2packed-Cb bytes, thenw × h / 2packed-Cr bytes.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.