lane-av1422llodd report: the 242-tall 4:2:2 frame-0 divergence is 100% pre-filter, chroma-only, and "odd height" is REFUTED
Browse files at this commitc74cc0b4443e78ebfe776e1b89aa30c8a63f832bParent: 75564f71 changed file +345 -0
- lanes/av1422llodd.report.md +345 -0
lanes/av1422llodd.report.mdadded+345 -0
| @@ -0,0 +1,345 @@ | ||
| 1 | +# lane-av1422llodd — the 242-tall odd-height 4:2:2 decode-frame-0 divergence | |
| 2 | + | |
| 3 | +**Outcome: NOT root-caused and NOT fixed. The "odd height" premise is REFUTED by | |
| 4 | +measurement. The defect is localised to a 4:2:2 intra-CHROMA reconstruction | |
| 5 | +path and its exact expression is not named. No source change is proposed; the | |
| 6 | +lane tree is clean.** | |
| 7 | + | |
| 8 | +Tip: `main` = `81a21c7d`. Worktree `/home/user/.cache/wt/av1422llodd`, branch | |
| 9 | +`lane-av1422llodd`, **zero commits, zero source changes**. The only edits ever | |
| 10 | +applied to this tree were the 4:2:2 sequence-header bypass probe and one | |
| 11 | +temporary `EC_AV1_TRACE` print, both reverted (`git status` clean on the lane and | |
| 12 | +on the primary checkout). | |
| 13 | + | |
| 14 | +--- | |
| 15 | + | |
| 16 | +## 0. Headline: "242 tall" is NOT the factor | |
| 17 | + | |
| 18 | +`lanes/av1422llinter.report.md` §4b attributed this cluster to odd height. That | |
| 19 | +attribution is wrong, and §3 below is the control that kills it. | |
| 20 | + | |
| 21 | +--- | |
| 22 | + | |
| 23 | +## 1. The 27-cell census, re-measured on this tip | |
| 24 | + | |
| 25 | +Bypass patched in (`stream.rs:1803` `if false && seq.subsampling_x != seq.subsampling_y`), | |
| 26 | +release `decode_probe`, per-DECODE-frame byte comparison against | |
| 27 | +`/home/user/.cache/aom-oracle/build/aomdec` with `EC_AV1_FINAL_DUMP` (decode | |
| 28 | +order, both sides). Harness: `/home/user/.cache/lane-av1422llodd/census.sh`. | |
| 29 | + | |
| 30 | +**22/27 exact on every decode frame. 4 fail, all at decode frame 0, all chroma-only:** | |
| 31 | + | |
| 32 | +| cell | geometry | result | | |
| 33 | +|---|---|---| | |
| 34 | +| `AB_inter_warp_odd` | 322x242 8-bit | 0/43, first bad **decode frame 0** byte 110876 | | |
| 35 | +| `O_odd322x242` | 322x242 8-bit | 0/17, first bad **decode frame 0** byte 106388 | | |
| 36 | +| `Q_odd320x242` | 320x242 8-bit | 0/17, first bad **decode frame 0** byte 103156 | | |
| 37 | +| `S_odd326x242_10b` | 326x242 10-bit | 0/17, first bad **decode frame 0** byte 214112 | | |
| 38 | + | |
| 39 | +Exact (all decode frames): `422_allskip_2f`, `422_intrabc_sb128_strip{,_notxsearch}`, | |
| 40 | +`422_residual_compound_warp_{,nolr}_16f`, `422_sb128_3f`, `AA_inter_compound`, | |
| 41 | +`AD_inter_nogm`, `A_testsrc2_cpu0`, `B_testsrc2_cpu6`, `C_mandel320`, `D_bars`, | |
| 42 | +`E_noglobal`, `F_allintra`, `H_10bit_testsrc2`, `I_10bit_mandel`, `J_10bit_lr0`, | |
| 43 | +`K_sct`, `L_tiled`, `R_odd322x240`, `T_tilecols2`, `U_tilerows1`, | |
| 44 | +**`V_tile2x2_odd` (322x242!)**, `W_intrabc`, `X_intrabc_tiled`, `Y_intrabc_10b`. | |
| 45 | + | |
| 46 | +`W/X/Y` are now exact — that is `lane-av1422llinter2`'s fix, confirmed on this | |
| 47 | +tip. `V_tile2x2_odd` is **322x242 and byte-exact**, which already refutes | |
| 48 | +"242 tall" on its own. | |
| 49 | + | |
| 50 | +## 1a. Oracle-flip control | |
| 51 | + | |
| 52 | +Flipping one byte of the oracle's frame 0 adds exactly 1 differing byte, reported | |
| 53 | +at frame 0 plane Y (0,0) (`cmp.py --flip-sample 0` from the prior lane, re-run | |
| 54 | +unchanged). The comparator bites; the 48/801-sample diffs below are real. | |
| 55 | + | |
| 56 | +--- | |
| 57 | + | |
| 58 | +## 2. Stage attribution: 100% pre-filter, exonerated with evidence | |
| 59 | + | |
| 60 | +For every failing cell, our own `EC_AV1_PREFILT_DUMP` (mi-aligned, `W×248` | |
| 61 | +luma + chroma, stride-cropped by `stagecmp.py`) was compared against the | |
| 62 | +oracle's own `EC_AV1_PREFILT` at the same decode frame: | |
| 63 | + | |
| 64 | +| cell | our PREFILT vs oracle PREFILT (frame 0) | our PREFILT == our POSTDEBLOCK == our POSTCDEF | | |
| 65 | +|---|---|---| | |
| 66 | +| `O_odd322x242` | Y **byte-exact**; U 32/38962; V 16/38962 — **total 48** | **True / True** | | |
| 67 | +| `AB_inter_warp_odd` | Y **byte-exact**; U 32; V 32 — **total 64** | **True / True** | | |
| 68 | +| `Q_odd320x242` | Y **byte-exact**; U 422; V 379 — **total 801** | **True / True** | | |
| 69 | +| `S_odd326x242_10b` | Y **byte-exact**; U 17; V 32 (16-bit samples) | **True / True** | | |
| 70 | + | |
| 71 | +The FINAL-vs-oracle counts equal the PREFILT-vs-oracle counts **exactly** | |
| 72 | +(O: 32+16=48; AB: 32+32=64; Q: 422+379=801). So deblock, CDEF, loop restoration | |
| 73 | +and superres carry **zero** of the divergence. *(Method warning, already paid for | |
| 74 | +once: our non-WIDE dumps are plane-padded to 256 rows while the oracle crops to | |
| 75 | +the display shape; a naive `cmp` there reports a fake 66k-byte diff. `stagecmp.py` | |
| 76 | +de-pads by stride.)* | |
| 77 | + | |
| 78 | +**First divergent samples (decode frame 0, per plane):** | |
| 79 | + | |
| 80 | +| cell | plane | first bad | ours | oracle | shape of the wrong region | | |
| 81 | +|---|---|---|---|---|---| | |
| 82 | +| `Q_odd320x242` | U | (row 160, col 116) | 182 | 202 | rows 160-201, cols 116-139 | | |
| 83 | +| `Q_odd320x242` | V | (row 160, col 116) | 180 | 222 | rows 160-201, cols 116-139 | | |
| 84 | +| `O_odd322x242` | U | (row 176, col 128) | 203 | 202 | rows 176-179 c128-131; rows 204-207 c108-111 | | |
| 85 | +| `O_odd322x242` | V | (row 204, col 108) | 166 | 222 | rows 204-207, cols 108-111 | | |
| 86 | +| `AB_inter_warp_odd` | U | (row 204, col 108) | 220 | 202 | rows 204-207, cols 108-115 | | |
| 87 | +| `AB_inter_warp_odd` | V | (row 204, col 108) | 167 | 222 | rows 204-207, cols 108-115 | | |
| 88 | +| `S_odd326x242_10b` | U | (row 172, col 128) | 64 | 64 | rows 172-181, cols 128-133 (10-bit) | | |
| 89 | +| `S_odd326x242_10b` | V | (row 172, col 128) | 72 | 72 | rows 172-179, cols 128-131 | | |
| 90 | + | |
| 91 | +Chroma 4:2:2 geometry: `chroma_w = W/2` (161 / 160 / 163), `chroma_h = H` (242). | |
| 92 | +Luma is byte-exact on **all four**, so the entropy parse is in sync: a | |
| 93 | +coefficient-count or CDF-row error is ruled out (§5). | |
| 94 | + | |
| 95 | +--- | |
| 96 | + | |
| 97 | +## 3. The control that refutes "odd height" (and "odd width") | |
| 98 | + | |
| 99 | +42 freshly built cells, same source (`testsrc2`), same encoder settings per row, | |
| 100 | +`ffmpeg + libaom-av1 -crf 30 -b:v 0 -cpu-used 6 -usage good -lag-in-frames 0 -g 30`, | |
| 101 | +full 17-frame decode order, `census.sh`: | |
| 102 | + | |
| 103 | +**Height sweep at 320 wide, 4:2:2 / 4:2:0 / 4:4:4:** | |
| 104 | + | |
| 105 | +| height | 4:2:2 | 4:2:0 | 4:4:4 | | |
| 106 | +|---|---|---|---| | |
| 107 | +| 236, 238, 240, 241, **242**, 243, 244, 248, 256 | ALL 17/17 EXACT | EXACT | EXACT | | |
| 108 | + | |
| 109 | +**Width sweep at 4:2:2, heights 240 and 242:** widths 318, 320, 321, 322, 323, | |
| 110 | +324, 326, 328 × heights 240, 242 — **all 16 cells 16-17/17 BYTE-EXACT**. | |
| 111 | + | |
| 112 | +So: | |
| 113 | + | |
| 114 | +* **Odd height is refuted.** 320x242 4:2:2 is byte-exact; so is 241 and 243. | |
| 115 | +* **Odd width is refuted.** 321, 323, 322, 326 at height 242 are all exact. | |
| 116 | +* **4:2:0 and 4:4:4 at 242 are exact** — the defect is not "odd height at all", | |
| 117 | + it is 4:2:2-and-something-else. | |
| 118 | +* `V_tile2x2_odd` (322x242 4:2:2) in the committed corpus is exact, which | |
| 119 | + independently refutes "242 tall" before any new encode. | |
| 120 | + | |
| 121 | +**Therefore the common factor is NOT the geometry.** It is something in the | |
| 122 | +encoder configuration of the four `lossy_all` cells that my fresh encodes do not | |
| 123 | +reproduce. Their sequence headers differ from my cells' (`…07 c5 ff f9 81` vs | |
| 124 | +`…07 c4 da f9 01` — a different `seq_profile`/`reduced_still_picture_header` | |
| 125 | +packing), and the four failing cells are the corpus's `aomenc`-built ones | |
| 126 | +(`A_testsrc2_cpu0`/`B_testsrc2_cpu6` naming, `base_q=25` measured in our | |
| 127 | +`EC_AV1_TRACE` dequant). I could not rebuild them with the local `aomenc` | |
| 128 | +(it rejects `--crf`, and the raw-yuv invocation produces no output), so the | |
| 129 | +encoder-setting difference is **named as the open factor, not pinned**. | |
| 130 | + | |
| 131 | +--- | |
| 132 | + | |
| 133 | +## 4. Localisation of the first divergent unit | |
| 134 | + | |
| 135 | +Instrument: the OBU stream is truncated to sequence header + first frame | |
| 136 | +(`obu_first_frame.py`), so both sides' `EC_PRED` ladders contain **frame 0 only** | |
| 137 | +and pairing is unambiguous. Oracle `EC_PREDOUT8` and our `OUR_PRED` are | |
| 138 | +normalised into `(plane, x, y, w, h, mode, sum)` and compared by key, not line | |
| 139 | +(`lad2.py` — the two ladders have different lengths because the oracle prints | |
| 140 | +nothing for a palette block, so a line-for-line diff is meaningless). | |
| 141 | + | |
| 142 | +**First divergent prediction, in oracle decode order:** | |
| 143 | + | |
| 144 | +| cell | first divergent unit | oracle | ours | | |
| 145 | +|---|---|---|---| | |
| 146 | +| `Q_odd320x242` | plane 1 (120,160) 4x4 | mode 12, sum 3232 | mode 12, sum 2912 | | |
| 147 | +| `O_odd322x242` | none in the ladder (see below) | — | — | | |
| 148 | +| `AB_inter_warp_odd` | plane 1 (112,204) 4x4 | mode 2, sum 3232 | mode 2, sum 3520 | | |
| 149 | + | |
| 150 | +**Owning luma block, all four cells, identical shape.** Converting the first bad | |
| 151 | +chroma coordinate to luma (`(cx<<1, cy)`) and finding the block that covers it: | |
| 152 | + | |
| 153 | +| cell | luma block | our luma units | oracle prediction print covering it | | |
| 154 | +|---|---|---|---| | |
| 155 | +| `Q_odd320x242` | (232,160) = mi(40,58) | 8x4 @y160 + 8x4 @y164 | **none** | | |
| 156 | +| `O_odd322x242` | (256,176) = mi(44,64) | 8x4 | **none** | | |
| 157 | +| `AB_inter_warp_odd` | (216,204) = mi(51,54) | 8x4 | **none** | | |
| 158 | +| `S_odd326x242_10b` | (256,172) = mi(43,64) | 8x4 (10-bit) | **none** | | |
| 159 | + | |
| 160 | +**The common shape is a 2×2-mi (8×8 luma) block, split into two 8×4 luma units, | |
| 161 | +whose 4:2:2 chroma is coded as two 4×4 chroma units stacked** — i.e. the 4:2:2 | |
| 162 | +"sub-8x8" chroma walk. Our parse trace names it directly | |
| 163 | +(`EC_AV1_TRACE` on `Q_odd320x242` frame 0, lines 40614-40615 of the trace): | |
| 164 | + | |
| 165 | +``` | |
| 166 | +TRACE partition_w8 mi=(40,58) ctx=0 value=1 | |
| 167 | +TRACE sub8 skip mi=(40,58) ctx=1 value=1 rng=44808 | |
| 168 | +TRACE sub8 skip mi=(41,58) ctx=1 value=0 rng=42472 | |
| 169 | +``` | |
| 170 | + | |
| 171 | +and the chroma unit at chroma (116,160) reconstructs from a **DC** prediction of | |
| 172 | +182 (`OUR_PRED x=116 y=160 plane=1 side=4 side=4 mode=0 sum=2912`) against the | |
| 173 | +oracle's 202. | |
| 174 | + | |
| 175 | +**The oracle's 202 is exactly `dc_top`** — `(sum(above) + bw/2)/bw` with the four | |
| 176 | +above samples all 202, i.e. **libaom used the above edge only**. Ours used | |
| 177 | +above+left: `(808 + 644 + 4)/8 = 182`, where the left column is | |
| 178 | +chroma col 115 rows 160-163 = 165,164,163,152 — samples that are **byte-identical | |
| 179 | +on both sides**. So the DC differs because the **left context was included by us | |
| 180 | +and excluded by libaom**, or because the *block that owns* the left column | |
| 181 | +differs. | |
| 182 | + | |
| 183 | +**The first divergence is inside the chroma of luma mi(40,58), and the causal | |
| 184 | +chain is visible one block to the right**: the block at chroma (120,160) reads its | |
| 185 | +D203 prediction off chroma col 119 = the seed block's chroma, and is the first | |
| 186 | +*printed* disagreement (mode identical, 3232 vs 2912). | |
| 187 | + | |
| 188 | +**libaom's expression that governs the left's availability, verbatim** | |
| 189 | +(`av1/common/av1_common_int.h:1367-1379`, `set_mi_row_col`): | |
| 190 | + | |
| 191 | +```c | |
| 192 | + xd->left_available = (mi_col > tile->mi_col_start); | |
| 193 | + xd->chroma_up_available = xd->up_available; | |
| 194 | + xd->chroma_left_available = xd->left_available; | |
| 195 | + if (ss_x && bw < mi_size_wide[BLOCK_8X8]) /* bw < 2, i.e. a 4x4 luma block */ | |
| 196 | + xd->chroma_left_available = (mi_col - 1) > tile->mi_col_start; | |
| 197 | + if (ss_y && bh < mi_size_high[BLOCK_8X8]) | |
| 198 | + xd->chroma_up_available = (mi_row - 1) > tile->mi_row_start; | |
| 199 | +``` | |
| 200 | + | |
| 201 | +consumed by `av1/common/reconintra.c:1744-1766`: | |
| 202 | + | |
| 203 | +```c | |
| 204 | + const int have_top = row_off || (ss_y ? xd->chroma_up_available : xd->up_available); | |
| 205 | + const int have_left = col_off || (ss_x ? xd->chroma_left_available : xd->left_available); | |
| 206 | + const int n_top_px = have_top ? AOMMIN(txwpx, xr + txwpx) : 0; | |
| 207 | + const int n_left_px = have_left ? AOMMIN(txhpx, yd + txhpx) : 0; | |
| 208 | +``` | |
| 209 | + | |
| 210 | +and then `dc_pred[n_left_px > 0][n_top_px > 0][tx_size]` | |
| 211 | +(`reconintra.c:1329-1331` → `aom_dsp/intrapred.c:181-225`: | |
| 212 | +`dc` = both, `dc_top` = above only, `dc_left` = left only, `dc_128` = neither). | |
| 213 | + | |
| 214 | +**At `ss_y == 0` (4:2:2) the first term of `have_top` is `row_off || chroma_up_available` | |
| 215 | +and the `ss_y` clause never fires — libaom's 4:2:2 `chroma_up_available` is | |
| 216 | +therefore plain `up_available`.** That is the one place in this expression where | |
| 217 | +4:2:2 differs from 4:2:0, and it is where I would attack next. **I did not | |
| 218 | +confirm it**, and I am not claiming it. | |
| 219 | + | |
| 220 | +--- | |
| 221 | + | |
| 222 | +## 5. What is ruled OUT, with the measurement that rules it out | |
| 223 | + | |
| 224 | +| hypothesis | verdict | evidence | | |
| 225 | +|---|---|---| | |
| 226 | +| a loop filter / CDEF / LR / superres stage carries it | **refuted** | PREFILT-vs-oracle diff == FINAL-vs-oracle diff exactly (48/64/801/49); our PREFILT == POSTDEBLOCK == POSTCDEF on all four | | |
| 227 | +| the entropy parse desynchronises | **refuted** | luma byte-exact on all four; and the whole-frame palette colour-index ladder is **identical**: 167 colour maps per side, identical per-block shapes (`{(8,8):41, (4,16):39, (8,4):27, (4,8):26, (16,8):11, (8,16):9, (16,16):6, (32,16):3, (32,32):2, (16,32):2, (16,64):1}` on both), and all **16 544** `EC_PAL_VAL` indices identical (`EC_TRACE_PALETTE` on the oracle, `EC_AV1_TRACE` on ours) | | |
| 228 | +| a wrong coefficient COUNT (one vs two 4:2:2 chroma units) | **refuted** | a count change is a desync, and the parse is in sync (§5 row 2) | | |
| 229 | +| the palette colour-index map or the palette colours | **refuted** | identical values, identical shapes, identical counts on both sides | | |
| 230 | +| the palette-prediction handoff slot (`set_palette_pred`/`take_palette_pred`) | **refuted** | `EC_DEBUG_PAL` over frame 0: 466 `PALSET`, 0 with `stale=true` | | |
| 231 | +| per-unit palette windowing stride | **refuted for this defect** | every `palette_window` call in `decode.rs` uses `chroma_side` as the stride, which is the map's own width | | |
| 232 | +| "242 tall" | **REFUTED** | §3: 320x242, 321x242, 323x242, 326x242 4:2:2 all 17/17 exact; `V_tile2x2_odd` (322x242) exact in the committed corpus | | |
| 233 | +| "odd width" | **REFUTED** | §3 width sweep, 16/16 exact | | |
| 234 | +| "odd height at 4:2:0/4:4:4" | **REFUTED** | §3, 4:2:0 and 4:4:4 at 241/242/243 all exact | | |
| 235 | +| a decoder-side *class* already fixed today (llinter, llinter2, oddheightfork3, …) | **refuted** | those arms are inter-path or var-tx-path; this is intra chroma in a key frame, and luma is exact | | |
| 236 | + | |
| 237 | +--- | |
| 238 | + | |
| 239 | +## 6. Geometry actually measured for the failing cells | |
| 240 | + | |
| 241 | +| cell | `max_frame` | bit depth | luma plane | chroma plane (4:2:2) | our internal padded extent | oracle FINAL frame | | |
| 242 | +|---|---|---|---|---|---|---| | |
| 243 | +| `AB_inter_warp_odd` | 322x242 | 8 | 322x242 = 77 924 | 161x242 = 38 962 ×2 | 328x248 + 164x248×2 (`mi_cols=2·⌈322/8⌉=82`, `mi_rows=2·⌈242/8⌉=62`) | 155 848 B | | |
| 244 | +| `O_odd322x242` | 322x242 | 8 | 77 924 | 38 962 ×2 | as above | 155 848 B | | |
| 245 | +| `Q_odd320x242` | 320x242 | 8 | 77 440 | 38 720 ×2 | 320x248 + 160x248×2 (already mi-aligned) | 154 880 B | | |
| 246 | +| `S_odd326x242_10b` | 326x242 | 10 (u16 LE) | 78 892 | 39 446 ×2 | 328x248 + 164x248×2 | 315 568 B | | |
| 247 | + | |
| 248 | +Coded height == display height == 242 for all four (no superres, `sfr=0`); | |
| 249 | +`chroma_h = 242` (4:2:2 subsamples x only); `242 = 128 + 114`, so SB row 1 is a | |
| 250 | +114-row partial row and mi row 61 (luma 244-247) lies entirely outside. **None | |
| 251 | +of the wrong samples is in that partial row** — they sit at luma rows 160-207. | |
| 252 | +That is a second, independent reason height is not the factor. | |
| 253 | + | |
| 254 | +--- | |
| 255 | + | |
| 256 | +## 7. Gate-ability: NO. Stated plainly. | |
| 257 | + | |
| 258 | +4:2:2 is refused at the **sequence header** — | |
| 259 | +`crates/ec-av1/src/stream.rs:1803` | |
| 260 | +`if seq.subsampling_x != seq.subsampling_y` — so **no committed fixture and no | |
| 261 | +committed test can reach this code**. Every measurement in this report required | |
| 262 | +patching that guard out. There is no committed 4:2:2 fixture to gate against and | |
| 263 | +none can be added without lifting the refusal, which is the product decision the | |
| 264 | +brief excludes from this lane. I am not offering a source-scan substitute. | |
| 265 | + | |
| 266 | +**What a future lane that lifts the refusal would need**, measured: | |
| 267 | + | |
| 268 | +* `ll422_*.obu`-style 4:2:2 fixtures at **322x242 and 320x242** (the two | |
| 269 | + geometries that carry the bug in this corpus) — `O_odd322x242.obu` and | |
| 270 | + `Q_odd320x242.obu` (21 490 B and 21 381 B) are the obvious candidates; they are | |
| 271 | + in `/home/user/.cache/cells/av1422lpf/lossy_all/`, not in `fixtures/`. | |
| 272 | +* A byte-exactness gate per decode frame per plane, plus a mutation proof (flip | |
| 273 | + one chroma sample of a palette block / one `chroma_left_available` term and | |
| 274 | + watch frame 0 go red). | |
| 275 | +* **A reproducer recipe is still missing**: 42 fresh 4:2:2 encodes across | |
| 276 | + 8 widths × 9 heights × 3 chroma formats did NOT reproduce the failure (§3), so | |
| 277 | + the encoder setting that produces it is unknown. Without it, a committed | |
| 278 | + fixture alone would pin the symptom without a recipe — committable, but not | |
| 279 | + reproducible from scratch. | |
| 280 | + | |
| 281 | +--- | |
| 282 | + | |
| 283 | +## 8. Regression | |
| 284 | + | |
| 285 | +`cargo test -p ec-av1 --lib -- 420 422 444 lossless warp intra --skip | |
| 286 | +bitrate_target_lands_within_5_percent_over_48_frames` on the reverted, | |
| 287 | +bypass-free lane tree at `81a21c7d`, with | |
| 288 | +`EC_AV1_AOMDEC=/home/user/.cache/aom-oracle/build/aomdec`: | |
| 289 | + | |
| 290 | +**`test result: ok. 181 passed; 0 failed; 2 ignored; 0 measured; 618 filtered out; finished in 263.05s`** | |
| 291 | + | |
| 292 | +**A first run of this exact command reported `175 passed; 6 failed`.** All six | |
| 293 | +are gates that spawn the external `aomdec` and stage their stream in | |
| 294 | +`std::env::temp_dir()`. The panic was | |
| 295 | +`writing the stream: Os { code: 122, kind: QuotaExceeded, message: "Disk quota exceeded" }` | |
| 296 | +— the local `/tmp` **tmpfs** was at 80% of its 16 GB quota, not a decode | |
| 297 | +regression. `rm -rf /tmp/ec-av1-*` freed it, the four named tests then passed | |
| 298 | +individually (4/4), and the whole suite returned the 181/0 baseline above. | |
| 299 | +Recorded because the class reads exactly like a red gate | |
| 300 | +(`local-edquot-rust-build-tests`). | |
| 301 | + | |
| 302 | +This lane changed no source, so this is a baseline confirmation, not | |
| 303 | +fix-verification. | |
| 304 | + | |
| 305 | +## 9. Handover for the next lane | |
| 306 | + | |
| 307 | +1. **The first thing to instrument is `chroma_left_available` / `have_left` in | |
| 308 | + our own decoder for the chroma of luma mi(40,58)** (`Q_odd320x242` frame 0, | |
| 309 | + chroma `(116,160)`): print `have_left`, the left column actually gathered, | |
| 310 | + and the DC, next to the oracle's `EC_PRED … have_left=… n_left=…` line for the | |
| 311 | + same unit. Ours currently says "left available" (DC 182 = above+left); | |
| 312 | + libaom's own 202 says "above only". **That single boolean is the whole | |
| 313 | + measured delta at the seed.** | |
| 314 | +2. **The block ownership of chroma col 115 rows 160-163 is unverified.** The | |
| 315 | + oracle prints **no** intra prediction for luma mi(40,58) at all, and no | |
| 316 | + `EC_PALSYN_AOM` line for it, while its 4 neighbour blocks at mi(40,54/56/60/62) | |
| 317 | + all print. Whether that is a palette block (no print), a rung that does not | |
| 318 | + fire on this block shape, or a genuine block-structure difference between the | |
| 319 | + two decoders is **unresolved** and is the other half of the seed. This is the | |
| 320 | + documented `av1-trace-label-mismatch-class` trap; do not trust a line-for-line | |
| 321 | + ladder diff here. | |
| 322 | +3. **libaom's intra per-plane walk** (`av1/decoder/decodeframe.c:995-1022`) rounds | |
| 323 | + the unit grid **per axis**: `unit_width = ROUND_POWER_OF_TWO(AOMMIN(…), pd->subsampling_x)`, | |
| 324 | + `unit_height = ROUND_POWER_OF_TWO(AOMMIN(…), pd->subsampling_y)`, and | |
| 325 | + `blk_row` starts at `row >> ss_y` (`= row` at 4:2:2). Every 4:2:2 chroma extent | |
| 326 | + in our decoder that is *not* written as an explicit per-axis pair is suspect. | |
| 327 | +4. **Find the encoder setting.** The four failing cells are `aomenc`-built with | |
| 328 | + `base_q=25`; 42 `ffmpeg`+`libaom` encodes across 8 widths × 9 heights × 3 | |
| 329 | + formats are all exact. A cpu-used / `--enable-cdef` / `--lag-in-frames` / | |
| 330 | + `--tile-*` / `--usage` sweep on `aomenc` (the local binary rejects `--crf`; | |
| 331 | + use `--cq-level` and a y4m input) is the cheapest next step and is what makes | |
| 332 | + the defect reproducible, hence gate-able. | |
| 333 | +5. **The 4:2:2 intra-chroma DC/availability class is worth a repo-wide sweep**, | |
| 334 | + not just these cells: a `dc_top` where libaom used `dc` (or the reverse) is a | |
| 335 | + ±1-to-±20 sample class that stays invisible to every 4:2:0 gate. | |
| 336 | + | |
| 337 | +## 10. Handover hygiene | |
| 338 | + | |
| 339 | +* Lane tree `/home/user/.cache/wt/av1422llodd` on `lane-av1422llodd`: **clean** | |
| 340 | + apart from this report, the bypass probe and the temporary `EC_AV1_TRACE` | |
| 341 | + print both reverted. | |
| 342 | +* Primary checkout `/home/user/Documents/Code/Rust/edith_codecs`: | |
| 343 | + `git status --porcelain` **empty**. No relative-path leak. | |
| 344 | +* No push, no merge, no rustfmt. The 4:2:2 sequence-header bypass is **not** | |
| 345 | + committed anywhere. |