Function libwebp_sys::WebPGetInfo
source · pub unsafe extern "C" fn WebPGetInfo(
data: *const u8,
data_size: usize,
width: *mut c_int,
height: *mut c_int
) -> c_int
Expand description
Retrieve basic header information: width, height. This function will also validate the header, returning true on success, false otherwise. ‘*width’ and ‘*height’ are only valid on successful return. Pointers ‘width’ and ‘height’ can be passed NULL if deemed irrelevant. Note: The following chunk sequences (before the raw VP8/VP8L data) are considered valid by this function: RIFF + VP8(L) RIFF + VP8X + (optional chunks) + VP8(L) ALPH + VP8 <– Not a valid WebP format: only allowed for internal purpose. VP8(L) <– Not a valid WebP format: only allowed for internal purpose.