av1h5: gate asserts exact structure, not a floor on wrong output
Browse files at this commit032da646d5b69f592ec5fa598bd6fca897c24588Parent: 339d1211 changed file +37 -7
- lanes/av1h5.report.md +37 -7
lanes/av1h5.report.mdmodified+37 -7
| @@ -183,13 +183,29 @@ exactly on all 1536 chroma units. | |||
| 183 | sha256 `4cadce41e1f89675…`) decodes **byte-exact** — the 128 root is still | 183 | sha256 `4cadce41e1f89675…`) decodes **byte-exact** — the 128 root is still |
| 184 | necessary, and the fix does not touch it. | 184 | necessary, and the fix does not touch it. |
| 185 | * **Gate**: `a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major`, | 185 | * **Gate**: `a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major`, |
| 186 | - pin `fixtures/ll444_128root_lossless.obu` (63429 B, sha256 `bbffb979…`, | 186 | + pins `fixtures/ll444_128root_lossless.obu` (63429 B, sha256 `bbffb979…`, |
| 187 | - fnv1a64 `0xf07d47fcfd512658`). Non-vacuous: it asserts `mu_chunk_order_hits` | 187 | + fnv1a64 `0xf07d47fcfd512658`) and |
| 188 | - rose, and pins the first-difference position at `>= 90272`. | 188 | + `fixtures/ll444_minp64_128root_control.obu` (61494 B, sha256 |
| 189 | + `4cadce41e1f89675…`, fnv1a64 `0xf6f5a3cbefc7eb10`). | ||
| 190 | + Three assertions, **all exact, none a floor on wrong output** (an earlier | ||
| 191 | + draft asserted `first-diff >= 90272`; that shape asserts our output is | ||
| 192 | + still wrong and would fail the day the residual lands — it was cut): | ||
| 193 | + | ||
| 194 | + | # | assertion | value | why it is discriminating | | ||
| 195 | + |---|---|---|---| | ||
| 196 | + | 1 | `mu_chunk_order_hits()` rose by | **5** | counts blocks where the sort **permuted** the list, not where it ran — a no-op ordering reads 0, so a gate cannot be armed by merely executing the arm | | ||
| 197 | + | 2 | `mu_chunk_walks()` rose by | **20** | 4 mu chunks × 5 inter frames — libaom's own per-chunk count; the 16x redundancy would read 320 | | ||
| 198 | + | 3 | `mu_chunk_walk_units()` rose by | **7680** | 1536 chroma TX_4X4 units per inter frame × 5 — the oracle's exact count (pre-fix: 122880) | | ||
| 199 | + | 4 | control arm vs `aomdec --rawvideo` | **byte-exact** | straight exactness on the `--max-partition-size=64` stream | | ||
| 200 | + | ||
| 201 | + Assertions 2 and 3 are the structural parity this fix established, read | ||
| 202 | + straight off libaom's walk, so they stay true when the stream becomes | ||
| 203 | + byte-exact. | ||
| 189 | * **Mutation (red-before)**: rewriting the chunk key back to a block raster | 204 | * **Mutation (red-before)**: rewriting the chunk key back to a block raster |
| 190 | - (`(col/16)*1000 + c`) turns the gate **RED**; reverting turns it green. | 205 | + (`(col/16)*1000 + c`) turns the gate **RED** at assertion 1; reverting turns |
| 206 | + it green. Both runs executed on the committed tree. | ||
| 191 | 207 | ||
| 192 | -### 9f. NOT fixed — the residual, and what it is not | 208 | +### 9f. OPEN — the residual, handed on (not fixed by this lane) |
| 193 | 209 | ||
| 194 | **The fixture is still not byte-exact.** One defect remains, and it is a | 210 | **The fixture is still not byte-exact.** One defect remains, and it is a |
| 195 | *different* one, below the chunk-order bug this lane fixed: | 211 | *different* one, below the chunk-order bug this lane fixed: |
| @@ -205,8 +221,22 @@ exactly on all 1536 chroma units. | |||
| 205 | from an identical CDF row at 2572 — the fork is at the coefficient decode, | 221 | from an identical CDF row at 2572 — the fork is at the coefficient decode, |
| 206 | not at context selection. | 222 | not at context selection. |
| 207 | 223 | ||
| 208 | -That is the next thing to chase, and it needs its own EC_SYMR pass anchored | 224 | +**Type/extent is EXCLUDED** (Agent04-2, on my pinned bytes, both rungs, no |
| 209 | -at unit 2572. §7's plan is superseded: **the band is fine, the order was not.** | 225 | +re-encode): every unit either side published agrees at TX_4X4 / DCT_DCT, no |
| 226 | +exception anywhere in the stream. So there is no inherited-`tx_type` or | ||
| 227 | +chroma-extent term in this defect — it is a coefficient READ / consumption | ||
| 228 | +difference. Their caveat, which I accept: the oracle's `idct.c` rung | ||
| 229 | +early-returns on `eob == 0`, so it is structurally blind at unit 2572 itself | ||
| 230 | +(the oracle publishes it as cul_level 0). The strong direction holds — no | ||
| 231 | +type or extent disagrees anywhere — but 2572 specifically needs a rung that | ||
| 232 | +does not early-return (`EC_COEFF_STEP`, or the oracle's `decodetxb.c` | ||
| 233 | +sequence), not `idct.c`. | ||
| 234 | + | ||
| 235 | +Next step for whoever takes it: re-anchor `EC_SYMR` at unit 2572, and check | ||
| 236 | +the coefficient-read side. Handed to `agent://Agent24-2` with the byte and the | ||
| 237 | +fact that the chroma unit COUNTS now match the oracle exactly, so the | ||
| 238 | +residual is a per-unit VALUE, not an ordering one. §7's plan is superseded: | ||
| 239 | +**the band is fine, the order was the bug, and this residual is neither.** | ||
| 210 | 240 | ||
| 211 | ### 9g. Interaction with H1 | 241 | ### 9g. Interaction with H1 |
| 212 | 242 | ||