MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / liq_attr_set_progress_callback

Function liq_attr_set_progress_callback

imagequant-sys/src/ffi.rs:179–183  ·  view source on GitHub ↗
(attr: &mut liq_attr, callback: liq_progress_callback_function, user_info: AnySyncSendPtr)

Source from the content-addressed store, hash-verified

177#[no_mangle]
178#[inline(never)]
179pub unsafe extern "C" fn liq_attr_set_progress_callback(attr: &mut liq_attr, callback: liq_progress_callback_function, user_info: AnySyncSendPtr) {
180 if bad_object!(attr, LIQ_ATTR_MAGIC) { return; }
181 let cb = move |f| if callback(f, user_info) == 0 { ControlFlow::Break} else { ControlFlow::Continue};
182 attr.inner.set_progress_callback(cb);
183}
184
185#[no_mangle]
186#[inline(never)]

Callers 2

test_abortFunction · 0.85
test_fixed_colorsFunction · 0.85

Calls 1

set_progress_callbackMethod · 0.45

Tested by 2

test_abortFunction · 0.68
test_fixed_colorsFunction · 0.68