forge
Explore
Log in

Don't you dare go Hollow

wip(av1): warp r5d -- HORZ_B strip mvstack query bw4=8,bh4=4 (spec-correct; frame 13 unchanged)

Browse files at this commit

7efc3c5a29246af1e3ecfb3bfa1463fb3cfa9a4fAhmet Kaan GümüşParent: f89ec61
crates/ec-av1/src/decode.rsmodified+7 -1
@@ -5529,6 +5529,12 @@ fn decode_inter_block(
55295529
55305530 let (mi_row, mi_col) = (r * SUB_MI as usize, c * SUB_MI as usize);
55315531 let bw4 = side / 4;
5532+ // lane-warp r5d: `reject_residual` marks the HORZ_B arm's top
5533+ // strip, decoded as a square 32x32 block but truly 32x16 -- the
5534+ // mv stack must be queried with the block's REAL extent (libaom
5535+ // `av1_get_mv_refs` gets bw4=8, bh4=4), else scan_col, the
5536+ // corner probes and `clamp_mv_ref` all size a 32-tall block.
5537+ let bh4 = if reject_residual { bw4 / 2 } else { bw4 };
55325538 // spec 7.10.2.8: only reached when the frame header set
55335539 // `use_ref_frame_mvs` (`tpl_frame` is `Some` then, `None`
55345540 // otherwise) -- `cur_offset_0` is this query block's own resolved
@@ -5548,7 +5554,7 @@ fn decode_inter_block(
55485554 mi_row,
55495555 mi_col,
55505556 bw4,
5551- bw4,
5557+ bh4,
55525558 ref_frame,
55535559 mi_cols as usize,
55545560 mi_rows as usize,