Function WebPEncodeBGR

Source
pub unsafe extern "C" fn WebPEncodeBGR(
    bgr: *const u8,
    width: c_int,
    height: c_int,
    stride: c_int,
    quality_factor: c_float,
    output: *mut *mut u8,
) -> usize
Expand description

Returns the size of the compressed data (pointed to by *output``), or 0 if an error occurred. The compressed data must be released by the caller using the call WebPFree(*output)`. These functions compress using the lossy format, and the quality_factor can go from 0 (smaller output, lower quality) to 100 (best quality, larger output).