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

Function largepal

src/pal.rs:446–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444#[test]
445#[cfg(feature = "large_palettes")]
446fn largepal() {
447 let gamma = gamma_lut(0.5);
448 let mut p = PalF::new();
449 for i in 0..1000 {
450 let rgba = RGBA::new(i as u8, (i/2) as u8, (i/4) as u8, 255);
451 p.push(f_pixel::from_rgba(&gamma, rgba), PalPop::new(1.));
452 }
453}

Callers

nothing calls this directly

Calls 3

gamma_lutFunction · 0.85
newFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected