[][src]Function webp_dev::sys::webp::webp_decode_yuv

pub unsafe fn webp_decode_yuv(
    data: *const u8,
    data_size: usize,
    width: *mut c_int,
    height: *mut c_int,
    u: *mut *mut u8,
    v: *mut *mut u8,
    stride: *mut c_int,
    uv_stride: *mut c_int
) -> *mut u8

Decode WebP images pointed to by 'data' to Y'UV format(*).

The pointer returned is the Y samples buffer. Upon return, *u and *v will point to the U and V chroma data. These U and V buffers need NOT be passed to WebPFree(), unlike the returned Y luma one. The dimension of the U and V planes are both (*width + 1) / 2 and (*height + 1)/ 2. Upon return, the Y buffer has a stride returned as '*stride', while U and V have a common stride returned as 'uv_stride'. Return NULL in case of error. () Also named Y'CbCr. See: http://en.wikipedia.org/wiki/YCbCr