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(
4319 let mut row = mi_row;4319 let mut row = mi_row;
4320 while row < end_row && out.len() < max_neighbors {4320 while row < end_row && out.len() < max_neighbors {
4321 let cell = grid.get(row, mi_col - 1);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 if let Some(info) = cell {4325 if let Some(info) = cell {
4324 if info.is_inter {4326 if info.is_inter {
4325 out.push((row - mi_row, step.min(end_row - row), *info));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 // block under a 32x16 strip, and suppressed the -5 extended4089 // block under a 32x16 strip, and suppressed the -5 extended
4090 // row scan.4090 // row scan.
4091 "rect-flake-2",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 .iter()4097 .iter()
4094 .map(|n| format!("{fixtures}/{n}.obu"))4098 .map(|n| format!("{fixtures}/{n}.obu"))