lane-av1422warp: the mi(64,24) partition reads PAIR -- the bsize entering them does not
Browse files at this commit3a293e4e3e5e3de640f0b224a7a0587435fd7207Parent: a3d0b2b1 changed file +49 -0
- lanes/av1422warp.report.md +49 -0
lanes/av1422warp.report.mdmodified+49 -0
| @@ -392,6 +392,55 @@ tx_size lookup (the oracle's `get_tx_size_context` for that block is | ||
| 392 | 392 | printable and ours computes the same `above + left` form as everywhere |
| 393 | 393 | else). |
| 394 | 394 | |
| 395 | +### Round 8 — the partition reads PAIR; the block size entering them does not | |
| 396 | + | |
| 397 | +Rungs added and reverted on both sides (ours `EC_TRACE`, the oracle a `PARTB` | |
| 398 | +print in `ec_read_partition_impl` with `has_rows`/`has_cols`/`ctx`/bit | |
| 399 | +position/value; `aomdec` rebuilt, `grep -c PARTB` = 0). | |
| 400 | + | |
| 401 | +Bottom-edge truncation is **ruled out**: libaom recomputes | |
| 402 | +`has_rows = (mi_row + hbs) < mi_rows` with the CURRENT bsize's `hbs` | |
| 403 | +(`decodeframe.c:1292`), and so does ours, per level — both go | |
| 404 | +`has_rows=0` at the SB and the 64 level and `has_rows=1` from the 64x32 | |
| 405 | +level down. The edge arithmetic agrees at every level of SB row 64. | |
| 406 | + | |
| 407 | +**The partition reads themselves are identical.** Bit positions carry the | |
| 408 | +same constant −14 right through, and the values agree: | |
| 409 | + | |
| 410 | +``` | |
| 411 | + oracle ours | |
| 412 | +mi=64,16 bsize=9 ctx=8 bitpos=92247 value=1 92261 value=1 | |
| 413 | +mi=64,24 bsize=9 ctx=10 bitpos=92321 value=0 92335 value=0 | |
| 414 | +mi=64,32 bsize=9 ctx=9 bitpos=92356 value=3 93518 value=2 <- DIVERGED | |
| 415 | +``` | |
| 416 | + | |
| 417 | +At mi(64,32) the oracle is at bit 92356 and we are at 93518 — **1162 bits | |
| 418 | +later**. The gap opens in the block that FOLLOWS mi(64,24): the oracle | |
| 419 | +spends 33 bits there (92323 -> 92356) and we spend ~1183. | |
| 420 | + | |
| 421 | +**So the named divergence is the BLOCK SIZE entering the partition | |
| 422 | +read, not the partition symbol.** The oracle reads the partition for a | |
| 423 | +`BLOCK_64X32` (its enum 9) and lands `PARTITION_NONE` on a 64x32 leaf, | |
| 424 | +coded as one 32x32 luma TU plus 16x32 chroma (TU 2428). We read a | |
| 425 | +partition at the same bit position with the same value, and land on a | |
| 426 | +32x32 SQUARE — the `EC_IMODE ... fn=sq side=32` of round 7, coded as 8x8 | |
| 427 | +leaves. Same position, same symbol, different bsize in, different block | |
| 428 | +out: the bsize is decided one or more levels ABOVE mi(64,24), in the | |
| 429 | +HORZ/SPLIT walk that produced the child. | |
| 430 | + | |
| 431 | +**What is left to do, and why it is not another step here.** Tracing the | |
| 432 | +bsize lineage from the SB root down to mi(64,24) on both sides — the | |
| 433 | +`PARTB bsize=` field at each level of SB row 64, which the oracle's rung | |
| 434 | +prints and ours does not — is a further instrumentation round, not a | |
| 435 | +continuation of this one. The oracle's own trace already shows the shape | |
| 436 | +to chase (`mi=64,0 bsize=15 -> bsize=12 -> mi=64,16 bsize=12 -> bsize=9` | |
| 437 | +with `has_rows` flipping 0 -> 1 at the 64x32 level), and the question is | |
| 438 | +which of those levels our decoder resolves to a different bsize. | |
| 439 | + | |
| 440 | +**Scan table, still open.** Unchanged and not yet re-checked: it cannot | |
| 441 | +be re-checked until the partition tree is right, since the tiling it was | |
| 442 | +observed under is decided by the same walk. | |
| 443 | + | |
| 395 | 444 | **Why this round stops here rather than continuing.** The partition rungs |
| 396 | 445 | this lane has — ours `EC_TRACE_PART`, the oracle's `AOMMB` — do not fire |
| 397 | 446 | for these blocks at all, and the bit-position rungs used in rounds 5-6 are |