Overlappable_left steps by the neighbour's height
Browse files at this commitf1a6012e43dbd3f7433eb2b54f063a4a17587622Parent: d6cb150- fix
- overlappable_left steps by the neighbour's height
2 changed files +7 -1
crates/ec-av1/src/decode.rsmodified+3 -1
| @@ -4319,7 +4319,9 @@ fn overlappable_left( | ||
| 4319 | 4319 | let mut row = mi_row; |
| 4320 | 4320 | while row < end_row && out.len() < max_neighbors { |
| 4321 | 4321 | let cell = grid.get(row, mi_col - 1); |
| 4322 | - let step = cell.map_or(1, |c| c.size).max(1); | |
| 4322 | + // Vertical walk steps by the neighbour's HEIGHT -- a 32x16 strip's | |
| 4323 | + // width (8) would swallow the strip below it. | |
| 4324 | + let step = cell.map_or(1, |c| c.size_h).max(1); | |
| 4323 | 4325 | if let Some(info) = cell { |
| 4324 | 4326 | if info.is_inter { |
| 4325 | 4327 | out.push((row - mi_row, step.min(end_row - row), *info)); |
crates/ec-av1/src/stream.rsmodified+4 -0
| @@ -4089,6 +4089,10 @@ mod tests { | ||
| 4089 | 4089 | // block under a 32x16 strip, and suppressed the -5 extended |
| 4090 | 4090 | // row scan. |
| 4091 | 4091 | "rect-flake-2", |
| 4092 | + // overlappable_left stepped the vertical walk by the | |
| 4093 | + // neighbour's WIDTH: a 32x16 left strip swallowed the strip | |
| 4094 | + // below it, blending the wrong OBMC prediction there. | |
| 4095 | + "rect-flake-3", | |
| 4092 | 4096 | ] |
| 4093 | 4097 | .iter() |
| 4094 | 4098 | .map(|n| format!("{fixtures}/{n}.obu")) |