(&mut self, image: &mut Image<'_>, output_buf: &mut [MaybeUninit<PalIndexRemap>])
| 262 | /// because remapping refines the palette. |
| 263 | #[inline] |
| 264 | pub fn remap_into(&mut self, image: &mut Image<'_>, output_buf: &mut [MaybeUninit<PalIndexRemap>]) -> Result<(), Error> { |
| 265 | let required_size = (image.width()) * (image.height()); |
| 266 | let output_buf = output_buf.get_mut(0..required_size).ok_or(BufferTooSmall)?; |
| 267 | |
| 268 | let rows = RowBitmapMut::new_contiguous(output_buf, image.width()); |
| 269 | self.write_remapped_image_rows_internal(image, rows) |
| 270 | } |
| 271 | |
| 272 | /// The final palette, copied. |
| 273 | /// |
no test coverage detected