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

Function liq_get_palette

imagequant-sys/src/ffi.rs:157–160  ·  view source on GitHub ↗
(result: &mut liq_result)

Source from the content-addressed store, hash-verified

155#[no_mangle]
156#[inline(never)]
157pub extern "C" fn liq_get_palette(result: &mut liq_result) -> Option<&liq_palette> {
158 if bad_object!(result, LIQ_RESULT_MAGIC) { return None; }
159 Some(liq_get_palette_impl(&mut result.inner))
160}
161
162/// A `void*` pointer to any data, as long as it's thread-safe
163#[repr(transparent)]

Callers 7

MainMethod · 0.85
mainFunction · 0.85
c_callback_test_cFunction · 0.85
test_histogramFunction · 0.85
test_fixed_colorsFunction · 0.85
test_fixed_colors_orderFunction · 0.85

Calls 1

liq_get_palette_implFunction · 0.85

Tested by 4

c_callback_test_cFunction · 0.68
test_histogramFunction · 0.68
test_fixed_colorsFunction · 0.68
test_fixed_colors_orderFunction · 0.68