pub unsafe extern "C" fn WebPDecodeRGBA(
    data: *const u8,
    data_size: usize,
    width: *mut c_int,
    height: *mut c_int
) -> *mut u8
Expand description

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.