(attr: &Attributes)
| 88 | #[inline] |
| 89 | #[must_use] |
| 90 | pub fn new(attr: &Attributes) -> Self { |
| 91 | Self { |
| 92 | posterize_bits: attr.posterize_bits(), |
| 93 | max_histogram_entries: attr.max_histogram_entries, |
| 94 | fixed_colors: HashSet::with_hasher(U32Hasher(0)), |
| 95 | hashmap: HashMap::with_hasher(U32Hasher(0)), |
| 96 | gamma: None, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /// "Learns" colors from the image, which will be later used to generate the palette. |
| 101 | /// |
nothing calls this directly
no test coverage detected