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