wip(av1): warp r5d -- HORZ_B strip mvstack query bw4=8,bh4=4 (spec-correct; frame 13 unchanged)
Browse files at this commit7efc3c5a29246af1e3ecfb3bfa1463fb3cfa9a4fParent: f89ec611 changed file +7 -1
crates/ec-av1/src/decode.rsmodified+7 -1
| @@ -5529,6 +5529,12 @@ fn decode_inter_block( | |||
| 5529 | 5529 | ||
| 5530 | let (mi_row, mi_col) = (r * SUB_MI as usize, c * SUB_MI as usize); | 5530 | let (mi_row, mi_col) = (r * SUB_MI as usize, c * SUB_MI as usize); |
| 5531 | let bw4 = side / 4; | 5531 | 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 }; | ||
| 5532 | // spec 7.10.2.8: only reached when the frame header set | 5538 | // spec 7.10.2.8: only reached when the frame header set |
| 5533 | // `use_ref_frame_mvs` (`tpl_frame` is `Some` then, `None` | 5539 | // `use_ref_frame_mvs` (`tpl_frame` is `Some` then, `None` |
| 5534 | // otherwise) -- `cur_offset_0` is this query block's own resolved | 5540 | // otherwise) -- `cur_offset_0` is this query block's own resolved |
| @@ -5548,7 +5554,7 @@ fn decode_inter_block( | |||
| 5548 | mi_row, | 5554 | mi_row, |
| 5549 | mi_col, | 5555 | mi_col, |
| 5550 | bw4, | 5556 | bw4, |
| 5551 | - bw4, | 5557 | + bh4, |
| 5552 | ref_frame, | 5558 | ref_frame, |
| 5553 | mi_cols as usize, | 5559 | mi_cols as usize, |
| 5554 | mi_rows as usize, | 5560 | mi_rows as usize, |