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

Function liq_set_dithering_level

imagequant-sys/src/ffi.rs:472–475  ·  view source on GitHub ↗
(result: &mut liq_result, dither_level: f32)

Source from the content-addressed store, hash-verified

470#[no_mangle]
471#[inline(never)]
472pub extern "C" fn liq_set_dithering_level(result: &mut liq_result, dither_level: f32) -> liq_error {
473 if bad_object!(result, LIQ_RESULT_MAGIC) { return Error::InvalidPointer; }
474 result.inner.set_dithering_level(dither_level).err().unwrap_or(LIQ_OK)
475}
476
477#[no_mangle]
478#[inline(never)]

Callers 3

mainFunction · 0.85
test_fixed_colors_orderFunction · 0.85

Calls 1

set_dithering_levelMethod · 0.80

Tested by 1

test_fixed_colors_orderFunction · 0.68