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

Method quantize

src/hist.rs:185–187  ·  view source on GitHub ↗
(&mut self, attr: &Attributes)

Source from the content-addressed store, hash-verified

183 /// If you're generating palette for only one image, it's better not to use the `Histogram`.
184 #[inline]
185 pub fn quantize(&mut self, attr: &Attributes) -> Result<QuantizationResult, Error> {
186 self.quantize_internal(attr, true)
187 }
188
189 #[inline(never)]
190 pub(crate) fn quantize_internal(&mut self, attr: &Attributes, freeze_result_colors: bool) -> Result<QuantizationResult, Error> {

Callers 12

remap_ordFunction · 0.45
remap_floydFunction · 0.45
quantize_s8Function · 0.45
quantize_s1Function · 0.45
from_paletteMethod · 0.45
histogramFunction · 0.45
poke_itFunction · 0.45
set_importance_mapFunction · 0.45
r_callback_testFunction · 0.45
test_fixed_colorsFunction · 0.45
background_to_nopFunction · 0.45
mainFunction · 0.45

Calls 1

quantize_internalMethod · 0.80

Tested by 6

histogramFunction · 0.36
poke_itFunction · 0.36
set_importance_mapFunction · 0.36
r_callback_testFunction · 0.36
test_fixed_colorsFunction · 0.36
background_to_nopFunction · 0.36