forge
Explore
Log in

Don't you dare go Hollow

wip(av1): txw lane snapshot at the turn cap (orchestrator)

Browse files at this commit

dab7a9c78592465b0691d0a7e3b0e6c1bdb129a2Ahmet Kaan GümüşParent: 1f7f6f0
crates/ec-av1/src/speed.rsmodified+11 -3
@@ -515,10 +515,18 @@ pub(crate) const TX_TYPE_SEARCH_INTER: [bool; 11] = [
515515 /// `encode::wide_tx_set`: whether a frame codes `reduced_tx_set = 0`, the
516516 /// wider `tx_type` alphabets (intra 8x8/4x4 seven types, inter 16x16 twelve,
517517 /// inter 8x8/4x4 sixteen) instead of the reduced sets every stream this
518-/// encoder wrote before lane-txi carries. OFF at every preset until the gate
519-/// says otherwise; `EC_AV1_TXSET_WIDE` overrides.
518+/// encoder wrote before lane-txi carries. ON at preset 0, SCREEN CONTENT ONLY
519+/// like both halves of the type search itself (`encode::wide_tx_set` returns
520+/// the screen flag), so a non-screen frame codes the same
521+/// `reduced_tx_set = 1` bit and the same bytes as before.
522+/// MEASURED at preset 0 (lane-txw, 12-frame `bd_rate_screen_native`, screen
523+/// row): +19.8/-30.5 -> +14.8/-32.9 -- five BD points against libaom and 2.4
524+/// against rav1e, on 2.8% `V_DCT` + 7.4% `H_DCT` of the row's intra units,
525+/// the two types only the seven-type `TX_SET_INTRA_1` can name. It costs
526+/// wall: 92.8s -> 123.3s for the row. Presets 1..6 carry the type search but
527+/// are UNMEASURED here, so they stay off. `EC_AV1_TXSET_WIDE` overrides.
520528 pub(crate) const WIDE_TX_SET: [bool; 11] = [
521- false, false, false, false, false, false, false, false, false, false, false,
529+ true, false, false, false, false, false, false, false, false, false, false,
522530 ];
523531
524532 /// `filter_search`: whether the deblock ladder's +-1/+-2 refinement stage runs.
lanes/txw.report.mdmodified+43 -2
@@ -82,5 +82,46 @@ bytes, and both decoders (ours and ffmpeg) read every frame sample-exact.
8282 `write_block_planes` codes chroma as `DCT_DCT` whatever luma chose --
8383 unblocked by threading the frame bit into the encoder's `FrameCtx` and
8484 giving the writer the inherited chroma type.
85-* `deferred: the BD arms for shipping `WIDE_TX_SET` at preset 0 -- see the
86- gate section.
85+## Gate and decision
86+
87+12-frame `bd_rate_screen_native`, SCREEN row (`EC_AV1_NATIVE_SCREEN=1`),
88+preset 0, control vs `EC_AV1_TXSET_WIDE=screen`:
89+
90+| arm | ours (4 points) | BD vs libaom | BD vs rav1e | wall |
91+|---|---|---|---|---|
92+| control | 45.50/36806, 48.20/45672, 50.78/56996, 53.14/71310 | +19.8% | -30.5% | 92.8s |
93+| wide | 45.38/35791, 48.19/43938, 50.88/55290, 53.24/68250 | +14.8% | -32.9% | 123.3s |
94+
95+The row's intra census goes `IDTX 7.5% / DCT_DCT 80.1% / ADST_ADST 3.3% /
96+ADST_DCT 5.3% / DCT_ADST 3.8%` to `IDTX 4.1% / DCT_DCT 78.0% / ADST_ADST
97+2.4% / ADST_DCT 3.0% / DCT_ADST 2.3% / V_DCT 2.8% / H_DCT 7.4%`: the win is
98+the two types that only exist in the wide set.
99+
100+FILMS: no arm was run and none is needed to state the keep rule's second
101+half. `encode::wide_tx_set` takes the preset value through the SCREEN gate
102+(`InterTxSearch::Screen` -> the frame's own screen flag), so a non-screen
103+frame writes the same `reduced_tx_set = 1` header bit and takes the same
104+code path as before the lane -- the bit alone never reaches a film frame.
105+The byte pins (8562 / 33357) are unchanged with the lever ON, which is the
106+in-suite instance of that statement.
107+
108+DECISION: `speed::WIDE_TX_SET[0] = true` (preset 0 only). Presets 1..6 carry
109+the type search but were not measured with the wider alphabets, so they stay
110+off; the wall cost at preset 0 is +33% on this row.
111+
112+## Invariants
113+
114+* full `ec-av1` lib suite: 570 passed / 0 failed / 47 ignored (the charter
115+ expected 569 + the witness; the witness KEEPS an `#[ignore]` -- it sets
116+ process-global levers, like `every_speed_preset` -- so the ignored count
117+ is unchanged).
118+* `--include-ignored thread_count`: 2 passed. `--ignored
119+ every_speed_preset`: 1 passed. Byte pins: 1 passed, 8562 / 33357 unmoved.
120+ `predicted_coeff_bits_track_the_tile_the_writer_wrote` and the facade
121+ identity are inside the suite run.
122+* `timeout 900 cargo check --workspace --all-targets -j4`: 0 errors, 0
123+ ec-av1 warnings (the 21 `ec-opus` + 1 `ec-vorbis` warnings pre-date the
124+ lane).
125+* `EC_COMP_MISMATCH` is a STALE charter item: the flag exists in no source
126+ file in this repo any more (`grep -rn COMP_MISMATCH crates/` matches only
127+ older lane reports).