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

Method int_palette

src/quant.rs:204–214  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

202 }
203
204 pub(crate) fn int_palette(&mut self) -> &Palette {
205 if let Some(remap) = self.remapped.as_ref() {
206 debug_assert!(remap.int_palette.count > 0);
207 &remap.int_palette
208 } else {
209 if self.int_palette.count == 0 {
210 self.palette.init_int_palette(&mut self.int_palette, self.gamma, self.min_posterization_output);
211 }
212 &self.int_palette
213 }
214 }
215
216 /// Callback called at various point of processing, which gets percentage of progress done,
217 /// and can return `ControlFlow::Break` to abort further processing

Callers 2

paletteMethod · 0.80
liq_get_palette_implFunction · 0.80

Calls 1

init_int_paletteMethod · 0.80

Tested by

no test coverage detected