[][src]Function webp_dev::sys::webp::webp_config_preset

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

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.