(&mut self)
| 202 | } |
| 203 | |
| 204 | pub(crate) fn int_palette(&mut self) -> &Palette { |
| 205 | if let Some(remap) = self.remapped.as_ref() { |
| 206 | debug_assert!(remap.int_palette.count > 0); |
| 207 | &remap.int_palette |
| 208 | } else { |
| 209 | if self.int_palette.count == 0 { |
| 210 | self.palette.init_int_palette(&mut self.int_palette, self.gamma, self.min_posterization_output); |
| 211 | } |
| 212 | &self.int_palette |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /// Callback called at various point of processing, which gets percentage of progress done, |
| 217 | /// and can return `ControlFlow::Break` to abort further processing |
no test coverage detected