From 8a5213be74eb4a002c14987869642254f76a500c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 22:04:33 +0300 Subject: [PATCH] docs(av1): lane-t900 r6 handoff -- suite lines, the pinned 128-SB witness, and the frame-14 chroma transform-basis residue --- lanes/t900-r6.handoff.md | 87 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 lanes/t900-r6.handoff.md diff --git a/lanes/t900-r6.handoff.md b/lanes/t900-r6.handoff.md new file mode 100644 index 00000000..8c3fd979 --- /dev/null +++ b/lanes/t900-r6.handoff.md @@ -0,0 +1,87 @@ +# lane-t900 r6 handoff -- witness pinned + gated, 16x4-in-inter opt-in lifted, frame-14 residue localised to ONE chroma TU + +Branch `lane-t900`, tip `3b4ca61e` (code+gate commit `14e0b20b`, report +`3b4ca61e`). Worktree `edith_codecs-t900`. main `243f125e` already merged. +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-t900` (suites) and +`$HOME/.cache/cargo-target-t900-b` (release `decode_probe`, and the fast +single-gate runs) -- never share one dir between two live builders. + +## Suite + +* r5 tip `1bd6f815`: **425 passed, 0 failed, 38 ignored** (`$HOME/.cache/t900-suite-r6.log`). +* r6 tip `14e0b20b`: **426 passed, 0 failed, 38 ignored** (`$HOME/.cache/t900-suite-r6b.log`). +* Siblings (`interintra hidden_arf rect64_corner_tus sub8 1to4 obmc + refusal_inventory gate_coverage`): 39 passed, 0 failed, 4 ignored. + +## Pinned this round + +`crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu`, 166303 bytes, sha256 +`1191ce80e2c6c5855eaf7a8f5e8cda2cdf809f467b0dbc5e26df96dfa6b2c8bd`. +Reproduce: `ffmpeg -ss 900 -t 2 -c:v copy -an -f obu` of the 10-bit 1920x792 +128-SB source, then `census4/trunc.py 19 ` (19 frame-carrying OBUs = +14 decode-order frames, 12 shown). Two independent cuts hash identically. +Gate `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact` +asserts 8 counters > 0 (numbers in the report table) and compares all 12 shown +frames on all planes vs ffmpeg. + +`EC_INTRA16X4_DECODE` is GONE (refusal narrowed back to "no chroma-pair +record"). `EC_INTRA128_IN_INTER` STAYS -- 0 hits on the witness. + +## The open defect (STEP 2), localised much further than r5 had it + +Stream `~/.cache/t900-tmp/t900_h.obu` (16 decode-order frames, the witness plus +2). Frames 0..13 exact; frame 14 = 32 bytes, frame 15 = 28 bytes. + +PREFILTER (`bash pf.sh h2 ~/.cache/t900-tmp/t900_h.obu`, then `python3 px.py +pf_h2 14`): **Y 0, V 0, U 14 pixels**, chroma bbox x 472..475 y 284..287 = ONE +aligned 4x4 chroma TU. The block is the 8x8 INTER COMPOUND leaf at luma +(944,568) = mi(142,236) (`EC_TRACE_MODE`: `cmode=24 ref0=1 ref1=5`). + +r5's premise is DISPROVED: it is not intra-in-inter and not CfL -- `EC_PRED=1` +on the same run emits NO intra prediction at that chroma position (nearest is +x=472 y=288). + +The 4x4 U difference (aomdec minus ours): + + [ +4 +5 +6 +8 ] + [ -1 0 +3 +6 ] + [ -5 -3 0 +5 ] + [ -7 -5 -1 +4 ] + +i.e. one or two low-order AC basis functions, V exact and no later block +differing => the msac stream is in sync and only the inverse transform's BASIS +is wrong. Class `tx-type-set-membership` (chroma of an inter block inherits the +colocated luma `tx_type`; a wrong pick inside the same TX_CLASS leaves the +range identical). `reduce_inherited_chroma_tx_type` (decode.rs:14794) and +`read_inter_luma8`'s top-left rule (decode.rs:14700) were read and look correct +for this shape, so the decisive step is the ORACLE, not another code read: + + ~/.cache/aom-oracle/src/av1/decoder/decodetxb.c:182 + fprintf(stderr, "EC_COEFF_STEP tag=tx_type plane=%d rng=%u\n", plane, r->ec.rng); + +prints no VALUE. Add `tx_type` (and the eob) to that line, rebuild aomdec +(`scripts/build-aom-oracle.sh` -- incremental), and diff the one line for this +TU against our `EC_COEFF_STEP tag=tx_type` (decode.rs:4120/4322, which also +prints no value -- add it there too). If they agree, the next suspect is the +dequant of that unit (U-only means `plane_q_delta(1)` vs `(2)`), NOT the +prediction. + +## Film frontier (2 s cuts, decode-order vs aomdec, this tip) + +| cut | frames | first differing | bad | stop | +|---|---|---|---|---| +| t900 | 267/267 | 14 | 234 | -- | +| t5400 | 275/275 | 1 | 273 | -- | +| t6300 | 125/125 | 1 | 124 | -- | +| t8100 | 96/32 | 1 | 31 | "a Golomb tail longer than this decoder reads" | + +t5400 / t6300 / t8100 frame 1 are three separate untouched defects. The 10 s +cut `~/.cache/reelc-0-10s.obu` now stops (no env switches) at "an intra-coded +128x64 block on the inter block path". + +## Artifacts + +`~/.cache/t900-tmp/`: `t900_w.obu` (the pinned witness), `t900_h.obu` (16 +frames), `cmp.sh` (decode-order compare), `pf.sh` (prefilter compare), `px.py` +(per-plane diff + bbox + delta histogram), `sb.py`, `reg.py`, `lad.py` +(EC_MODE-only cross-decoder ladder), `pf_h2/` (frame 14/15 prefilter dumps).