[−][src]Function libwebp::WebPDecodeRGBA
pub fn WebPDecodeRGBA(
data: &[u8]
) -> Result<(u32, u32, WebpBox<[u8]>), WebPSimpleError>
Decodes WebP images pointed to by 'data' and returns RGBA samples, along with the dimensions in *width and *height. The ordering of samples in memory is R, G, B, A, R, G, B, A... in scan order (endian-independent). The returned pointer should be deleted calling WebPFree(). Returns NULL in case of error.