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

Method palette

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

Source from the content-addressed store, hash-verified

198 #[inline]
199 #[must_use]
200 pub fn palette(&mut self) -> &[RGBA] {
201 self.int_palette().as_slice()
202 }
203
204 pub(crate) fn int_palette(&mut self) -> &Palette {
205 if let Some(remap) = self.remapped.as_ref() {

Callers 4

palette_vecMethod · 0.80
histogramFunction · 0.80
set_importance_mapFunction · 0.80
test_fixed_colorsFunction · 0.80

Calls 2

int_paletteMethod · 0.80
as_sliceMethod · 0.45

Tested by 3

histogramFunction · 0.64
set_importance_mapFunction · 0.64
test_fixed_colorsFunction · 0.64