diff --git a/lanes/txset2.report.md b/lanes/txset2.report.md index e448a757..5753e756 100644 --- a/lanes/txset2.report.md +++ b/lanes/txset2.report.md @@ -86,3 +86,64 @@ Two readings, both decisions: distinct types (set13 symbols 3..11 at 1.5-14% each). Our own stream codes `set3/1` and `set6/1` only, 100% `DCT_DCT` in inter frames -- the gap step 2 is aimed at. + +### Step 1, second round: `le16` (the census's own prune) and the screen gate + +| clip | control | `le16` (16x16 and below) | screen-gated (SHIPPED) | +|---|---|---|---| +| bars 1080p | -1.0% / -16.8% | +22.9% / +3.1% | -1.0% / -16.8% (byte-identical) | +| bars 2160p | +9.4% / -12.7% | +31.6% / +4.0% | +9.4% / -12.7% (byte-identical) | +| film A | +21.7% / -4.4% | +21.6% / -4.5% | +21.7% / -4.4% (byte-identical) | +| film B | +26.9% / -0.6% | +27.4% / -0.1% | +26.9% / -0.6% (byte-identical) | +| screen capture | +20.8% / -30.1% | +19.9% / -30.4% | **+20.1% / -30.4%** | + +`le16` does NOT recover the bars rows (+22.9/+31.6 against the unconditional +arm's +23.1/+31.2), so the size restriction the libaom census suggested is +refuted as a fix: the damage is in the 16x16-and-below inter units, not the +32x32 ones. It also drifts film B further up (+27.4/-0.1). + +DECISION: ship SCREEN-GATED, the same shape the intra half of lane-txset +ships behind. The four non-screen rows land on the control's own byte counts +to the digit (194497/299067/419042/567789, 205409/321883/435765/564573, +64392/102508/170169/413430, 27442/50374/105485/296813 -- the clips classify +0 screen frames of 4, the capture 48 of 48), so nothing outside screen +content moves, pins included. The capture is 0.7 down against libaom and 0.3 +against rav1e, at no wall cost (112.2s -> 109.4s, inside the noise). + +Levers as shipped: `speed::TX_TYPE_SEARCH_INTER` true at presets 0-6 (the row +the intra search carries), `inter_tx_type_search()` defaulting to +`Screen` on top of it. `EC_AV1_TXSET_INTER=1` is the unconditional arm, +`le16` the pruned one, `0` off. + +## Step 2 -- `reduced_tx_set = 0` and the 13/17 alphabets: NOT ATTEMPTED, scoped + +`deferred: reduced_tx_set = 0 (sets 13/17, and the 7-symbol intra set at +8x8/4x4) -- not started; the two gate slots and the budget went to step 1's +three arms. What it needs, from this lane's reading:` + +* The DECODER half is complete and needs nothing: `decode::txbset_for` / + `txbset_for_inter` already pick `Luma{8,4}Set1`, `Luma{16,8,4}InterSet1`, + `LumaRect16x8Set1`, `LumaRect{4x8,16x4}Set1`, `LumaRect8x4InterSet1` off the + frame's own bit, and `decode::tx_type_symbol` answers for the 7/12/16-symbol + alphabets. Note the spec shape the charter's table simplifies: intra 16x16 + stays the FIVE-type `TX_SET_INTRA_2` even with the bit off (there is no + `Luma16Set1` and none is needed), only intra 8x8/4x4 widen to seven; inter + 32x32 stays the two-type `DCT_IDTX`, inter 16x16 becomes the 12-symbol set + and inter 8x8/4x4 ALL16. +* The WRITER half is the cross-cutting part (class `tx-class-cross-cutting`): + the frame-header bit (`encode.rs:1660`, `:1760`) plus EVERY luma `TxbSet` + the writer and the pricer pick, which is `tile.rs` 2844, 4087, 4231-4238 + (`write_luma_tus`), 4611-4616, 6078, 7004/7006, 7217/7219 and `encode.rs` + `code_tx_depth` / `commit_inter_luma` / `inter_luma_set` / the trial set + arguments. A site that misses the bit codes the right value against the + wrong CDF -- the `wrong-alphabet-same-value` class -- so the bit belongs in + one accessor both sides read, not in nine `match` arms. +* The gate shape this lane measured says what to expect: a wider set is worth + BD only where the reference chain is short or intra-heavy. Both halves of + the search now measured (intra 5-type, inter 2-type) win on the capture and + lose on film, so a 13/17 lane should be armed screen-gated from the start + and spend its slots on the FILM question separately (the rate term, class + `rd-rate-term-calibration`, is the suspect: at equal bytes the bars rows + lose 2 dB of PSNR, which is a pricer that under-charges the cheap type, not + a decoder or kernel defect -- the typed round trip at 32 is inside its + bound).