untested luma8

This commit is contained in:
Henry
2023-01-04 20:24:00 -06:00
parent e0ab98d9a5
commit a41953b928
2 changed files with 26 additions and 6 deletions

View File

@@ -204,7 +204,7 @@ impl LuminanceSource for BufferedImageLuminanceSource {
.collect::<Vec<&u8>>(); // get all the rows we want to look at
let data = unmanaged
.chunks(self.image.width() as usize)
.chunks_exact(self.image.width() as usize)
.into_iter() // Get rows
.flat_map(|f| {
f.iter()