[−][src]Function webp_dev::sys::webp::webp_decode_rgba
pub unsafe fn webp_decode_rgba(
data: *const u8,
data_size: usize,
width: *mut c_int,
height: *mut c_int
) -> *mut u8
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.