pub unsafe extern "C" fn WebPDecodeYUVInto(
    data: *const u8,
    data_size: usize,
    luma: *mut u8,
    luma_size: usize,
    luma_stride: c_int,
    u: *mut u8,
    u_size: usize,
    u_stride: c_int,
    v: *mut u8,
    v_size: usize,
    v_stride: c_int
) -> *mut u8
Expand description

WebPDecodeYUVInto() is a variant of WebPDecodeYUV() that operates directly into pre-allocated luma/chroma plane buffers. This function requires the strides to be passed: one for the luma plane and one for each of the chroma ones. The size of each plane buffer is passed as ‘luma_size’, ‘u_size’ and ‘v_size’ respectively. Pointer to the luma plane (‘*luma’) is returned or NULL if an error occurred during decoding (or because some buffers were found to be too small).