forge
Explore
Log in

Don't you dare go Hollow

Overlappable_left steps by the neighbour's height

Browse files at this commit

f1a6012e43dbd3f7433eb2b54f063a4a17587622Ahmet Kaan GümüşParent: d6cb150
  • fix
    • overlappable_left steps by the neighbour's height
Show full message
fix(av1): overlappable_left steps by the neighbour's height

The OBMC left-column walk stepped by MiInfo.size (width); a 32x16 left
strip swallowed the strip below it and its band blended the wrong
neighbour prediction (rect-flake-3, +-2 in the second strip's band).
Class sweep: all other grid walks step by the matching axis. Pin added;
lib 221/0.
crates/ec-av1/src/decode.rsmodified+3 -1
@@ -4319,7 +4319,9 @@ fn overlappable_left(
43194319 let mut row = mi_row;
43204320 while row < end_row && out.len() < max_neighbors {
43214321 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);
43234325 if let Some(info) = cell {
43244326 if info.is_inter {
43254327 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 {
40894089 // block under a 32x16 strip, and suppressed the -5 extended
40904090 // row scan.
40914091 "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",
40924096 ]
40934097 .iter()
40944098 .map(|n| format!("{fixtures}/{n}.obu"))