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

Method posterize_mask

src/hist.rs:230–233  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

228
229 #[inline(always)]
230 const fn posterize_mask(&self) -> u32 {
231 let channel_mask = 255 << self.posterize_bits;
232 u32::from_ne_bytes([channel_mask, channel_mask, channel_mask, channel_mask])
233 }
234
235 /// optionallys et
236 fn init_posterize_bits(&mut self, posterize_bits: u8) {

Callers 2

add_colorMethod · 0.80
init_posterize_bitsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected