forge
Explore
Log in

Don't you dare go Hollow

R2 report -- merge resolutions, the chroma residue was loop restoration, gate un-ignored

Browse files at this commit

27fb0f694cefe8f7d6c8b551ab429c436db16b2fAhmet Kaan GümüşParent: 827ee1d
  • docs
    • r2 report -- merge resolutions, the chroma residue was loop restoration, gate un-ignored
Show full message
docs(cdef): r2 report -- merge resolutions, the chroma residue was loop restoration, gate un-ignored
lanes/cdef-r2.report.mdadded+80 -0
@@ -0,0 +1,80 @@
1+# lane-cdef r2 report -- merge, the 68x192 chroma residue CLOSED, gate un-ignored
2+
3+Branch `lane-cdef`, base main `727f29a`. Commits this round:
4+* `32a467a` Merge main 727f29a (lane-r14, lane-kf1200, lane-reelckf) -- no conflicts.
5+* `0e6c5c9` Merge lane-golomb 173b793 -- 2 conflicts in `decode.rs`, both resolved (below).
6+* `26b971a` straddling-band gate un-ignored + `CDEF_STRADDLE_UNITS` counter + multi-tile arms.
7+
8+`cdf.rs` is byte-identical across `main`, `lane-golomb` and this tree
9+(`sha256 655f9a45ccedf7e37adab8b46703cf7ec4c9cc395978a1e6179157741def5844`, all four).
10+
11+## r1's leftover suite unit
12+`cdef-suite-1788330834.service` was still RUNNING at the start of this round; it had reached
13+**184 tests ok, 0 FAILED / 0 panics** with no `test result` line yet. Stopped (its target dir is
14+this lane's) and superseded by the r2 run below.
15+
16+## Merge conflicts (decode.rs), resolved
17+1. `dump_stage`'s per-decode-order-frame index: both lanes added one. Kept this lane's shared
18+ `dump_stage_idx()` helper (`dump_stage16` uses it too), dropped lane-golomb's duplicate
19+ `thread_local` counter.
20+2. The var-tx leaf loop (`decode.rs:19323`): took **main's** general `(row, col, tw, th)` rect
21+ leaves and **lane-golomb's** `fill_lf_grid_leaf_luma` writer. Routing a rect leaf through
22+ `fill_lf_grid_rect` would recompute the CHROMA tx dims from the leaf span; libaom's
23+ `get_transform_size` (`av1/common/av1_loopfilter.c:207`) applies the split override only for
24+ `plane == AOM_PLANE_Y`. Class `table-and-reader-move-together`: table (leaf tuple) from main,
25+ writer from golomb, both re-gated below.
26+
27+## Charter item (2) -- the 68x192 CHROMA residue: CLOSED, and it was NOT a chroma-CDEF defect
28+The charter's hypotheses (chroma `hsize >> xdec` fill, `damping - 1`, `uv_pri/uv_sec`, shared luma
29+`dir`, `coeff_shift`, the 8x8 skip band) were each checked against the oracle source and all six
30+were **already correct** in `apply_cdef`:
31+* right/bottom pad bound: `sample_uv` bounds at `plane.true_width/true_height`, which is
32+ `mi_cols * 4 / 2` (`decode.rs:13388`) = 36 for a 68-px axis -- exactly libaom's
33+ `hsize = nhb << mi_wide_l2` with `mi_wide_l2 = MI_SIZE_LOG2 - subsampling_x`
34+ (`cdef.c:164-167`), the fill starting there being `cdef.c:249-256`.
35+* `damping += coeff_shift - (pli != AOM_PLANE_Y)` (`cdef_block.c:337`) == our `damping_uv`.
36+* chroma `t = pri_strength`, NOT `adjust_strength` (`cdef_block.c:387`) == ours.
37+* `pri_strength ? dir[by][bx] : 0` per plane (`cdef_block.c:392`) == ours; the `conv422/conv440`
38+ direction remap is `if (pli == 1 && xdec != ydec)` (`cdef_block.c:361-369`), i.e. never in 4:2:0.
39+* `level`/`sec_strength` from `cdef_uv_strengths[mbmi_cdef_strength]` with the `== 3` bump
40+ (`cdef.c:325-333`) == ours; block size `8 >> xdec` by `8 >> ydec` == our 4x4.
41+
42+The residue was the **loop restoration plane size**, fixed on lane-golomb r8 and merged this
43+round: LR is the one post-decode filter sized by the CROP (`av1_get_upsampled_plane_size`,
44+`restoration.c:47`, asserted against the crop at `restoration.c:1106`), while deblock and CDEF walk
45+the mi grid. With both branches' fixes in one tree all four straddling arms are exact on Y, U and V.
46+
47+EVIDENCE: /home/user/.cache/cdef-strad-r2.log | merged tree, `cargo test -p ec-av1 --lib -- --ignored --nocapture a_frame_edge_straddling_band` (192x68 + 68x192, 5 frames, 8+10-bit, cq 35..61) | 14 pixel-exact attempts (Y, U and V, every shown frame), 0 differing pixels, 18 named refusals, test result ok 1 passed / 0 failed
48+
49+## Charter item (3) -- `--tile-columns=1` arms: added, and VACUOUS today
50+Each straddling arm gained a `--tile-columns=1` twin (8 arms x 8 cq = 64 attempts). All 32
51+multi-tile attempts refuse **by name**; census (in the test's doc comment):
52+10x "an inter SB-level AB partition", 6x "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs
53+rectangular residual coding", 6x "an 8x8 intra leaf in an inter frame whose tx_depth splits it into
54+4x4 transform units", 5x "an inter partition below 8x8", 3x "an inter 16x16-level AB or 1:4
55+partition", 1x "a split intra strip whose transform unit is 32x64", 1x "an intra-coded 1:4 rect
56+strip on the inter block path". Class `counter-from-refused-stream`: that half of the gate compares
57+nothing yet and every assert is carried by the single-tile arms. Arms kept so the coverage appears
58+the day those refusals lift.
59+
60+## Gate
61+`stream.rs::a_frame_edge_straddling_band_decodes_pixel_exact` -- **un-ignored** (was
62+`#[ignore] "open r9 defect"`). Hard-asserts the new `decode::cdef_straddle_units()` grew: a FILTERED
63+8x8 CDEF unit whose extent crosses the cropped frame edge is the only shape for which "clamp at the
64+crop" and "pad with CDEF_VERY_LARGE past the mi-rounded extent" differ, so a zero delta would make
65+these arms vacuous for this defect.
66+
67+EVIDENCE: /home/user/.cache/cdef-strad2-r2.log | `cargo test -p ec-av1 --lib -- --nocapture a_frame_edge_straddling_band` on the final tree | 14 pixel-exact attempts, **337 straddling CDEF units**, 50 named refusals, ok 1 passed / 0 failed in 33.99s
68+
69+Sibling gate (same tables/paths -- `apply_cdef`, the skip band, `fill_skip_grid`):
70+EVIDENCE: /home/user/.cache/cdef-sib-r2.log | `cargo test -p ec-av1 --lib -- --nocapture cdef_and_sub16` | a_real_aomenc_stream_with_cdef_and_sub16_inter_leaves_decodes_pixel_exact ok, 1 passed / 0 failed
71+
72+## Refusals
73+None lifted this round, so `refusal_inventory.rs` is unchanged. `gate_coverage.rs` needs no entry
74+either: its derivation deliberately excludes `--tile-columns` (see its header comment) and this
75+round adds no `--enable-*` flag.
76+
77+## Residue
78+* deferred(the 7 refusals in the census above) -- the multi-tile half of the straddling gate.
79+* accepted -- the gate compares SHOWN frames (`ffmpeg_decode_sequence`); no-show alt-ref frames are
80+ not compared here, same as every sibling gate (class `gate-blind-to-hidden-frames`).