Skip to main content

decode

Function decode 

Source
pub fn decode(
    src: &[u8],
    profile: &Profile,
    canceled: &AtomicBool,
) -> Result<DecodedImage, DecodeError>
Expand description

Decode a UYVY frame to BGRA8.

§Arguments

  • src — Raw UYVY data (2 bytes per pixel in the format above).
  • profile — Frame profile providing dimensions and interlacing flag.

§Errors

VariantCondition
InvalidFormatNon-positive width or height, or odd height with interlacing