forge
Explore
Log in

Don't you dare go Hollow

lanes/av1422census (report only): the 4:2:2 census, re-measured with a proven-live comparator

Browse files at this commit

0b3dc0707968244519a8c5cd5cb7a50e65b41f81Ahmet Kaan GümüşParent: 8da2631
94 cells measured against the instrumented aomdec, per plane per DECODE frame,
with geometry as an explicit argument taken from aomdec's own y4m header and a
hard error on any length disagreement. 48 per-plane oracle-flip arms (16 cells
x Y/U/V), every one moving the count by exactly +1 in the flipped plane with
every other plane and frame unchanged.

50 distinct 4:2:2 cells: 34 byte-exact, 16 diverging, 0 refusing under the
bypass; all 50 refuse by name on the shipped tree.  4:2:0 controls 22/22 exact.
One 4:4:4 10-bit control diverges (s444_352x242_10b), pre-existing and
bypass-independent.

The corrected sweep (aomenc, the trigger recipe, a properly framed y4m)
diverges on 12 of 18 fresh 4:2:2 cells where the previous sweep read clean; the
old sweep used ffmpeg's libaom wrapper at -cpu-used 6 over a y4m libaom rejects
per frame.

No source change; the 4:2:2 header bypass is reverted and the tree is clean
apart from this report.  No product decision is recommended.

Regression on the clean tree: 181 passed; 0 failed; 2 ignored; 619 filtered out.
lanes/av1422census.report.mdadded+658 -0
@@ -0,0 +1,658 @@
1+# lane-av1422census — the 4:2:2 census, re-measured with a proven-live comparator
2+
3+**Outcome in one line: the standing "4:2:2 refuses by name" decision's input
4+was stale — of 50 distinct 4:2:2 cells measured today, 34 decode byte-exact and
5+16 diverge, and the divergence is not one odd geometry: 12 of 18 fresh
6+`aomenc` 4:2:2 cells diverge, where the previous sweep — encoded with ffmpeg's
7+libaom wrapper at `-cpu-used 6` over a y4m libaom rejected per frame — reported
8+its fresh encodes all clean.**
9+
10+Tip: `main` = `cc9f2668`. Worktree `/home/user/.cache/wt/av1422census`,
11+branch `lane-av1422census`. **The only source edit ever applied in this tree is
12+the `if false &&` 4:2:2 sequence-header bypass, and it is reverted** —
13+`stream.rs:1803` reads `if seq.subsampling_x != seq.subsampling_y {` again and
14+the tree carries no source diff. Every measurement below was taken on a
15+patch-run-restore build, as the standing rule requires. No fix, no push, no
16+merge, no rustfmt. **This report recommends no product decision**; §7 states
17+plainly what is not measured.
18+
19+---
20+
21+## 0. What changed since the last census, in one table
22+
23+| | last full census (`av1422llinter`, `cc211d13`) | this census |
24+|---|---|---|
25+| 4:2:2 cells measured | 27 | **50** (32 corpus + 18 fresh) |
26+| 4:2:2 byte-exact | 22 | **34** |
27+| 4:2:2 diverging | 5 | **16** |
28+| 4:2:2 refusing | 0 (bypassed for the measurement) | 0 under bypass; **50/50 refuse by name on the shipped tree** |
29+| geometry sweep encoder | ffmpeg's libaom wrapper, `-cpu-used 6`, **malformed y4m** | **aomenc + the trigger recipe + a correct y4m** |
30+| sweep result | 42 fresh encodes reported "all exact" | **12 of 18 fresh 4:2:2 cells DIVERGE** (7 of 12 at 8-bit, 5 of 6 at 10-bit) |
31+| comparator | unproven | **48 per-plane oracle-flip arms, all +1 exactly** (§1) |
32+
33+The single largest correction: **the previous "42 fresh encodes, all clean"
34+sweep used the wrong encoder at the wrong search effort with a y4m that libaom
35+rejected per frame.** Re-encoded with `aomenc --cpu-used 0 --lag-in-frames 25
36+--auto-alt-ref=1 --enable-global-motion=1 --cq-level=24`, the same content and
37+the same geometries produce divergence on 12 of 18 4:2:2 cells.
38+
39+---
40+
41+## 1. The comparator, and its liveness proof
42+
43+Both sides dump `EC_AV1_FINAL_DUMP` — ours from `decode_frame`
44+(`stream.rs:2210`, depth-correct, post-deblock/CDEF/LR/superres), the oracle's
45+from rung 12 of `scripts/instrument-aom-oracle.sh` (`decodeframe.c`, the same
46+stage). `.f<N>` is the **DECODE** index on both sides, hidden alt-refs included.
47+
48+Four properties, each of which is a known way this wave has already lost a
49+result:
50+
51+1. **Geometry is an explicit argument, taken from the oracle's own y4m
52+ header** (`W320 H242 F0:0 Ip C422`, `C422p10 XYSCSS=422P10`). Never from a
53+ file size. A frame whose byte length disagrees with the geometry is a hard
54+ error, not a tolerated difference — it fired twice during this census and
55+ caught a real bug in my own first parser (§1.1).
56+2. **Plane attribution is per frame**, from that frame's own plane lengths
57+ derived from the explicit geometry, with a monotone cursor. Not absolute
58+ thresholds from frame 0.
59+3. **A wrong SAMPLE is one `bps`-wide unit**, `bps` from the y4m's depth tag.
60+ 10/12-bit cells are counted per 16-bit sample, so the top 6 bits cannot hide.
61+4. **A count over zero frames is a hard error**, naming the vacuous 0/0/0 it
62+ would otherwise print.
63+
64+### 1.1 Two defects the instrument caught in ITSELF, before any claim
65+
66+* My first y4m regex was `$`-anchored and matched neither `C422p10 XYSCSS=…`
67+ nor `C420jpeg`; it silently fell back to "C420, 8-bit". Every high-bitdepth
68+ cell then failed the length assertion with `ours=307200 oracle=307200 !=
69+ 115200 implied by … ss=11 depth=8`. That is the geometry-from-the-wrong-field
70+ class, caught because the length check is a hard error rather than a warning.
71+* The flip control's first version indexed the flip in BYTES while walking
72+ planes in SAMPLES; at 10-bit it read past EOF and raised
73+ `IndexError: bytearray index out of range`. Both defects were in the
74+ instrument, and both were found by the instrument refusing to produce a
75+ number.
76+
77+### 1.2 The flip control — 48 arms, 48 passes
78+
79+One oracle sample per plane, per cell, in a named decode frame; the same
80+comparator must move by exactly +1 in that plane with every other plane and
81+every other frame unchanged. The flip is bit 0 of the sample's **low** byte:
82+at 10/12-bit the sample sits in a 16-bit LE container and `2**bitdepth <
83+2**16`, so no sample can carry out of the container — +1 by construction rather
84+than hoped for. Each arm is restored before the next, so the three planes are
85+independent.
86+
87+**16 cells x 3 planes = 48 arms, 48 PASS, 0 FAIL.**
88+
89+| cell | geometry | frame | baseline Y/U/V | plane flipped | oracle bytes | count delta Y/U/V | verdict |
90+|---|---|---|---|---|---|---|---|
91+| `Q_odd320x242` | 320x242 ss=10 d8 | decode frame 0 | 0/9603/14456 | U | `5a` -> `5b` | 0/1/0 | PASS |
92+| `Q_odd320x242` | 320x242 ss=10 d8 | decode frame 0 | 0/9603/14456 | V | `f0` -> `f1` | 0/0/1 | PASS |
93+| `Q_odd320x242` | 320x242 ss=10 d8 | decode frame 7 | 0/9603/14456 | Y | `51` -> `50` | 1/0/0 | PASS |
94+| `Q_odd320x242` | 320x242 ss=10 d8 | decode frame 7 | 0/9603/14456 | U | `5a` -> `5b` | 0/1/0 | PASS |
95+| `Q_odd320x242` | 320x242 ss=10 d8 | decode frame 7 | 0/9603/14456 | V | `f0` -> `f1` | 0/0/1 | PASS |
96+| `W_intrabc` | 320x240 ss=10 d8 | decode frame 0 | 0/0/0 | Y | `51` -> `50` | 1/0/0 | PASS |
97+| `W_intrabc` | 320x240 ss=10 d8 | decode frame 0 | 0/0/0 | U | `5a` -> `5b` | 0/1/0 | PASS |
98+| `W_intrabc` | 320x240 ss=10 d8 | decode frame 0 | 0/0/0 | V | `f0` -> `f1` | 0/0/1 | PASS |
99+| `Y_intrabc_10b` | 320x240 ss=10 d10 | decode frame 0 | 0/0/0 | Y | `4401` -> `4501` | 1/0/0 | PASS |
100+| `Y_intrabc_10b` | 320x240 ss=10 d10 | decode frame 0 | 0/0/0 | U | `6801` -> `6901` | 0/1/0 | PASS |
101+| `Y_intrabc_10b` | 320x240 ss=10 d10 | decode frame 0 | 0/0/0 | V | `c003` -> `c103` | 0/0/1 | PASS |
102+| `S_odd326x242_10b` | 326x242 ss=10 d10 | decode frame 0 | 0/301/751 | Y | `4401` -> `4501` | 1/0/0 | PASS |
103+| `S_odd326x242_10b` | 326x242 ss=10 d10 | decode frame 0 | 0/301/751 | U | `6801` -> `6901` | 0/1/0 | PASS |
104+| `S_odd326x242_10b` | 326x242 ss=10 d10 | decode frame 0 | 0/301/751 | V | `c003` -> `c103` | 0/0/1 | PASS |
105+| `AB_inter_warp_odd` | 322x242 ss=10 d8 | decode frame 42 | 0/3705/4366 | Y | `51` -> `50` | 1/0/0 | PASS |
106+| `AB_inter_warp_odd` | 322x242 ss=10 d8 | decode frame 42 | 0/3705/4366 | U | `5a` -> `5b` | 0/1/0 | PASS |
107+| `AB_inter_warp_odd` | 322x242 ss=10 d8 | decode frame 42 | 0/3705/4366 | V | `f0` -> `f1` | 0/0/1 | PASS |
108+| `ll420_a` | 320x240 ss=11 d8 | decode frame 0 | 0/0/0 | Y | `96` -> `97` | 1/0/0 | PASS |
109+| `ll420_a` | 320x240 ss=11 d8 | decode frame 0 | 0/0/0 | U | `8f` -> `8e` | 0/1/0 | PASS |
110+| `ll420_a` | 320x240 ss=11 d8 | decode frame 0 | 0/0/0 | V | `9b` -> `9a` | 0/0/1 | PASS |
111+| `ll444_a` | 320x240 ss=00 d8 | decode frame 0 | 0/0/0 | Y | `51` -> `50` | 1/0/0 | PASS |
112+| `ll444_a` | 320x240 ss=00 d8 | decode frame 0 | 0/0/0 | U | `5a` -> `5b` | 0/1/0 | PASS |
113+| `ll444_a` | 320x240 ss=00 d8 | decode frame 0 | 0/0/0 | V | `f0` -> `f1` | 0/0/1 | PASS |
114+| `422_sb128_3f` | 128x128 ss=10 d8 | decode frame 0 | 0/0/0 | Y | `10` -> `11` | 1/0/0 | PASS |
115+| `422_sb128_3f` | 128x128 ss=10 d8 | decode frame 0 | 0/0/0 | U | `80` -> `81` | 0/1/0 | PASS |
116+| `422_sb128_3f` | 128x128 ss=10 d8 | decode frame 0 | 0/0/0 | V | `80` -> `81` | 0/0/1 | PASS |
117+| `s422_320x242` | 320x242 ss=10 d8 | decode frame 0 | 0/6337/8398 | Y | `51` -> `50` | 1/0/0 | PASS |
118+| `s422_320x242` | 320x242 ss=10 d8 | decode frame 0 | 0/6337/8398 | U | `5a` -> `5b` | 0/1/0 | PASS |
119+| `s422_320x242` | 320x242 ss=10 d8 | decode frame 0 | 0/6337/8398 | V | `f0` -> `f1` | 0/0/1 | PASS |
120+| `s422_384x240` | 384x240 ss=10 d8 | decode frame 0 | 0/1982/2081 | Y | `51` -> `50` | 1/0/0 | PASS |
121+| `s422_384x240` | 384x240 ss=10 d8 | decode frame 0 | 0/1982/2081 | U | `5a` -> `5b` | 0/1/0 | PASS |
122+| `s422_384x240` | 384x240 ss=10 d8 | decode frame 0 | 0/1982/2081 | V | `f0` -> `f1` | 0/0/1 | PASS |
123+| `s444_320x242` | 320x242 ss=00 d8 | decode frame 0 | 0/0/0 | Y | `51` -> `50` | 1/0/0 | PASS |
124+| `s444_320x242` | 320x242 ss=00 d8 | decode frame 0 | 0/0/0 | U | `5a` -> `5b` | 0/1/0 | PASS |
125+| `s444_320x242` | 320x242 ss=00 d8 | decode frame 0 | 0/0/0 | V | `f0` -> `f1` | 0/0/1 | PASS |
126+| `s420_320x242` | 320x242 ss=11 d8 | decode frame 0 | 0/0/0 | Y | `51` -> `50` | 1/0/0 | PASS |
127+| `s420_320x242` | 320x242 ss=11 d8 | decode frame 0 | 0/0/0 | U | `f0` -> `f1` | 0/1/0 | PASS |
128+| `s420_320x242` | 320x242 ss=11 d8 | decode frame 0 | 0/0/0 | V | `6e` -> `6f` | 0/0/1 | PASS |
129+| `s422_416x250_10b` | 416x250 ss=10 d10 | decode frame 0 | 103250/64191/62834 | Y | `4401` -> `4501` | 1/0/0 | PASS |
130+| `s422_416x250_10b` | 416x250 ss=10 d10 | decode frame 0 | 103250/64191/62834 | U | `6801` -> `6901` | 0/1/0 | PASS |
131+| `s422_416x250_10b` | 416x250 ss=10 d10 | decode frame 0 | 103250/64191/62834 | V | `c003` -> `c103` | 0/0/1 | PASS |
132+| `s444_352x242_10b` | 352x242 ss=00 d10 | decode frame 0 | 0/1166/1413 | Y | `4401` -> `4501` | 1/0/0 | PASS |
133+| `s444_352x242_10b` | 352x242 ss=00 d10 | decode frame 0 | 0/1166/1413 | U | `6801` -> `6901` | 0/1/0 | PASS |
134+| `s444_352x242_10b` | 352x242 ss=00 d10 | decode frame 0 | 0/1166/1413 | V | `c003` -> `c103` | 0/0/1 | PASS |
135+| `s422_320x242_10b` | 320x242 ss=10 d10 | decode frame 0 | 0/3915/5612 | Y | `4401` -> `4501` | 1/0/0 | PASS |
136+| `s422_320x242_10b` | 320x242 ss=10 d10 | decode frame 0 | 0/3915/5612 | U | `6801` -> `6901` | 0/1/0 | PASS |
137+| `s422_320x242_10b` | 320x242 ss=10 d10 | decode frame 0 | 0/3915/5612 | V | `c003` -> `c103` | 0/0/1 | PASS |
138+
139+Coverage deliberately includes a BYTE-EXACT cell (`W_intrabc`, baseline
140+0/0/0 — the only reading that can be a false green), a DIVERGING cell at two
141+different frames, a 10-bit exact cell, a 10-bit diverging cell, the last decode
142+frame of a 43-frame cell, a 4:2:0 control and a 4:4:4 control, a small
143+128x128 cell, and three of the fresh sweep cells. **A comparator that dropped
144+chroma, mis-attributed a plane to the wrong frame, or compared our samples with
145+ourselves fails at least one of these arms.**
146+
147+---
148+
149+## 2. The cell list, and how it was derived (reproducible)
150+
151+Derivation, in the order run:
152+
153+1. `find /home/user/.cache/cells -name '*.obu'` -> **242** probe cells
154+ across `av1420tall` (198), `av1422lpf` (44), `av1422llintra` (0).
155+2. Every one was run through `aomdec --codec=av1 -o /tmp/h.y4m` and its y4m
156+ header read: that is the oracle's own statement of chroma format and
157+ geometry, so the classification is the oracle's, not a filename guess.
158+ **35 of the probe cells are `C422`/`C422p10`.**
159+3. Every file in `crates/ec-av1/fixtures/` (105) was classified the same way.
160+ **9 are `C422`/`C422p10`**, and all 9 are byte-identical (sha256 prefix) to
161+ a copy already in the probe cache — so the cell set is deduplicated by
162+ content hash, not by name: **32 distinct 4:2:2 corpus cells**, of which
163+ **9 are committed** and **23 are probe-only**.
164+4. Committed means: `git ls-files crates/ec-av1/fixtures` lists the file. There
165+ is no `tests/data` directory in this crate.
166+5. Controls: the 8 non-4:2:2 cells in `av1422lpf` (`ll420_a/c/d`,
167+ `ll444_a/b/c`, `ll420_allintra`, `ll444_allintra`) plus the 36 fresh sweep
168+ control encodes.
169+
170+### 2.1 What "committed" is worth here — measured, not assumed
171+
172+`grep` shows the 9 committed 4:2:2 fixtures are referenced only by
173+`stream.rs`/`decode.rs`, and reading those gates: they are **byte pins
174+(size + fnv1a64) plus a refusal-by-name assertion**
175+(`the_pinned_422_bigblock_witnesses_are_present_and_refuse_by_name`,
176+`the_pinned_422_lossless_inter_witnesses_are_present_and_refuse_by_name`). The
177+second gate's own doc comment says it is **vacuous with respect to the
178+seven-site fix it was written for** — the header refusal fires before any of
179+those sites is reachable, identically on the pre-fix tree.
180+
181+**Consequence, and it is the reason this census exists: there is no committed
182+gate anywhere that measures 4:2:2 PIXELS.** Every exactness number for 4:2:2
183+in this report — including the 34 exact cells — is probe-only evidence,
184+reproducible from the recipes in §6 but not gateable without lifting the
185+refusal. The 23 probe-only corpus cells are in `/home/user/.cache/cells/`
186+and are pinned by **no sha in this repo**; treat them accordingly.
187+
188+### 2.2 Corpus table (32 x 4:2:2 + 8 controls, DECODE order)
189+
190+| `X_intrabc_tiled` | 422 | 320x240 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 17 | 0 | 0 | 0 |
191+| `Y_intrabc_10b` | 422 | 320x240 | 10 | probe-cache COMMITTED-PIN | BYTE-EXACT | 17 | 0 | 0 | 0 |
192+| `422_allskip_2f` | 422 | 128x128 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 2 | 0 | 0 | 0 |
193+| `422_intrabc_sb128_strip` | 422 | 384x320 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 5 | 0 | 0 | 0 |
194+| `422_intrabc_sb128_strip_notxsearch` | 422 | 384x320 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 5 | 0 | 0 | 0 |
195+| `422_residual_compound_warp_16f` | 422 | 256x288 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 16 | 0 | 0 | 0 |
196+| `422_residual_compound_warp_nolr_16f` | 422 | 256x288 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 16 | 0 | 0 | 0 |
197+| `422_sb128_3f` | 422 | 128x128 | 8 | probe-cache COMMITTED-PIN | BYTE-EXACT | 3 | 0 | 0 | 0 |
198+| `AA_inter_compound` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 43 | 0 | 0 | 0 |
199+| `AB_inter_warp_odd` | 422 | 322x242 | 8 | probe-cache | DIVERGES | 43 (43 bad) | 0 | 3705 | 4366 |
200+| `AD_inter_nogm` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 43 | 0 | 0 | 0 |
201+| `A_testsrc2_cpu0` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
202+| `B_testsrc2_cpu6` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
203+| `C_mandel320` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 16 | 0 | 0 | 0 |
204+| `D_bars` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 16 | 0 | 0 | 0 |
205+| `E_noglobal` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
206+| `F_allintra` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 16 | 0 | 0 | 0 |
207+| `H_10bit_testsrc2` | 422 | 320x240 | 10 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
208+| `I_10bit_mandel` | 422 | 320x240 | 10 | probe-cache | BYTE-EXACT | 16 | 0 | 0 | 0 |
209+| `J_10bit_lr0` | 422 | 320x240 | 10 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
210+| `K_sct` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
211+| `L_tiled` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
212+| `O_odd322x242` | 422 | 322x242 | 8 | probe-cache | DIVERGES | 17 (17 bad) | 0 | 985 | 722 |
213+| `Q_odd320x242` | 422 | 320x242 | 8 | probe-cache | DIVERGES | 17 (17 bad) | 0 | 9603 | 14456 |
214+| `R_odd322x240` | 422 | 322x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
215+| `S_odd326x242_10b` | 422 | 326x242 | 10 | probe-cache | DIVERGES | 17 (17 bad) | 0 | 301 | 751 |
216+| `T_tilecols2` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
217+| `U_tilerows1` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
218+| `V_tile2x2_odd` | 422 | 322x242 | 8 | probe-cache | BYTE-EXACT | 17 | 0 | 0 | 0 |
219+| `ll422_allintra` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 1 | 0 | 0 | 0 |
220+| `ll422_noibc` | 422 | 320x240 | 8 | probe-cache | BYTE-EXACT | 16 | 0 | 0 | 0 |
221+| `ll420_allintra` | 420 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 1 | 0 | 0 | 0 |
222+| `ll444_allintra` | 444 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 1 | 0 | 0 | 0 |
223+| `ll420_a` | 420 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 16 | 0 | 0 | 0 |
224+| `ll420_c` | 420 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 16 | 0 | 0 | 0 |
225+| `ll420_d` | 420 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 16 | 0 | 0 | 0 |
226+| `ll444_a` | 444 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 16 | 0 | 0 | 0 |
227+| `ll444_b` | 444 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 16 | 0 | 0 | 0 |
228+| `ll444_c` | 444 | 320x240 | 8 | probe-cache-control | BYTE-EXACT | 18 | 0 | 0 | 0 |
229+
230+Read the `frames` column as the DECODE-order frame count (hidden alt-refs
231+included); `(N bad)` is how many of those frames hold at least one wrong
232+sample.
233+
234+---
235+
236+## 3. The corrected geometry sweep — the part that changes the picture
237+
238+Encoder (identical for every cell, the trigger recipe from
239+`lanes/av1422ctrigger.report.md` §2b):
240+
241+```
242+aomenc --codec=av1 --profile=<0|1|2> --input-bit-depth=<8|10> --bit-depth=<8|10> \
243+ --limit=16 --lag-in-frames=25 --auto-alt-ref=1 --enable-global-motion=1 \
244+ --pass=1 --cq-level=24 --threads=4 --kf-min-dist=0 --kf-max-dist=999999 \
245+ --width=W --height=H --cpu-used=0 --obu -o cell.obu src.y4m
246+```
247+
248+Source: `ffmpeg -f lavfi -i testsrc2=size=WxH:rate=25 -frames:v 16 -pix_fmt
249+{yuv422p,yuv420p,yuv444p}[10le] -f rawvideo`, hand-wrapped into y4m with **one
250+`FRAME\n` before every frame** and the full `YUV4MPEG2 … C422|C420|C444[p10]`
251+header once. libaom's `y4m_input_fetch_frame`
252+(`av1/common/y4minput.c:1163-1171`) requires the per-frame `FRAME\n`; a y4m
253+that repeats the full header encodes **zero** frames. All 54 encodes here
254+produced 16 input frames and 17 decode frames (16 shown + 1 hidden alt-ref),
255+which is itself the check that the framing is right.
256+
257+Grid: 8-bit at 4 widths {320, 322, 326, 384} x 3 heights {240, 242, 246}, and
258+10-bit at 3 widths {320, 352, 416} x 2 heights {242, 250}; each geometry
259+encoded in 4:2:2 **and** in 4:2:0 and 4:4:4 as controls. 54 cells.
260+
261+| `s420_320x242` | 11 | 320x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
262+| `s420_320x246` | 11 | 320x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
263+| `s420_322x240` | 11 | 322x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
264+| `s420_322x242` | 11 | 322x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
265+| `s420_322x246` | 11 | 322x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
266+| `s420_326x240` | 11 | 326x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
267+| `s420_326x242` | 11 | 326x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
268+| `s420_326x246` | 11 | 326x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
269+| `s420_384x240` | 11 | 384x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
270+| `s420_384x242` | 11 | 384x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
271+| `s420_384x246` | 11 | 384x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
272+| `s422_320x240` | 10 | 320x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
273+| `s422_320x242` | 10 | 320x242 | 8 | DIVERGES | 17 (17 bad) | 0 | 6337 | 8398 |
274+| `s422_320x246` | 10 | 320x246 | 8 | DIVERGES | 17 (17 bad) | 0 | 38348 | 59491 |
275+| `s422_322x240` | 10 | 322x240 | 8 | DIVERGES | 17 (17 bad) | 0 | 22969 | 22534 |
276+| `s422_322x242` | 10 | 322x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
277+| `s422_322x246` | 10 | 322x246 | 8 | DIVERGES | 17 (17 bad) | 0 | 24964 | 25438 |
278+| `s422_326x240` | 10 | 326x240 | 8 | DIVERGES | 17 (17 bad) | 0 | 734 | 0 |
279+| `s422_326x242` | 10 | 326x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
280+| `s422_326x246` | 10 | 326x246 | 8 | DIVERGES | 17 (17 bad) | 0 | 24078 | 25112 |
281+| `s422_384x240` | 10 | 384x240 | 8 | DIVERGES | 17 (11 bad) | 0 | 1982 | 2081 |
282+| `s422_384x242` | 10 | 384x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
283+| `s422_384x246` | 10 | 384x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
284+| `s444_320x240` | 00 | 320x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
285+| `s444_320x242` | 00 | 320x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
286+| `s444_320x246` | 00 | 320x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
287+| `s444_322x240` | 00 | 322x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
288+| `s444_322x242` | 00 | 322x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
289+| `s444_322x246` | 00 | 322x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
290+| `s444_326x240` | 00 | 326x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
291+| `s444_326x242` | 00 | 326x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
292+| `s444_326x246` | 00 | 326x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
293+| `s444_384x240` | 00 | 384x240 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
294+| `s444_384x242` | 00 | 384x242 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
295+| `s444_384x246` | 00 | 384x246 | 8 | BYTE-EXACT | 17 | 0 | 0 | 0 |
296+| `s420_320x242_10b` | 11 | 320x242 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
297+| `s420_320x250_10b` | 11 | 320x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
298+| `s420_352x242_10b` | 11 | 352x242 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
299+| `s420_352x250_10b` | 11 | 352x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
300+| `s420_416x242_10b` | 11 | 416x242 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
301+| `s420_416x250_10b` | 11 | 416x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
302+| `s422_320x242_10b` | 10 | 320x242 | 10 | DIVERGES | 17 (17 bad) | 0 | 3915 | 5612 |
303+| `s422_320x250_10b` | 10 | 320x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
304+| `s422_352x242_10b` | 10 | 352x242 | 10 | DIVERGES | 17 (17 bad) | 0 | 4858 | 3949 |
305+| `s422_352x250_10b` | 10 | 352x250 | 10 | DIVERGES | 17 (17 bad) | 0 | 3876 | 1786 |
306+| `s422_416x242_10b` | 10 | 416x242 | 10 | DIVERGES | 17 (17 bad) | 0 | 5968 | 4524 |
307+| `s422_416x250_10b` | 10 | 416x250 | 10 | DIVERGES | 17 (17 bad) | 103250 | 64191 | 62834 |
308+| `s444_320x242_10b` | 00 | 320x242 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
309+| `s444_320x250_10b` | 00 | 320x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
310+| `s444_352x242_10b` | 00 | 352x242 | 10 | DIVERGES | 17 (17 bad) | 0 | 1166 | 1413 |
311+| `s444_352x250_10b` | 00 | 352x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
312+| `s444_416x242_10b` | 00 | 416x242 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
313+| `s444_416x250_10b` | 00 | 416x250 | 10 | BYTE-EXACT | 17 | 0 | 0 | 0 |
314+
315+### 3.1 What the sweep says
316+
317+* **4:2:2 8-bit: 5 of 12 exact, 7 DIVERGE.** The previous sweep's "42 fresh
318+ encodes, all clean" used ffmpeg's libaom wrapper at `-cpu-used 6`; at
319+ `-cpu-used 0` with altref and global motion on, the same content and the same
320+ geometries diverge on 7 of 12. The old sweep did not disprove the defect, it
321+ searched a partition tree the defect does not live in.
322+* **4:2:2 10-bit: 1 of 6 exact, 5 DIVERGE.**
323+* **4:2:0 controls: 18 of 18 byte-exact** (12 x 8-bit, 6 x 10-bit). The
324+ supported format is untouched by the same recipe at the same geometries, so
325+ the sweep's failures are 4:2:2-specific, not "odd geometry" or "this
326+ encoder" generally.
327+* **4:4:4 controls: 17 of 18 byte-exact — and ONE DIVERGES**,
328+ `s444_352x242_10b`, 10-bit 4:4:4, chroma only (U 1166 / V 1413, Y 0). This is
329+ **outside the 4:2:2 question** and it is a live defect in a format the
330+ decoder already claims. It was re-measured on a build with the 4:2:2 bypass
331+ **reverted** and returned the identical numbers (0 / 1166 / 1413), so it is
332+ pre-existing on `cc9f2668` and not an artefact of the bypass. Reported here
333+ because a census that found it and stayed silent would be a worse census.
334+* Divergence is **content-and-geometry sensitive, not a function of either
335+ alone**: `322x242` and `326x242` and `384x242` are exact at 8-bit while
336+ `320x242` diverges; `320x240` is exact while `322x240` diverges; `320x246`
337+ diverges while `384x246` does not. The controls that isolate it are in §4.
338+
339+---
340+
341+## 4. Per-cell failure detail (the classes)
342+
343+```
344+== AB_inter_warp_odd 322x242 ss=10 d8 43 decode frames Y/U/V 0/3705/4366 total 8071
345+ first divergent: decode frame 0 plane U (row 204, col 108) ours 220 oracle 202
346+ Y: 0 wrong of 3350732 samples over 43 frames
347+ U: 3705 wrong of 1675366 (0.22%) rows 154..239 (86/242) cols 103..131 (29/161)
348+ V: 4366 wrong of 1675366 (0.26%) rows 154..240 (87/242) cols 103..139 (37/161)
349+ frames with a wrong sample: 43/43; worst decode frame 25 Y/U/V [0, 129, 170]
350+== O_odd322x242 322x242 ss=10 d8 17 decode frames Y/U/V 0/985/722 total 1707
351+ first divergent: decode frame 0 plane U (row 176, col 128) ours 203 oracle 202
352+ Y: 0 wrong of 1324708 samples over 17 frames
353+ U: 985 wrong of 662354 (0.15%) rows 153..211 (59/242) cols 108..133 (26/161)
354+ V: 722 wrong of 662354 (0.11%) rows 195..215 (21/242) cols 107..115 (9/161)
355+ frames with a wrong sample: 17/17; worst decode frame 15 Y/U/V [0, 74, 77]
356+== Q_odd320x242 320x242 ss=10 d8 17 decode frames Y/U/V 0/9603/14456 total 24059
357+ first divergent: decode frame 0 plane U (row 160, col 116) ours 182 oracle 202
358+ Y: 0 wrong of 1316480 samples over 17 frames
359+ U: 9603 wrong of 658240 (1.46%) rows 138..202 (65/242) cols 105..140 (36/160)
360+ V: 14456 wrong of 658240 (2.20%) rows 99..203 (105/242) cols 106..159 (54/160)
361+ frames with a wrong sample: 17/17; worst decode frame 11 Y/U/V [0, 796, 1184]
362+== S_odd326x242_10b 326x242 ss=10 d10 17 decode frames Y/U/V 0/301/751 total 1052
363+ first divergent: decode frame 0 plane U (row 172, col 128) ours 806 oracle 808
364+ Y: 0 wrong of 1341164 samples over 17 frames
365+ U: 301 wrong of 670582 (0.04%) rows 135..189 (55/242) cols 119..136 (18/163)
366+ V: 751 wrong of 670582 (0.11%) rows 117..197 (81/242) cols 111..136 (26/163)
367+ frames with a wrong sample: 17/17; worst decode frame 5 Y/U/V [0, 41, 78]
368+== s422_320x242 320x242 ss=10 d8 17 decode frames Y/U/V 0/6337/8398 total 14735
369+ first divergent: decode frame 0 plane U (row 160, col 116) ours 182 oracle 202
370+ Y: 0 wrong of 1316480 samples over 17 frames
371+ U: 6337 wrong of 658240 (0.96%) rows 142..201 (60/242) cols 104..144 (41/160)
372+ V: 8398 wrong of 658240 (1.28%) rows 127..201 (75/242) cols 101..145 (45/160)
373+ frames with a wrong sample: 17/17; worst decode frame 11 Y/U/V [0, 497, 592]
374+== s422_320x246 320x246 ss=10 d8 17 decode frames Y/U/V 0/38348/59491 total 97839
375+ first divergent: decode frame 0 plane U (row 62, col 144) ours 161 oracle 166
376+ Y: 0 wrong of 1338240 samples over 17 frames
377+ U: 38348 wrong of 669120 (5.73%) rows 46..245 (200/246) cols 94..157 (64/160)
378+ V: 59491 wrong of 669120 (8.89%) rows 48..245 (198/246) cols 99..159 (61/160)
379+ frames with a wrong sample: 17/17; worst decode frame 11 Y/U/V [0, 2510, 3847]
380+== s422_322x240 322x240 ss=10 d8 17 decode frames Y/U/V 0/22969/22534 total 45503
381+ first divergent: decode frame 0 plane U (row 62, col 149) ours 160 oracle 166
382+ Y: 0 wrong of 1313760 samples over 17 frames
383+ U: 22969 wrong of 656880 (3.50%) rows 60..239 (180/240) cols 134..160 (27/161)
384+ V: 22534 wrong of 656880 (3.43%) rows 60..239 (180/240) cols 135..160 (26/161)
385+ frames with a wrong sample: 17/17; worst decode frame 5 Y/U/V [0, 1871, 1815]
386+== s422_322x246 322x246 ss=10 d8 17 decode frames Y/U/V 0/24964/25438 total 50402
387+ first divergent: decode frame 0 plane U (row 62, col 144) ours 169 oracle 166
388+ Y: 0 wrong of 1346604 samples over 17 frames
389+ U: 24964 wrong of 673302 (3.71%) rows 60..245 (186/246) cols 108..160 (53/161)
390+ V: 25438 wrong of 673302 (3.78%) rows 61..245 (185/246) cols 107..160 (54/161)
391+ frames with a wrong sample: 17/17; worst decode frame 10 Y/U/V [0, 1727, 1710]
392+== s422_326x240 326x240 ss=10 d8 17 decode frames Y/U/V 0/734/0 total 734
393+ first divergent: decode frame 0 plane U (row 176, col 128) ours 204 oracle 202
394+ Y: 0 wrong of 1330080 samples over 17 frames
395+ U: 734 wrong of 665040 (0.11%) rows 142..188 (47/240) cols 112..135 (24/163)
396+ V: 0 wrong of 665040 samples over 17 frames
397+ frames with a wrong sample: 17/17; worst decode frame 12 Y/U/V [0, 94, 0]
398+== s422_326x246 326x246 ss=10 d8 17 decode frames Y/U/V 0/24078/25112 total 49190
399+ first divergent: decode frame 0 plane U (row 172, col 128) ours 205 oracle 202
400+ Y: 0 wrong of 1363332 samples over 17 frames
401+ U: 24078 wrong of 681666 (3.53%) rows 154..245 (92/246) cols 106..136 (31/163)
402+ V: 25112 wrong of 681666 (3.68%) rows 153..245 (93/246) cols 105..140 (36/163)
403+ frames with a wrong sample: 17/17; worst decode frame 14 Y/U/V [0, 1577, 1632]
404+== s422_384x240 384x240 ss=10 d8 17 decode frames Y/U/V 0/1982/2081 total 4063
405+ first divergent: decode frame 1 plane U (row 169, col 23) ours 90 oracle 89
406+ Y: 0 wrong of 1566720 samples over 17 frames
407+ U: 1982 wrong of 783360 (0.25%) rows 167..190 (24/240) cols 19..34 (16/192)
408+ V: 2081 wrong of 783360 (0.27%) rows 169..192 (24/240) cols 19..35 (17/192)
409+ frames with a wrong sample: 11/17; worst decode frame 14 Y/U/V [0, 292, 303]
410+== s422_320x242_10b 320x242 ss=10 d10 17 decode frames Y/U/V 0/3915/5612 total 9527
411+ first divergent: decode frame 0 plane U (row 160, col 132) ours 667 oracle 808
412+ Y: 0 wrong of 1316480 samples over 17 frames
413+ U: 3915 wrong of 658240 (0.59%) rows 121..198 (78/242) cols 108..148 (41/160)
414+ V: 5612 wrong of 658240 (0.85%) rows 128..194 (67/242) cols 108..148 (41/160)
415+ frames with a wrong sample: 17/17; worst decode frame 7 Y/U/V [0, 324, 465]
416+== s422_352x242_10b 352x242 ss=10 d10 17 decode frames Y/U/V 0/4858/3949 total 8807
417+ first divergent: decode frame 0 plane U (row 62, col 160) ours 667 oracle 664
418+ Y: 0 wrong of 1448128 samples over 17 frames
419+ U: 4858 wrong of 724064 (0.67%) rows 47..215 (169/242) cols 150..175 (26/176)
420+ V: 3949 wrong of 724064 (0.55%) rows 49..213 (165/242) cols 149..175 (27/176)
421+ frames with a wrong sample: 17/17; worst decode frame 12 Y/U/V [0, 470, 371]
422+== s422_352x250_10b 352x250 ss=10 d10 17 decode frames Y/U/V 0/3876/1786 total 5662
423+ first divergent: decode frame 0 plane U (row 172, col 148) ours 638 oracle 664
424+ Y: 0 wrong of 1496000 samples over 17 frames
425+ U: 3876 wrong of 748000 (0.52%) rows 127..210 (84/250) cols 139..161 (23/176)
426+ V: 1786 wrong of 748000 (0.24%) rows 130..209 (80/250) cols 146..153 (8/176)
427+ frames with a wrong sample: 17/17; worst decode frame 7 Y/U/V [0, 320, 142]
428+== s422_416x242_10b 416x242 ss=10 d10 17 decode frames Y/U/V 0/5968/4524 total 10492
429+ first divergent: decode frame 0 plane U (row 62, col 192) ours 640 oracle 664
430+ Y: 0 wrong of 1711424 samples over 17 frames
431+ U: 5968 wrong of 855712 (0.70%) rows 22..203 (182/242) cols 175..207 (33/208)
432+ V: 4524 wrong of 855712 (0.53%) rows 22..203 (182/242) cols 177..207 (31/208)
433+ frames with a wrong sample: 17/17; worst decode frame 12 Y/U/V [0, 541, 384]
434+== s422_416x250_10b 416x250 ss=10 d10 17 decode frames Y/U/V 103250/64191/62834 total 230275
435+ first divergent: decode frame 0 plane Y (row 128, col 384) ours 370 oracle 371
436+ Y: 103250 wrong of 1768000 (5.84%) rows 122..249 (128/250) cols 284..415 (132/416)
437+ U: 64191 wrong of 884000 (7.26%) rows 99..249 (151/250) cols 139..207 (69/208)
438+ V: 62834 wrong of 884000 (7.11%) rows 99..249 (151/250) cols 139..207 (69/208)
439+ frames with a wrong sample: 17/17; worst decode frame 5 Y/U/V [7135, 4341, 4268]
440+== s444_352x242_10b 352x242 ss=00 d10 17 decode frames Y/U/V 0/1166/1413 total 2579
441+ first divergent: decode frame 0 plane U (row 224, col 64) ours 209 oracle 216
442+ Y: 0 wrong of 1448128 samples over 17 frames
443+ U: 1166 wrong of 1448128 (0.08%) rows 222..226 (5/242) cols 63..118 (56/352)
444+ V: 1413 wrong of 1448128 (0.10%) rows 222..226 (5/242) cols 63..114 (52/352)
445+ frames with a wrong sample: 17/17; worst decode frame 4 Y/U/V [0, 170, 160]
446+
447+TOTALS sorted
448+s422_416x250_10b 230275
449+s422_320x246 97839
450+s422_322x246 50402
451+s422_326x246 49190
452+s422_322x240 45503
453+Q_odd320x242 24059
454+s422_320x242 14735
455+s422_416x242_10b 10492
456+s422_320x242_10b 9527
457+s422_352x242_10b 8807
458+AB_inter_warp_odd 8071
459+s422_352x250_10b 5662
460+s422_384x240 4063
461+s444_352x242_10b 2579
462+O_odd322x242 1707
463+S_odd326x242_10b 1052
464+s422_326x240 734
465+Counter({'BYTE-EXACT': 77, 'DIVERGES': 17}) cells measured: 94
466+```
467+
468+Reading the classes off this table:
469+
470+* **Class A — chroma-only, both U and V, every frame.** The dominant class:
471+ 13 of the 16 diverging 4:2:2 cells. Y is exactly 0 wrong on all of them, on
472+ every decode frame. The wrong region is a bounded rectangle inside one
473+ chroma plane (typically a few tens of columns by a few tens of rows), it
474+ starts in decode frame 0 (except `s422_384x240`, which starts in frame 1) and
475+ it persists into every subsequent frame because the wrong reference frame is
476+ then predicted from.
477+* **Class B — U-only.** `s422_326x240`: U 734, **V exactly 0**, all 17 frames.
478+ The same decoder, the same geometry class, one chroma plane clean.
479+* **Class C — 4:2:2 that also breaks LUMA.** `s422_416x250_10b`: Y 103250 of
480+ 104000 samples over 17 frames (99.3%), U 64191, V 62834. This is the worst
481+ cell in the census by an order of magnitude and it is not a chroma defect —
482+ the luma plane itself desynchronises. It needs its own lane; nothing in the
483+ 4:2:2 chroma work covers it.
484+* **Class D — not 4:2:2 at all.** `s444_352x242_10b`, 10-bit 4:4:4, chroma
485+ only, wrong region 5 rows x ~55 columns. Pre-existing, bypass-independent.
486+
487+### 4.1 Both order bases, so no number is ambiguous
488+
489+Every diverging cell was re-measured on the **DISPLAY** basis (`dump_yuv`,
490+shown frames only, against `aomdec --rawvideo`) with the same comparator and the
491+same explicit geometry. Decode order and display order are different totals for
492+the same defect; each table cell states its basis.
493+
494+| `O_odd322x242` | 16 | 0/926/686 |
495+| `Q_odd320x242` | 16 | 0/9290/13698 |
496+| `S_odd326x242_10b` | 16 | 0/281/696 |
497+| `s422_320x242` | 16 | 0/6172/8140 |
498+| `s422_320x246` | 16 | 0/36179/56514 |
499+| `s422_322x240` | 16 | 0/22003/21625 |
500+| `s422_322x246` | 16 | 0/23665/24091 |
501+| `s422_326x240` | 16 | 0/718/0 |
502+| `s422_326x246` | 16 | 0/22765/23718 |
503+| `s422_384x240` | 16 | 0/1780/1871 |
504+| `s422_320x242_10b` | 16 | 0/3701/5380 |
505+| `s422_352x242_10b` | 16 | 0/4653/3777 |
506+| `s422_352x250_10b` | 16 | 0/3757/1751 |
507+| `s422_416x242_10b` | 16 | 0/5740/4348 |
508+| `s422_416x250_10b` | 16 | 99011/61486/60106 |
509+| `s444_352x242_10b` | 16 | 0/1112/1362 |
510+
511+Every cell diverges on **both** bases, so no headline here is a hidden-frame
512+artefact. The totals differ by exactly the hidden pictures (43 vs 40 frames on
513+`AB_inter_warp_odd`), which is the labelling check the wave got wrong once.
514+
515+---
516+
517+## 5. What the shipped tree actually does today
518+
519+With the bypass **reverted** (the shipped `cc9f2668` code), measured, not
520+argued:
521+
522+| cell | verdict on the shipped tree |
523+|---|---|
524+| `Q_odd320x242` (4:2:2) | `REFUSED: unsupported: AV1 decode_stream (a chroma format of 4:2:2 (subsampling_x != subsampling_y): …)` |
525+| `s422_416x250_10b` (4:2:2) | same refusal string |
526+| `s444_352x242_10b` (4:4:4) | **decodes, DIVERGES 0 / 1166 / 1413** — identical to the bypassed build |
527+
528+Swept over **all 94 cells** on the shipped build: **50 of 50 4:2:2 cells refuse
529+by name** with that same string, and **all 44 non-4:2:2 cells decode**. The
530+refusal is total and uniform, and it is exactly as unconditional as
531+`stream.rs:1803` reads.
532+
533+So: the refusal is total and uniform over 4:2:2, and it is currently also the
534+only thing standing between a 10-bit 4:4:4 defect and shipped pixels.
535+
536+---
537+
538+## 6. Reproducing any row
539+
540+```
541+# oracle + ours, one cell (4:2:2 needs the patch-run-restore bypass)
542+EC_AV1_FINAL_DUMP=$W/oracle ~/.cache/aom-oracle/build/aomdec --codec=av1 \
543+ -o $W/o.y4m CELL.obu
544+EC_AV1_FINAL_DUMP=$W/ours EC_NOMEMGUARD=1 \
545+ ~/.cache/tgt/<lane>/debug/examples/decode_probe CELL.obu
546+python3 ~/.cache/census422/cmp422.py CELL $W/ours $W/oracle W H SSX SSY DEPTH
547+
548+# the flip control (per plane, per frame)
549+python3 ~/.cache/census422/liveness.py spec.json liveness.json
550+
551+# the sweep
552+DEPTHS=8 WIDTHS="320 322 326 384" HEIGHTS="240 242 246" bash mksweep.sh
553+DEPTHS=10 WIDTHS="320 352 416" HEIGHTS="242 250" bash mksweep.sh
554+```
555+
556+Geometry for `cmp422.py` is read from `$W/o.y4m`'s header, never from a size.
557+The instrument, the sweep cells and every per-frame dump are under
558+`/home/user/.cache/census422/` (`cmp422.py`, `run.py`, `liveness.py`,
559+`display_basis.py`, `mksweep.sh`, `sweep/*.obu`, `work/<cell>/ours.f*`).
560+
561+---
562+
563+## 7. Decision table — numbers and classes only
564+
565+| | 4:2:2 | 4:2:0 control | 4:4:4 control |
566+|---|---|---|---|
567+| corpus cells measured | 32 | 4 | 4 |
568+| corpus byte-exact | 28 | 4 | 4 |
569+| corpus diverging | 4 | 0 | 0 |
570+| fresh sweep cells | 18 | 18 | 18 |
571+| fresh sweep byte-exact | 6 | 18 | 17 |
572+| fresh sweep diverging | 12 | 0 | 1 |
573+| **total measured** | **50** | **22** | **22** |
574+| **byte-exact** | **34** | **22** | **21** |
575+| **diverging** | **16** | **0** | **1** |
576+| **refusing (shipped tree)** | **50** | 0 | 0 |
577+| of the exact, committed-pin-backed | 9 | 0 | 0 |
578+| of the exact, probe-only (no sha in repo) | 25 | 22 | 21 |
579+| of the diverging, probe-only | 16 | 0 | 1 |
580+
581+**Remaining failure classes, with the recipe that reproduces each:**
582+
583+| class | cells | recipe | worst cell |
584+|---|---|---|---|
585+| A chroma-only, U+V, all frames | 13 | `mksweep.sh` 8-bit arm, `DEPTHS=8`, any of the 7 diverging geometries | `Q_odd320x242` 24059 samples |
586+| B U-only, V clean | 1 | `s422_326x240` | 734 samples |
587+| C luma also wrong (10-bit) | 1 | `s422_416x250_10b` | **230275 samples** |
588+| D 10-bit 4:4:4 chroma (not 4:2:2) | 1 | `s444_352x242_10b` | 2579 samples |
589+
590+**Worst remaining divergence in samples:** `s422_416x250_10b`, 230275 wrong
591+samples (Y 103250 / U 64191 / V 62834) over 17 decode frames at 416x250 10-bit.
592+Largest 8-bit: `s422_320x246`, 97839. Smallest: `s422_326x240`, 734.
593+
594+**What a production lift would and would not cover, stated as arithmetic, not
595+as a recommendation:**
596+
597+* Lifting the header refusal would put the 34 exact cells on a shipping path
598+ **today**. 9 of them are committed bytes; the other 25 exist only in
599+ `/home/user/.cache/cells/` and in this lane's sweep directory, so a lift
600+ would ship **no committed pixel gate** for any of them unless the fixtures are
601+ committed first.
602+* A lift would expose **16 diverging cells**, i.e. roughly one cell in three of
603+ everything measured. Class C alone (`s422_416x250_10b`) is a luma-plane
604+ failure at 10-bit.
605+* A lift would **not** fix class D: `s444_352x242_10b` is a 4:4:4 defect that is
606+ already reachable and already diverges with the refusal standing.
607+* The lift's blast radius is not bounded by this census: §8.
608+
609+---
610+
611+## 8. What is NOT measured (read this before quoting any number above)
612+
613+1. **12-bit.** No 12-bit cell was encoded or measured anywhere in this census.
614+ The corpus has 12-bit 4:2:0 fixtures; 4:2:2 12-bit is entirely unmeasured.
615+2. **Superres.** No superres 4:2:2 cell. The corpus's superres fixtures are
616+ 4:4:4. `EC_AV1_FINAL_DUMP` is post-superres, so a superres 4:2:2 cell is
617+ measurable with this exact instrument, but none was built.
618+3. **Film grain, altref-heavy streams, tiles at odd sizes beyond the corpus**,
619+ and any 4:2:2 stream with `order_hint` / film-grain params.
620+4. **Monochrome and 4:4:0**: not codable / not 4:2:2; out of scope by the
621+ existing gate.
622+5. **Encoder-recipe coverage.** One recipe (`--cpu-used 0 --lag-in-frames 25
623+ --auto-alt-ref=1 --enable-global-motion=1 --cq-level=24`), one source
624+ (`testsrc2`), `--limit=16`. The rate-control axis (`--end-usage=q`, other
625+ `--cq-level` values) is **not** swept here, and per
626+ `lanes/av1422ctrigger.report.md` §2e a repeated aomenc flag takes the FIRST
627+ occurrence, so a naive flag sweep silently measures the base arm twice.
628+6. **Frame-size changes within one stream** (mid-stream resolution change): the
629+ comparator handles differing frame sizes, but no such 4:2:2 cell was built,
630+ so that path is untested here.
631+7. **The 23 probe-only corpus cells and all 54 sweep cells are pinned by no sha
632+ in this repository.** The sweep cells are reproducible from §6; the probe
633+ corpus is not reproducible from this repo at all.
634+8. **Which writer produces the divergence.** This census measures the *extent*
635+ and the *class* of each failure. It attributes none of them to a source
636+ line. `lanes/av1422ctrigger.report.md` §4/§5 names a candidate site for
637+ class A (`sub8_leaf_chroma422`'s skip arm / the intra edge-availability
638+ gate) and REFUTES it as the writer; that attribution is not re-litigated
639+ here.
640+9. **Nothing was fixed.** Every failure above is a report line, not a work
641+ item.
642+
643+---
644+
645+## 9. Regression
646+
647+On the clean tree (bypass reverted), worktree `lane-av1422census`:
648+
649+```
650+cargo test -p ec-av1 --lib -- 422 444 420 lossless warp intra \
651+ --skip bitrate_target_lands_within_5_percent_over_48_frames
652+```
653+
654+```
655+test result: ok. 181 passed; 0 failed; 2 ignored; 0 measured; 619 filtered out; finished in 290.86s
656+```
657+
658+Baseline for this lane. No source change is proposed, so there is no "after".