(row_f_pixels: &'f mut [MaybeUninit<f_pixel>], row_pixels: &[RGBA], gamma_lut: &[f32; 256])
| 136 | } |
| 137 | |
| 138 | fn convert_row_to_f<'f>(row_f_pixels: &'f mut [MaybeUninit<f_pixel>], row_pixels: &[RGBA], gamma_lut: &[f32; 256]) -> &'f mut [f_pixel] { |
| 139 | assert_eq!(row_f_pixels.len(), row_pixels.len()); |
| 140 | for (dst, src) in row_f_pixels.iter_mut().zip(row_pixels) { |
| 141 | dst.write(f_pixel::from_rgba(gamma_lut, *src)); |
| 142 | } |
| 143 | // Safe, just initialized |
| 144 | unsafe { slice_assume_init_mut(row_f_pixels) } |
| 145 | } |
| 146 | |
| 147 | #[must_use] |
| 148 | fn should_use_low_memory(&self) -> bool { |
nothing calls this directly
no test coverage detected