MCPcopy Index your code
hub / github.com/ImageOptim/libimagequant / liq_histogram_create

Function liq_histogram_create

imagequant-sys/src/ffi.rs:412–418  ·  view source on GitHub ↗
(attr: &liq_attr)

Source from the content-addressed store, hash-verified

410#[no_mangle]
411#[inline(never)]
412pub extern "C" fn liq_histogram_create(attr: &liq_attr) -> Option<Box<liq_histogram>> {
413 if bad_object!(attr, LIQ_ATTR_MAGIC) { return None; }
414 Some(Box::new(liq_histogram {
415 magic_header: LIQ_HISTOGRAM_MAGIC,
416 inner: Histogram::new(&attr.inner),
417 }))
418}
419
420#[no_mangle]
421#[inline(never)]

Callers 3

links_and_runsFunction · 0.85
test_zero_histogramFunction · 0.85
test_histogramFunction · 0.85

Calls 1

newFunction · 0.85

Tested by 3

links_and_runsFunction · 0.68
test_zero_histogramFunction · 0.68
test_histogramFunction · 0.68