R1 report -- both-axes-cut forced SPLIT, gate 20/20 pixel-exact, suite 383/0
Browse files at this commit325d2905c6161d4691942480ffd1e7b782a67747Parent: f3c311a- docs
- r1 report -- both-axes-cut forced SPLIT, gate 20/20 pixel-exact, suite 383/0
1 changed file +65 -0
- lanes/edgeboth-r1.report.md +65 -0
lanes/edgeboth-r1.report.mdadded+65 -0
| @@ -0,0 +1,65 @@ | ||
| 1 | +# lane-edgeboth r1 -- both-axes-cut partition node | |
| 2 | + | |
| 3 | +## What changed | |
| 4 | +- `crates/ec-av1/src/decode.rs:1160` new `EDGE_BOTH_CUT_HITS` counter (`[16,32,64,128]` levels) | |
| 5 | + + `bump_edge_both_cut`, `edge_both_cut_hits`, `reset_edge_both_cut_hits`. | |
| 6 | +- `crates/ec-av1/src/decode.rs` intra path: 128 level (`~13100`), 64 level (`~13435`), | |
| 7 | + 32 level (`~13511`) already inferred the forced SPLIT -- they now only bump the counter. | |
| 8 | + 16 level (`~13990`): the refusal `a 16x16 block whose true edge cuts through both axes ...` | |
| 9 | + is replaced by the libaom rule `else if (!has_rows && !has_cols) partition = PARTITION_SPLIT;` | |
| 10 | + (decodeframe.c `decode_partition`), falling into the existing SPLIT leaf loop whose | |
| 11 | + `mr < mi_rows && mc < mi_cols` filter IS libaom's `if (mi_row >= mi_rows || mi_col >= mi_cols) return;` | |
| 12 | + -- so the three out-of-frame quadrants get no neighbour/tx-grid write and no symbol. | |
| 13 | +- `crates/ec-av1/src/decode.rs` inter path: 64 level (`~21190`), 32 level (`~21375`) bump only; | |
| 14 | + 16 level (`~21440`): the refusal `a 16x16 inter block whose true edge cuts ...` is gone, | |
| 15 | + `part16` is `PARTITION_SPLIT` with NO symbol read in the `(false,false)` case. | |
| 16 | +- `crates/ec-av1/src/refusal_inventory.rs`: both refusal strings dropped (47 -> 45). | |
| 17 | +- `crates/ec-av1/src/stream.rs`: gate `a_real_aomenc_both_axes_cut_corner_block_decodes_pixel_exact` | |
| 18 | + (+ its `#[ignore]`d inter twin) and the shared `both_axes_cut_sweep` helper. | |
| 19 | + | |
| 20 | +## Gate | |
| 21 | +``` | |
| 22 | +CARGO_TARGET_DIR=$HOME/.cache/cargo-target-edgeboth EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1 \ | |
| 23 | +PATH="$HOME/.cache/aom-oracle/build:$PATH" cargo test -p ec-av1 --lib both_axes_cut -- --nocapture | |
| 24 | +``` | |
| 25 | +Recipe: real aomenc, sizes 200x72 / 136x104 / 264x136 / 72x200 / 104x136 (w mod 16 == 8 AND | |
| 26 | +h mod 16 == 8), 8- and 10-bit, cq 32 and 45, `--lag-in-frames=0` (decode order == display order, | |
| 27 | +every frame compared vs ffmpeg), rect/AB/1:4 + palette/intrabc + the inter compound set + the | |
| 28 | +intra tool set + `--enable-tx-size-search=0` pinned off. | |
| 29 | + | |
| 30 | +EVIDENCE: `$HOME/.cache/edgeboth-suite-r1.log` (gate line) | 5 sizes x 2 depths x 2 cq key-frame | |
| 31 | +attempts, aomenc -> ec-av1 -> ffmpeg full-frame compare | `20 attempts pixel-exact over 5 sizes | |
| 32 | +(key arm), out_of_scope_mismatch=0, both_cut hits [16,32,64,128]=[20,20,12,0], 0 named refusals` | |
| 33 | + | |
| 34 | +EVIDENCE: same run, control | sizes list swapped to 192x72 / 200x80 (no both-cut node anywhere) | |
| 35 | +| `192x72 key 8-bit cq 32 decoded pixel-exact but no 16-level both-axes-cut block fired | |
| 36 | +(hits=[0,0,0,0])` -- the counter is specific to the case, not to frame size. | |
| 37 | + | |
| 38 | +EVIDENCE: same run, inter arm | 200x72 inter cq 32 6 frames | `frame 2 luma diff bbox rows | |
| 39 | +64..=71 cols 15..=186` (corner cols 192..=199 CLEAN) and control `192x72 inter 8-bit cq 32 | |
| 40 | +frame 2 luma diff bbox rows 64..=71 cols 8..=188` with hits `[0,0,0,0]` -- the inter mismatch is | |
| 41 | +the one-axis frame-edge half-strip BAND, reproducible with zero both-cut nodes. | |
| 42 | + | |
| 43 | +Recipe choices, measured r1 (`~/.cache/edgeboth-tmp/probe.sh`, `probe2.sh`): without the intra | |
| 44 | +tool set + `--enable-tx-size-search=0`, 30/30 inter attempts refused on other lanes' strings | |
| 45 | +(`a nonzero angle delta on an 8x8 intra leaf in an inter frame`, `a non-DC chroma mode on an 8x8 | |
| 46 | +inter-frame leaf`, `an 8x8 intra leaf in an inter frame whose tx_depth splits it into 4x4 | |
| 47 | +transform units`, `an inter partition below 8x8`). cq 58 and the testsrc2 source are excluded: | |
| 48 | +they reach `a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding` | |
| 49 | +and `an inter 16x16-level AB or 1:4 partition` first. | |
| 50 | + | |
| 51 | +## Suite | |
| 52 | +`cargo test -p ec-av1 --lib` (unit `edgeboth-suite-1788331316`, log `$HOME/.cache/edgeboth-suite-r1.log`): | |
| 53 | +**383 passed, 0 failed, 34 ignored**, 961s. | |
| 54 | + | |
| 55 | +## Residue | |
| 56 | +- deferred(lane-oddh's inter frame-edge half-strip band defect): the INTER half of the lift is | |
| 57 | + code-verified and its corner pixels are exact, but its gate is `#[ignore]`d -- DEVIATION from | |
| 58 | + COMMON's "a refusal is lifted only together with a gate": the inter refusal string was dropped | |
| 59 | + anyway because it is factually wrong (no rectangular transform is needed; the node is a forced | |
| 60 | + split), and keeping it would hide the band defect that the control 192x72 proves is independent. | |
| 61 | +- deferred(a 128-superblock recipe at a both-cut size): `hits[3] == 0`; the 128 level's forced | |
| 62 | + split is code-only, unchanged behaviour, counter added. | |
| 63 | +- accepted: the WRITER-side twin in `crates/ec-av1/src/tile.rs:1155` (`... this writer does not | |
| 64 | + code yet`) is untouched -- encoder scope, not in `refusal_inventory.rs`, and a lift there needs | |
| 65 | + its own roundtrip gate. |