Lane-recttx r1 report (all 14 rect sizes pinned
Browse files at this commit494492de1ccee44960cfdeca34c8242df6c7daffParent: 1a9fc2c- docs
- lane-recttx r1 report (all 14 rect sizes pinned
- decode.rs wiring still owed)
1 changed file +56 -0
- lanes/recttx-r1.report.md +56 -0
lanes/recttx-r1.report.mdadded+56 -0
| @@ -0,0 +1,56 @@ | ||
| 1 | +# lane-recttx r1 report | |
| 2 | + | |
| 3 | +VERDICT: PASS — all 14 rectangular inverse-transform sizes pinned against real | |
| 4 | +libaom kernels; square path proven bit-identical; lib suite 226 passed / 0 | |
| 5 | +failed (224 pre-lane + the 2 new tests). | |
| 6 | + | |
| 7 | +## What landed | |
| 8 | +`transform.rs`'s inverse path is now `(w, h)`: | |
| 9 | +`inverse_transform_2d_typed_wh` and `dequant_and_inverse_typed_wh` do the work, | |
| 10 | +and the old `side`-taking entry points are thin wrappers, so no existing call | |
| 11 | +site moved. `quant.rs` gained `dq_denom_area` / `dequant_coeff_wh` / | |
| 12 | +`dequant_wh` the same way. | |
| 13 | + | |
| 14 | +Two values carry the rectangular behaviour, both cited in the code: | |
| 15 | +- the rect scale `round2(c * 2896, 12)`, applied to each row's input **only** | |
| 16 | + when `|log2w - log2h| == 1` (`av1_inv_txfm2d.c:272-276`); | |
| 17 | +- `row_shift_wh(w, h)`, all 19 sizes from `av1_inv_txfm_shift_ls` | |
| 18 | + (`av1_inv_txfm2d.c:132-158`). The column shift is 4 everywhere, which is what | |
| 19 | + the code already did. | |
| 20 | + | |
| 21 | +## Per-size status — all 14 pinned, all passing | |
| 22 | +4x8, 8x4, 8x16, 16x8, 16x32, 32x16, 32x64, 64x32, 4x16, 16x4, 8x32, 32x8, | |
| 23 | +16x64, 64x16. | |
| 24 | + | |
| 25 | +Checksums live in `lanes/recttx_dump.expected.txt` and are duplicated as | |
| 26 | +literal values in `transform.rs::tests::rect_sizes_pinned_against_libaom`. The | |
| 27 | +probe coefficient block is asymmetric by construction (DC plus a | |
| 28 | +`(i+1)*24 - (j+1)*17` corner), because a symmetric probe cannot see an axis | |
| 29 | +swap — the failure this lane was most likely to ship. | |
| 30 | + | |
| 31 | +`square_wrapper_matches_wh_core` runs all five square sizes through both the | |
| 32 | +wrapper and the new core and requires byte-identical output, so the square | |
| 33 | +path's inertness is proven by value and not merely by a green suite. | |
| 34 | + | |
| 35 | +## Dead end, recorded so nobody repeats it | |
| 36 | +The `av1_inv_txfm2d_add_WxH_c` facades segfault when called standalone from a | |
| 37 | +bare harness linked against the oracle's `libaom.a`, even with the real | |
| 38 | +`config/av1_rtcd.h` declaration — a null function-pointer call inside | |
| 39 | +`inv_txfm2d_add_c`, consistent with `inv_txfm_type_to_func`'s | |
| 40 | +`assert(0); return NULL;` being compiled out under NDEBUG. Why that branch is | |
| 41 | +reached for a trivially valid `DCT_DCT` index was not found. The harness | |
| 42 | +instead calls the real `av1_idct4/8/16/32/64` 1D kernels directly and | |
| 43 | +transcribes the 2D loop, so the part libaom actually contributes — the butterfly | |
| 44 | +math — is still linked rather than reimplemented. | |
| 45 | + | |
| 46 | +## What this does NOT do | |
| 47 | +Nothing in `decode.rs` was touched. Every one of the 14 sizes is proven at the | |
| 48 | +transform-math level only. To USE this, a follow-up lane still needs: | |
| 49 | +- rectangular scan order (only square zig-zag/diagonal tables are wired today); | |
| 50 | +- rectangular eob context (the `get_eob_ctx` family is keyed on a square tx size | |
| 51 | + class); | |
| 52 | +- `max_txsize_rect_lookup` threading through partition and tx-size selection. | |
| 53 | + | |
| 54 | +Those three are what stands between this primitive and lifting | |
| 55 | +`decode.rs`'s refusal of inter partitions below 16x16, and the intra HORZ/VERT | |
| 56 | +strips' skip-only restriction. |