[−][src]Function webp_dev::sys::webp::webp_get_info
pub unsafe fn webp_get_info(
data: *const u8,
data_size: usize,
width: *mut c_int,
height: *mut c_int
) -> c_int
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.