pub fn decode_rgba(data: &[u8]) -> Result<(Vec<u8>, u32, u32), DecodingError>Expand description
Decode WebP data to RGBA pixels.
Returns the decoded pixels and dimensions.
ยงExample
let webp_data: &[u8] = &[]; // your WebP data
let (pixels, width, height) = zenwebp::decode_rgba(webp_data)?;