R1 report -- angle delta lifted and gated, tx_depth split kept refused
Browse files at this commitb95a98be4d8af9f310fb15a12a6ef2871e873f58Parent: 7136112- docs
- r1 report -- angle delta lifted and gated, tx_depth split kept refused
1 changed file +62 -0
- lanes/leaf8tx-r1.report.md +62 -0
lanes/leaf8tx-r1.report.mdadded+62 -0
| @@ -0,0 +1,62 @@ | |||
| 1 | +# lane-leaf8tx r1 — 8x8 intra leaf inside an inter frame | ||
| 2 | + | ||
| 3 | +Branch `lane-leaf8tx`, tip `63ea2a9` (on top of `aacfbdb`, the interrupted | ||
| 4 | +round's partial work committed verbatim first). | ||
| 5 | + | ||
| 6 | +## Verdict: GREEN on the angle-delta half, RED (refusal kept) on the tx_depth half | ||
| 7 | + | ||
| 8 | +### Lifted: `angle_delta_y != 0` on an 8x8 intra leaf in an inter frame | ||
| 9 | +`decode.rs:21831` — `av1_use_angle_delta(BLOCK_8X8)` is true (`bsize >= | ||
| 10 | +BLOCK_8X8`), so the leaf codes `angle_delta_y` off `angle_delta_cdf[mode - | ||
| 11 | +V_PRED]` exactly as a key-frame block does (libaom `read_intra_angle_info` | ||
| 12 | +inside `read_intra_block_mode_info`, `decodemv.c`). The delta already reached | ||
| 13 | +the directional predictor + edge filter/upsample through the `reconstruct` | ||
| 14 | +call below the refusal; only the refusal stood in front of it. Refusal string | ||
| 15 | +dropped from `refusal_inventory.rs`. | ||
| 16 | + | ||
| 17 | +Gate: `stream.rs` `a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact` | ||
| 18 | +and its `..._10bit_...` twin (real aomenc, 192x128, 6 frames, mandelbrot zoom | ||
| 19 | +with a hard cut at n>=3 + seeded noise, cq 12..40, `--enable-angle-delta=1 | ||
| 20 | +--enable-directional-intra=1 --min-partition-size=8 --max-partition-size=32 | ||
| 21 | +--kf-max-dist=9999`, `--enable-tx-size-search=0` so the still-refused sibling | ||
| 22 | +tool is not in the recipe). Per-attempt counter delta | ||
| 23 | +`decode::intra_in_inter8_angle_delta_y_hits()` (new, 8x8-only so a bigger | ||
| 24 | +block cannot satisfy it); a decode error or any pixel mismatch is a failure, | ||
| 25 | +never a SKIP. | ||
| 26 | + | ||
| 27 | +EVIDENCE: /home/user/.cache/leaf8tx-final-r1.log | `cargo test -p ec-av1 --lib -- angle_delta_8x8_intra_leaf refusal_inventory gate_coverage` | 14 passed / 0 failed; 8-bit seed 42 cq 12 = 109 nonzero-delta 8x8 intra leaves, 10-bit seed 42 = 75, all 6 decode-order frames Y/U/V exact vs ffmpeg | ||
| 28 | +EVIDENCE: /home/user/.cache/leaf8tx-arm-angle.log | `EC_LEAF8TX_CONTROL=angle` (angle on, tx-size-search off), 30 seeds x 2 bit depths | 1737 nonzero-delta leaves, ZERO pixel mismatches in 60 attempts | ||
| 29 | + | ||
| 30 | +### Kept: the 8x8 leaf's `tx_depth` split into four TX_4X4 units | ||
| 31 | +The per-TU implementation is in the tree (`decode.rs`, the `if let Some(leaves) | ||
| 32 | += intra_leaves` loop: `Reach::of_tu` per unit, raster order, per-TU | ||
| 33 | +`txbset_for(4, reduced_tx_set)` intra 7-type set, per-TU | ||
| 34 | +`neighbours.luma_skip_ctx` txb_skip ctx, `record_mi_luma` per unit, chroma one | ||
| 35 | +4x4, `saved_luma_ctx` restore + `fill_lf_grid` tx 4 in the shared tail), but it | ||
| 36 | +sits behind a re-instated refusal (`decode.rs`, right after | ||
| 37 | +`read_block_tx_size`) because it is NOT green: | ||
| 38 | + | ||
| 39 | +- 8-bit, both tools on: 150 split leaves, luma bit-exact on every frame, chroma | ||
| 40 | + off by +-1 on 8..46 samples (`/home/user/.cache/leaf8tx-gate-r1.log`). | ||
| 41 | +- `EC_LEAF8TX_CONTROL=tx` (tx-size-search on, angle off) mismatches chroma even | ||
| 42 | + on an attempt where ZERO 8x8 splits fired — i.e. `--enable-tx-size-search=1` | ||
| 43 | + also lets 16/32 intra splits and inter var-tx through, so the full-recipe | ||
| 44 | + mismatch is confounded (class [[gate-recipe-confound]]). | ||
| 45 | +- `EC_LEAF8TX_CONTROL=tx8` (adds `--max-partition-size=8`, which removes the | ||
| 46 | + 16/32 confound): the previously-mismatching 10-bit seed 64 becomes exact, and | ||
| 47 | + 10-bit seed 68 cq 19 with 5 split leaves mismatches hard — luma first diff | ||
| 48 | + frame 5 (160, 96) got 664 want 670, 1140 luma / 281 U / 285 V samples. That | ||
| 49 | + is OUR split path, and it is the r2 starting point. | ||
| 50 | +- Control (`EC_LEAF8TX_CONTROL=1`, both tools off): 60 attempts, 0 mismatches — | ||
| 51 | + the recipe itself is clean. | ||
| 52 | + | ||
| 53 | +`EC_LEAF8TX_CONTROL` (`stream.rs`, inside the gate's aomenc args) is the | ||
| 54 | +diagnostic knob for these arms; per-arm overrides are appended LAST because | ||
| 55 | +aomenc keeps the last occurrence of a repeated `--enable-*` flag. | ||
| 56 | + | ||
| 57 | +## Disposition | ||
| 58 | +- deferred: the 8x8 `tx_depth` split lift — 10-bit `tx8` seed 68 mismatches | ||
| 59 | + from the split leaf onwards — unblocked by bisecting that one stream | ||
| 60 | + (`EC_LEAF8TX_CONTROL=tx8`, 10-bit, seed 68, cq 19, frame 5, mi around | ||
| 61 | + (24, 40)) with the aomdec range ladder; the implementation is already in the | ||
| 62 | + tree behind the refusal. | ||