Function libwebp_sys::WebPDecodeYUV
source · pub unsafe extern "C" fn WebPDecodeYUV(
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
Expand description
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’. ‘width’ and ‘height’ may be NULL, the other pointers must not be. Returns NULL in case of error. () Also named Y’CbCr. See: https://en.wikipedia.org/wiki/YCbCr