Function WebPConfigPreset

Source
pub unsafe extern "C" fn WebPConfigPreset(
    config: *mut WebPConfig,
    preset: WebPPreset,
    quality: c_float,
) -> c_int
Expand description

This function will initialize the configuration according to a predefined set of parameters (referred to by preset) and a given quality factor. This function can be called as a replacement to WebPConfigInit(). Will return false in case of error.