Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_vec
Method · 0.80
histogram
Function · 0.80
set_importance_map
Function · 0.80
test_fixed_colors
Function · 0.80
Calls
2
int_palette
Method · 0.80
as_slice
Method · 0.45
Tested by
3
histogram
Function · 0.64
set_importance_map
Function · 0.64
test_fixed_colors
Function · 0.64