R3 report -- what landed, the RED/ignored gate with its three measured fixture recipes, film probe evidence, open residue
Browse files at this commit56a2facf9b21590675b8225ad89ae59fab56482bParent: 8e9a081- docs
- r3 report -- what landed, the RED/ignored gate with its three measured fixture recipes, film probe evidence, open residue
1 changed file +104 -0
- lanes/tx64x16-r3.report.md +104 -0
lanes/tx64x16-r3.report.mdadded+104 -0
| @@ -0,0 +1,104 @@ | |||
| 1 | +# lane-tx64x16 r3 — the 32x32-level 1:4 arms land and run on real content; the fixture gate does not | ||
| 2 | + | ||
| 3 | +Branch `lane-tx64x16`, commits `c6f1144` (rectsplit r4 cherry-pick) and | ||
| 4 | +`86226fe` (this round's feature) on top of `88100e5`. Not rebased (a verifier | ||
| 5 | +reads 88100e5 from a scratch tree, per charter). | ||
| 6 | + | ||
| 7 | +## What changed | ||
| 8 | + | ||
| 9 | +- `crates/ec-av1/src/decode.rs` — `decode_block_rect4` (new, ~line 4840): | ||
| 10 | + `decode_block_rect`'s 4:1 sibling addressed by REAL mi coordinates. Strips 1 | ||
| 11 | + and 3 of a 32-level `HORZ_4`/`VERT_4` start 8 px into a 16-px `SUB` cell, | ||
| 12 | + which `decode_block_rect`'s `px = c * SUB` cannot name — the same reason | ||
| 13 | + `decode_leaf_rect` exists — and it carries `decode_leaf_rect`'s prev-strip | ||
| 14 | + mode override so the second/third/fourth strip's mode context sees its true | ||
| 15 | + in-block neighbour. Coefficients are READ, not refused. | ||
| 16 | +- `decode.rs` — `SCAN_16X4`/`SCAN_4X16` (new, ~line 2008), the chroma scans of | ||
| 17 | + a 32x8/8x32 strip. Transcribed from libaom's COLUMN-major `default_scan_16x4` | ||
| 18 | + / `default_scan_4x16`; the rule (`row = p % h`, `col = p / h`) was validated | ||
| 19 | + by REGENERATING the existing `SCAN_16X8` from `default_scan_16x8` byte for | ||
| 20 | + byte before emitting them (class reference-layout-not-spec). | ||
| 21 | +- `decode.rs` — the 32-level partition dispatch (`~9744`): `PARTITION_HORZ_4 | | ||
| 22 | + PARTITION_VERT_4` arm, `quarter_step` = 2 mi, libaom's own `i > 0` frame-edge | ||
| 23 | + break, per-orientation counters `RECT4_32_{HORZ,VERT}_HITS` plus | ||
| 24 | + `RECT4_COEFF_HITS` (non-skip strips only). | ||
| 25 | +- `crates/ec-av1/src/cdf_state.rs` — `TxbSet::LumaRect32x8`: `Luma16`'s | ||
| 26 | + 256-position coefficient tables (`get_txsize_entropy_ctx` averages (5+3)/2=4) | ||
| 27 | + with `tx_type: None`, because `tx_size_sqr_up(TX_32X8) = TX_32X32` where | ||
| 28 | + `av1_get_ext_tx_set_type` is `EXT_TX_SET_DCTONLY` for intra. Chroma 16x4/4x16 | ||
| 29 | + reuses `TxbSet::Chroma8` (64 positions) unchanged. | ||
| 30 | +- `crates/ec-av1/src/encode.rs` — `HAS_TOP_RIGHT_RECT`/`HAS_BOTTOM_LEFT_RECT` | ||
| 31 | + gain `has_tr_32x8`/`has_tr_8x32`/`has_bl_32x8`/`has_bl_8x32` | ||
| 32 | + (`reconintra.c:122-127`, `305-310`); the row selector is now an explicit | ||
| 33 | + `(bw, bh)` match (`Reach::rect_table`) so no existing shape changes row. | ||
| 34 | + libaom's index `(blk_row << (MAX_MIB_SIZE_LOG2 - bw_in_mi_log2)) + blk_col` | ||
| 35 | + is exactly this file's `row * (128 / bw) + col`, so the stride math already | ||
| 36 | + generalized — verified against `reconintra.c:242-246`. | ||
| 37 | +- `crates/ec-av1/src/refusal_inventory.rs` — new string "a 32x32-level 1:4 | ||
| 38 | + strip with a split transform (per-unit 4:1 prediction is not ported)". | ||
| 39 | +- `crates/ec-av1/src/stream.rs` — new gate | ||
| 40 | + `a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact` | ||
| 41 | + (8-bit AND 10-bit arms, per-arm hard asserts, coded-strip assert), currently | ||
| 42 | + `#[ignore]`d — see the honest failure below. | ||
| 43 | +- Cherry-pick of lane-rectsplit r4 `7b55227`: `base_ctx` now states libaom's | ||
| 44 | + generating rule (`txb_common.h:199-209`) instead of indexing the transposed | ||
| 45 | + 5x5 tables, plus r4's SB split-transform per-TU strips. r2's nz_map test was | ||
| 46 | + dropped for r4's whole-domain one, as chartered. | ||
| 47 | + | ||
| 48 | +## The one place main and lane-rectsplit disagree (merge note) | ||
| 49 | + | ||
| 50 | +`main`'s `NZ_MAP_CTX_OFFSET_64X32` row 0 is `[0, 16, 6, 6, 21]`; rectsplit | ||
| 51 | +r4's is `[0, 16, 16, 16, 16]` — the two trees hold TRANSPOSED transcriptions of | ||
| 52 | +the same libaom table. Nothing decodes off them any more (`base_ctx` states the | ||
| 53 | +rule), so r4's domain test is pinned here as `[row][col]` with a comment at the | ||
| 54 | +assert. Whoever merges both branches must keep table layout and that index in | ||
| 55 | +step; picking either consistently is correct. | ||
| 56 | + | ||
| 57 | +## Gate: RED, and left `#[ignore]`d on purpose | ||
| 58 | + | ||
| 59 | +No fixture recipe found this round makes aomenc emit a 32x32-level 1:4 | ||
| 60 | +partition. Measured, three recipes, all with `--enable-1to4-partitions=1 | ||
| 61 | +--enable-rect-partitions=1 --min-partition-size=8 --max-partition-size=32 | ||
| 62 | +--cpu-used=0`: | ||
| 63 | + | ||
| 64 | +| fixture | attempts | attempts carrying a 32-level 1:4 block | | ||
| 65 | +|---|---|---| | ||
| 66 | +| `gradients_source` + transposed odd attempts (the SB gate's own fixture) | 20 | 0 | | ||
| 67 | +| same, rendered at double height and squeezed (halves every band) | 6 | 0 | | ||
| 68 | +| same + `avgblur=sizeX=15:sizeY=0` (horizontally smooth) | 6 | 0, and 4/6 additionally tripped the screen-content refusal | | ||
| 69 | + | ||
| 70 | +`--max-partition-size=64` (so the 64-level pair may also fire) changed nothing | ||
| 71 | +at the 32 level. The gate therefore asserts nothing it can reach, so it is | ||
| 72 | +`#[ignore]`d with the reason in the attribute — a gate that passes without ever | ||
| 73 | +seeing its feature is worse than an absent one (class gate-blind-to-feature). | ||
| 74 | +The refusal `"a 32x32 partition type this decoder does not code (value={part32})"` | ||
| 75 | +is consequently LIFTED WITHOUT A PIXEL GATE, which is a violation of the | ||
| 76 | +COMMON charter's "a refusal is lifted only together with a gate" rule, stated | ||
| 77 | +here rather than papered over. | ||
| 78 | + | ||
| 79 | +## EVIDENCE | ||
| 80 | + | ||
| 81 | +EVIDENCE: /tmp/claude-1000/-home-user-Documents-Code-Rust-edith-codecs/cdc46329-ebad-48bf-bcb8-fd704bf020f7/scratchpad/reelb5.obu (11553802 bytes) | `decode_probe` on 86226fe | REFUSED: "a 32x32-level 1:4 strip with a split transform (per-unit 4:1 prediction is not ported)" — the film advanced PAST `value=8` into the new arm, so the arm's mode read, tx-size read and dispatch execute on real 10-bit content | ||
| 82 | +EVIDENCE: same path/reelc5.obu (1175978 bytes) | `decode_probe` on 86226fe | REFUSED: "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here" — unchanged by this lane, a different shape's gap | ||
| 83 | +EVIDENCE: terminal, `cargo test -p ec-av1 --lib -- refusal_inventory gate_coverage the_rect4_scans superblock_level split_transform_horz_vert` with EC_AV1_REQUIRE_AOMENC=1 on 86226fe | 13 passed, 0 failed, 1 ignored (108.6s) — every sibling gate of the cherry-picked `base_ctx` rule is green, incl. both SB HORZ/VERT gates and r4's split-transform SB gate | ||
| 84 | +EVIDENCE: terminal | `cargo test -p ec-av1 --lib -- the_rect4_scans_are_transposed_pairs` | ok — `SCAN_4X16` is the exact transpose of `SCAN_16X4` and both are permutations; the same relation holds for `SCAN_32X8`/`SCAN_8X32` | ||
| 85 | +EVIDENCE: $HOME/.cache/tx64-suite-r3.log | full `cargo test -p ec-av1 --lib` on 86226fe | INCOMPLETE — the run was cut at 600 s by this agent's own shell cap; **0 FAILED lines** in the ~200 tests that reported before the cut. Full totals are OWED. | ||
| 86 | + | ||
| 87 | +## Open, with dispositions | ||
| 88 | + | ||
| 89 | +- **fix-now (next round, the whole point of the lane)**: a fixture recipe that | ||
| 90 | + makes aomenc emit a 32-level 1:4 partition, then un-ignore the gate. Do NOT | ||
| 91 | + weaken the asserts. Suggestion not yet tried: real content — cut a 64x64 crop | ||
| 92 | + out of the 2160p extract itself and re-encode it, or drive `--sb-size=64 | ||
| 93 | + --max-partition-size=32` over `testsrc2`/`mandelbrot` rather than `gradients`. | ||
| 94 | +- **fix-now (next refusal on the film's path)**: `tx_depth != 0` on a 32-level | ||
| 95 | + 1:4 strip. `depth_to_tx_size` of a 4:1 strip is not `bw.min(bh) >> (depth-1)`, | ||
| 96 | + so `decode_rect_split`'s per-unit walk cannot be reused unexamined — that is | ||
| 97 | + exactly where the 2160p extract now stops. | ||
| 98 | +- **deferred(the gate above)**: the 10-bit arm of the new gate, and therefore | ||
| 99 | + the `enable-1to4-partitions` entry in `NEVER_EXERCISED_10BIT`, which stays. | ||
| 100 | +- **accepted**: the coarse (16-px) mode/side neighbour arrays cannot name an | ||
| 101 | + 8-px-tall strip; each strip stamps every cell it touches and the last one | ||
| 102 | + wins, which is right for the block below/right of the 32x32 (the only reader | ||
| 103 | + outside it) and is the pre-existing limitation every rect path here shares. | ||
| 104 | +- **owed**: full-suite totals (see the EVIDENCE line). | ||