mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Use fixed-size row chunks in the predictor overhead fixture
This commit is contained in:
1 parent
8088ba0bb8
commit
925e79ebbc
1 file changed
+1
-1
@@ -445,7 +445,7 @@ mod row_prediction {
|
||||
space: ImageColorspace::Rgb,
|
||||
};
|
||||
let mut up = Vec::new();
|
||||
for (y, row) in overhead.color.chunks_exact(12).enumerate() {
|
||||
for (y, row) in overhead.color.as_chunks::<12>().0.iter().enumerate() {
|
||||
up.push(2);
|
||||
for (x, byte) in row.iter().enumerate() {
|
||||
let previous = if y == 0 { 0 } else { overhead.color[(y - 1) * 12 + x] };
|
||||
|
||||
Reference in new issue
Block a user