Type Alias WebPProgressHook

Source
pub type WebPProgressHook = Option<extern "C" fn(c_int, *const WebPPicture) -> c_int>;
Expand description

Progress hook, called from time to time to report progress. It can return false to request an abort of the encoding process, or true otherwise if everything is OK.

Aliased Type§

enum WebPProgressHook {
    None,
    Some(extern "C" fn(_: i32, _: *const WebPPicture) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(extern "C" fn(_: i32, _: *const WebPPicture) -> i32)

Some value of type T.