forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-av1/src/speed.rsClear filter

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-09-13

perf(av1): the ARFMODE intra arm cuts the top ARF's whole-32 candidates too -- the probe falsified the leaf-only scope (film A arm 1 byte-identical to the control at q150 AND q90: the ARF's 15% intra area lives in search_inter_block's whole-32 intra loop, not in the leaves), so the scene-cut hatch as chartered was a hatch nothing else was using; per-block engagement counter moved to the whole-32 site, docs updated, witness and pins re-greenAhmet Kaan Gümüş · 7ea5133
perf(av1): the ARFMODE intra arm cuts the top ARF's whole-32 candidates too -- the probe falsified the leaf-only scope (film A arm 1 byte-identical to the control at q150 AND q90: the ARF's 15% intra area lives in search_inter_block's whole-32 intra loop, not in the leaves), so the scene-cut hatch as chartered was a hatch nothing else was using; per-block engagement counter moved to the whole-32 site, docs updated, witness and pins re-green
perf(av1): the top ARF's leaf offer set behind EC_AV1_ARFMODE -- 1 no intra candidate at the 16x16/8x8 leaves (the intra trial's commit was always overwritten by the inter winner's, so the planes never change), 2 no RD-optional 8x8 split (16x16 is the leaf floor; the spec-forced 8x8s at straddling 16x16s are a different site), 4 no compound candidates at the leaves; the 32x32 whole keeps its full set as the scene-cut hatch; default 0 is bit-exact (pins 8291/33227 hold at the default and EC_AV1_SPEED=6); witness proves per-arm engagement counters, stream movement on a level-ramp fixture (middle group's ARF sits between its two anchors), coding-order stability and sample-exact decode through decode_stream AND ffmpegAhmet Kaan Gümüş · 5e19f1a
perf(av1): the top ARF's leaf offer set behind EC_AV1_ARFMODE -- 1 no intra candidate at the 16x16/8x8 leaves (the intra trial's commit was always overwritten by the inter winner's, so the planes never change), 2 no RD-optional 8x8 split (16x16 is the leaf floor; the spec-forced 8x8s at straddling 16x16s are a different site), 4 no compound candidates at the leaves; the 32x32 whole keeps its full set as the scene-cut hatch; default 0 is bit-exact (pins 8291/33227 hold at the default and EC_AV1_SPEED=6); witness proves per-arm engagement counters, stream movement on a level-ramp fixture (middle group's ARF sits between its two anchors), coding-order stability and sample-exact decode through decode_stream AND ffmpeg

2026-09-09

feat(av1): the top ARF tpl window ships 11 pictures at preset 0Ahmet Kaan Gümüş · 3471289
feat(av1): the top ARF tpl window ships 11 pictures at preset 0

The split's budget was swept apart from TPL_D. WIN=11 at half=2 is film B
+70.4/-2.2 against the split arm's +71.0/-1.8, film A flat; 11 saturates
the one-group lookahead. Presets 3..=6 keep depth-1. Report closes the
lane Claude died in.
feat(av1): the top ARF tpl split ships at 2 past neighbours, and its budget is its own knobAhmet Kaan Gümüş · 2f91c3b
feat(av1): the top ARF tpl split ships at 2 past neighbours, and its budget is its own knob

The mode 2 window's split was unswept. On the 48-picture long-GOP gate at
tpl depth 8 (budget 7) the split brackets at 2 past + 5 future: film A
+20.9/-9.0 and film B +71.0/-1.8 against the old 3-past default's
+21.1/-8.9 and +71.5/-1.5, with 1 and 5 both worse.

The winner takes its whole future side from the budget's edge, so
TPL_FUT_WIN gives that budget a knob of its own -- EC_AV1_TPL_D moves
every frame's lambda pass, not the ARF window's.
feat(av1): the top ARF's temporal lambda window ships as 3 past then 4 futureAhmet Kaan Gümüş · 3dc2378
feat(av1): the top ARF's temporal lambda window ships as 3 past then 4 future

Long-GOP gate, both films, against the past window: film B +72.1/-1.2 ->
+71.6/-1.5 and film A +21.3/-8.8 -> +21.2/-8.8, wall +3.2%/+0.2%. A
future-only window (mode 1 and mode 3) is worse on every column.
feat(av1): the top ARF can take its temporal lambda window out of the buffered next groupAhmet Kaan Gümüş · c295244
feat(av1): the top ARF can take its temporal lambda window out of the buffered next group

The top ARF is its group's LAST picture, so the window code_group hands it
is the group's own display-PAST sources reversed -- time-reversed against
every other frame's, where libaom's tpl at an ARF looks forward. speed::TPL_FUT
(EC_AV1_TPL_FUT=<n>) picks the window: 0 the shipped past one, 1 future-only,
2 past then future, 3 the whole next group. Default off pending the long-GOP
gate; the witness codes at q=60 and holds 1/7/8/9/17 pictures at gop 32 and 8.

2026-09-08

feat(av1): the ARF temporal filter's strength swept on the deciding gate ships at 2Ahmet Kaan Gümüş · 0717f83
feat(av1): the ARF temporal filter's strength swept on the deciding gate ships at 2

Long-GOP gate (48 pictures, BD vs libaom cpu-6 / rav1e s6): strength 1
+22.6/-8.1 and +81.6/+4.8, 2 +22.2/-8.2 and +78.6/+2.7, 3 (was)
+22.7/-7.9 and +79.0/+2.7, 5 +23.9/-7.4 and +83.6/+5.1. Single-peaked,
bracketed, down on all four columns against the shipped 3. Guard rows
(12 pictures) move at most +0.2/+0.1 and the screen row is
byte-identical. Byte pins re-taken: 8218 -> 8307 at q=150, 33017 bytes
with a different hash at q=60.
feat(av1): two knobs for the ARF temporal filter -- window width and a mid-ARF strengthAhmet Kaan Gümüş · ea60760
feat(av1): two knobs for the ARF temporal filter -- window width and a mid-ARF strength

The filter's neighbour count was a literal 2 and it ran on the top ARF
only. Both are now speed-table entries with env overrides
(EC_AV1_ARF_TF_WIN, EC_AV1_ARF_TF_MID), defaults unchanged (2 / off), so
the sweep arms are env-only.
fix(av1): the ARF temporal filter stops at the rate loop's quantizer floorAhmet Kaan Gümüş · cbb5336
fix(av1): the ARF temporal filter stops at the rate loop's quantizer floor

speed::ARF_TF_QMIN = 16: below that qindex the anchor's source is coded
unfiltered, which is libaom's own rule for arnr and is what
bitrate_target_lands_within_5_percent_over_48_frames named -- its 2 Mbps
pyramid arm codes IDENTICAL 22358-byte anchors to its 1536 kbps arm, i.e.
base_q_idx + arf_q_offset has clamped to 1 and the loop cannot spend the
target, so that arm sits at -4.8% of target with the filter off entirely
(measured) and a cheaper anchor pushed it to -5.1%, outside the test's bound.
The threshold restores the control's own -4.8% and leaves both BD gates
untouched: the finest ladder point codes its top ARF at qindex 28, and both
byte pins are unchanged by it.

Suite green: 342 + 201 + 42 passed, 0 failed.
feat(av1): the top ARF is coded from a temporally filtered sourceAhmet Kaan Gümüş · 7b95799
feat(av1): the top ARF is coded from a temporally filtered source

The 48-picture film B census names the top ARF as the overspent level (55%
of the stream, 6992 B a frame against rav1e's 3872 at a FINER quantizer) and
splits its per-frame gap 61% residual / 28% mode+partition / 9% mv. The new
arf_pred_census instrument then separates the two candidate causes of that
residual: the anchor's lag is worth 7.1% of its prediction SAD (film B 1.199
per pixel at lag 8 vs 1.114 at lag 4) while a motion-compensated average of
the group's own display neighbours removes 11.7% of it -- the residual is
mostly source grain, which no search at any lag can predict.

speed::ARF_TF now defaults to 3.0: the top ARF's source is filtered against
its two buffered display neighbours with weight exp(-mse/strength). Long-GOP
gate, BD vs libaom / rav1e: film A +23.5/-8.0 -> +22.7/-7.9, film B
+85.3/+6.7 -> +79.0/+2.7. Strength is sharply single-peaked (8, 15, 30 all
lose); EC_AV1_ARF_TF=0 restores the old streams.

Pins re-taken -- the hidden frames' pixels move by construction:
8269 -> 8218 at q=150 and 33044 -> 33017 at q=60.
instrument(av1): price the top ARF's prediction and a source temporal filterAhmet Kaan Gümüş · 56d80b6
instrument(av1): price the top ARF's prediction and a source temporal filter

The 48-picture film B census says the top ARF carries 55% of the stream at
6992 B a frame against rav1e's 3872 at a FINER quantizer (118 vs 104), and
61% of that per-frame gap is residual, not syntax. `arf_pred_census`
(--ignored) prices the two candidate causes without an encoder change: the
anchor's lag is worth only 7% of its prediction SAD (film B 1.199 per pixel
at lag 8 against 1.114 at lag 4), while a motion-compensated average of the
display neighbours removes 11.7% of it (film A 5.9%) at 50.1 dB from the
source it replaces.

`encode::arf_temporal_filter` builds that filter and `speed::ARF_TF`
(`EC_AV1_ARF_TF=<strength>`) arms it on the top ARF only; the default is 0,
so no shipped stream moves. The census example also reports per-plane PSNR
now.
feat(av1): the top ARF codes its delta_q at 1.5x the preset's strengthAhmet Kaan Gümüş · 29220f1
feat(av1): the top ARF codes its delta_q at 1.5x the preset's strength

lane-arfq: `speed::DQ_LEVEL_K = [1.5, 1.0, 1.0]` -- at preset 0 the mini-GOP's
own hidden ALTREF now maps the tpl ratio onto its superblock quantizers at
0.375 where the mid level and the leaves keep 0.25.

Long-GOP gate (48 pictures, BD vs libaom / rav1e), control reproduced first:
  film A +24.0/-7.6 -> +23.5/-8.0, film B +85.8/+7.1 -> +85.3/+6.7
i.e. both films down on both columns. 12-frame gate: bars 1080p -3.1/-18.7 ->
-3.2/-18.8, bars 2160p +9.1/-13.3 -> +9.2/-13.3, film A +20.3/-5.0 ->
+20.3/-4.9, film B +24.6/-2.0 -> +24.7/-1.8, screen +14.6/-33.2 unchanged
(a screen frame codes no delta syntax at all).

0.5 buys film A twice as much (+23.0/-8.2) and turns film B back up
(+86.0/+7.3) while costing the 12-frame film B row 0.4; the strength sweep and
the per-level census are in lanes/arfq.report.md.

Byte pins re-taken with a five-line comment: 8252 -> 8269 at q=150 and
33053 -> 33044 at q=60; green at default and at EC_AV1_SPEED=6.
feat(av1): a per-pyramid-level strength for the objective delta_qAhmet Kaan Gümüş · 657e043
feat(av1): a per-pyramid-level strength for the objective delta_q

lane-arfq: the objective per-superblock delta_q shipped one frame-type-blind
strength (`speed::DQ_TPL_K`). The top ARF feeds a whole mini-GOP where a leaf
feeds nothing, so the level is now a parameter: `encode::DqLevel`
(top ARF / mid ARF / leaf) rides on `PyramidFrame`, the caller sets it from
the offset it codes the frame at, and `speed::DQ_LEVEL_K` multiplies the
preset's strength per level. `EC_AV1_DQ_K=<top>:<mid>:<leaf>` sweeps it.

Three levels, not four: the KEY frame codes no delta_q syntax at all (the
lever lives in `encode_inter_frame`), so a strength cannot reach it -- the
key's allocation stays `Pyramid::key_q_offset`'s job.

The default table is flat, so every stream is byte-identical
(`the_encoders_own_streams_are_byte_identical_to_their_pins` green,
unchanged pins). The census line now names the level it prices.

Self-check: encode::tests::the_per_level_delta_q_strength_indexes_the_levels_it_names
feat(av1): preset 0 codes a per-superblock delta_q from libaom's objective tpl mapping at strength 0.25Ahmet Kaan Gümüş · 7680c47
feat(av1): preset 0 codes a per-superblock delta_q from libaom's objective tpl mapping at strength 0.25

Long-GOP (48 pictures) BD vs libaom/rav1e: film A +25.2/-7.2 -> +24.4/-7.5,
film B +86.7/+7.3 -> +86.0/+7.3; the 12-frame gate reads flat and the screen
capture stays byte-identical (no delta syntax on a screen frame). Byte pins
re-taken.
perf(av1): preset 6 keeps the extra-reference NEWMV search and the full coefficient breakoutAhmet Kaan Gümüş · 73765f0
perf(av1): preset 6 keeps the extra-reference NEWMV search and the full coefficient breakout

The ladder was composed off a lever table measured BEFORE RDOQ. Re-priced at
preset 6 on the 12-frame film A row of bd_rate_screen_native, this head, the
two levers it dropped there are the two cheapest BD points in the table:
extra-reference NEWMV buys 2.0 points (+26.6/-0.4 -> +24.4/-2.4) for +15..30%
wall and the coefficient breakout 1.2 points (-> +24.8/-1.6) for +11%, i.e.
0.067 and 0.109 points per 1% wall against a frontier of 0.031..0.041.

Shipped together, preset 6 reads +23.0/-3.2 film A, +30.7/+3.0 film B,
+23.2/-28.5 screen for +27% wall on three serial arms -- and it is now PAST
rav1e speed 6 on film A and on the capture. Presets 4 and 5 take both levers
by bracketing; 0, 3, 8 and 10 are untouched. The module doc carries the whole
re-measured Pareto table, the references at their fast presets and the
per-lever re-price.
feat(av1): reduced_tx_set=0 -- the wider tx_type alphabets, off by defaultAhmet Kaan Gümüş · e6bf936
feat(av1): reduced_tx_set=0 -- the wider tx_type alphabets, off by default

The writer reads the frame's own header bit in ONE place (Cdfs::txb widens
every luma set through TxbSet::wide, transcribed from the decoder's map), the
search names the widened set so its pricer costs the same alphabet, and the
candidate lists gain the seven-type intra set and the shared seven of the
twelve/sixteen-type inter ones. speed::WIDE_TX_SET is false at every preset
(EC_AV1_TXSET_WIDE overrides), and EC_AV1_TXSET=all lifts the intra search's
screen gate for the unconditional arm the gate measures.

2026-09-07

feat(av1): per-superblock delta_q on at presets 5 and 6, gated off screen contentAhmet Kaan Gümüş · e6bd6d8
feat(av1): per-superblock delta_q on at presets 5 and 6, gated off screen content

lane-deltaq measured the whole mapping sweep flat because the tpl lookahead
was one picture; with the window back the map is real. 12-frame
bd_rate_screen_native, BD vs libaom / vs rav1e, off -> on:

  preset 6: film A +27.2/-0.2 -> +26.6/-0.4, film B +35.2/+6.6 -> +34.7/+6.4
  preset 5: film A +26.6/-0.7 -> +25.8/-1.1, film B +33.3/+4.9 -> +32.8/+4.6
  preset 4: film B +29.9/+2.0 -> +30.2/+2.6 -- rejected

The desktop capture was the only row delta_q cost, so the map is gated on
!allow_screen_content_tools, the content gate b64_residual/b64_compound take:
its four q points code the identical byte counts on and off.
feat(av1): the inter transform-type search ships SCREEN-GATED at presets 0-6Ahmet Kaan Gümüş · 63f401a
feat(av1): the inter transform-type search ships SCREEN-GATED at presets 0-6

Unconditional it loses twenty BD points on both synthetic bars rows of the
12-frame gate (and 0.3 on film B) while winning 0.7/0.3 on the capture; the
le16 restriction does not soften the bars loss. Behind the screen content gate
every non-screen frame is byte-identical to the encoder before the lane, pins
included, and the capture keeps its 0.7/0.3.
feat(av1): the inter luma transform-type search (IDTX vs DCT_DCT), off by defaultAhmet Kaan Gümüş · 044aeb2
feat(av1): the inter luma transform-type search (IDTX vs DCT_DCT), off by default

The writer has coded a two-symbol tx_type for every inter luma transform
unit at 32x32 and below since the inter coefficient tables landed, and always
named DCT_DCT. commit_inter_luma now prices both members of TX_SET_INTER_3
for the whole-block residual and for each var-tx split unit, by the same
sse + lambda * bits rule the intra search uses, and the winners reach the
writer through BlockCoeffs::luma_tx_types.

Off at every preset (speed::TX_TYPE_SEARCH_INTER) until the gate says
otherwise; EC_AV1_TXSET_INTER turns it on.
Merge branch 'lane-txset' (cdb209a0): the luma transform-type search (intra 5-type reduced set), screen-gated; forward kernels for all 16 types; the writer had coded one type everywhereAhmet Kaan Gümüş · 5b25319
Merge branch 'lane-txset' (cdb209a0): the luma transform-type search (intra 5-type reduced set), screen-gated; forward kernels for all 16 types; the writer had coded one type everywhere

Screen capture +27.8/-26.0 -> +20.8/-30.1; the film rows lose
unconditionally (local RD on references), so the search is gated on
screen content and the film rows stay byte-identical. Pins unchanged.
perf(av1): the tpl lookahead window comes back at the fast presets -- 8 at 0..2, 4 at 3..6, 1 aboveAhmet Kaan Gümüş · d247015
perf(av1): the tpl lookahead window comes back at the fast presets -- 8 at 0..2, 4 at 3..6, 1 above

Measured per preset on the 12-frame native gate (lane-tplwin, tables in the
TPL_DEPTH doc). Depth 4 is the best arm on every real-content row at preset 3
and buys film B 0.7 BD points at preset 6, for a wall that stays under this
box's noise where depth 8 costs a visible 3-8%. Preset 0 keeps 8: shortening
it there costs film B 0.7 on both columns, so the byte pins do not move.
The delta_q witness' fire count is now gated on the WINDOW rather than on
preset 0, since presets 1..6 have a map again.
feat(av1): search an intra luma transform unit's own tx_typeAhmet Kaan Gümüş · 2fd2ac4
feat(av1): search an intra luma transform unit's own tx_type

The writer coded DCT_DCT for every luma transform unit ever written --
the symbol was a constant -- while the five-type reduced-set alphabet
(TX_SET_INTRA_2: IDTX, DCT_DCT, ADST_ADST, ADST_DCT, DCT_ADST) was
already the CDF it wrote into. The search now offers that set per intra
luma unit, priced through the same RDOQ'd trial path (the tx_type symbol
included, coeff_bits_typed), and the writer names the chosen type through
the decoder's own symbol map (decode::tx_type_symbol, keyed by the CDF's
alphabet width, so the two cannot drift).

The forward transform gains the FLIPADST family as well: a flipped axis
is the plain ADST basis over the mirrored residual, which is what the
decoder's ud_flip/lr_flip undoes. All sixteen types now round trip.
Merge branch 'lane-deltaq' (d5dddb4c): per-superblock delta_qindex from the tpl map, wired and measured, off by default; the encoder's trial decode hard-coded DeltaParamsAhmet Kaan Gümüş · 8ce79c1
Merge branch 'lane-deltaq' (d5dddb4c): per-superblock delta_qindex from the tpl map, wired and measured, off by default; the encoder's trial decode hard-coded DeltaParams

Best arm is within 0.3 of the control on the films and 0.7 worse on
screen (the tpl lambda arm was already neutral, so the same factor
through the quantiser is the same information). decode_inter_frame_tiles_lr
now takes the frame's delta params (stale-header class, instance 10).
Merge branch 'lane-i64' (be1936a8): the key frame's partition search offers a 64x64 intra root, on at every presetAhmet Kaan Gümüş · f82ceec
Merge branch 'lane-i64' (be1936a8): the key frame's partition search offers a 64x64 intra root, on at every preset

12-frame (lane base) film A +34.8/+5.0 -> +33.2/+3.7, film B +47.0/+16.5
-> +42.4/+12.2, screen +32.8/-24.2; long-GOP film A -0.6, film B +21.6
vs rav1e. Offered only on superblock-aligned frames: a doubly-cut corner
superblock desyncs chroma three ways (open). Pins re-taken on the merged
tree.
perf(av1): ship the per-superblock delta_qindex OFF -- the mapping sweep does not payAhmet Kaan Gümüş · 5d826fd
perf(av1): ship the per-superblock delta_qindex OFF -- the mapping sweep does not pay

12-frame native gate against this head's own control (film A +34.8/+5.0,
film B +47.0/+16.5, screen +33.4/-23.8): res 4 K 1.0 is the best arm at
film A +34.7/+5.2, film B +46.7/+16.6, screen +34.1/-23.6 -- neither film
column moves the keep rule's 0.5 and screen loses 0.7 against libaom.
res 8 is worse everywhere; K 1.3 is K 1.0 within noise.

speed::DELTAQ_RES is 4 (= off) at every preset, so every stream is
byte-identical to the pre-lane one and the byte pins stand at 9808/35791.
EC_AV1_DELTAQ=2 switches the syntax on; the witness forces it through a
process-global override under the speed knobs' own exclusive lock.
feat(av1): per-superblock delta_qindex from the tpl mapAhmet Kaan Gümüş · 1c072fa
feat(av1): per-superblock delta_qindex from the tpl map

The tpl map only scaled LAMBDA per superblock, so it could move mode
decisions but never the quantizer where the map says a superblock is
worth more. This codes the spec's own per-superblock syntax instead:
delta_q_present with delta_q_res in the frame header, a delta_qindex
symbol group at the first coded block of every superblock, and the
search quantizing (luma and chroma) at that superblock's own qindex.

The mapping is derived, not fitted: RD lambda goes as the square of the
quantizer step, so a superblock the map gives a lambda factor f wants
the qindex whose ac_q is sqrt(f) times the frame's -- inverted through
the ac_q table itself. EC_AV1_DELTAQ (res log2, 0 = off), _K, _CLAMP.

Also: decode_inter_frame_tiles_lr hard-coded DeltaParams::default(),
the stale-header class its own three parameters above it document, so
the encoder's trial decode desynced at the first superblock.
feat(av1): RDOQ on to preset 6; re-pin the encoder's own streamsAhmet Kaan Gümüş · 4e24be3
feat(av1): RDOQ on to preset 6; re-pin the encoder's own streams

Preset-6 gate says it dominates the ladder (preset 6 with RDOQ beats preset 0
without it on every row and both columns, at less wall), so the lever is on to
6 and withheld from the unmeasured real-time rungs. Pins 9853 -> 8618 at q=150
and 35866 -> 33339 at q=60; EC_AV1_RDOQ=0 restores both.
feat(av1): a key frame's partition search offers a 64x64 intra rootAhmet Kaan Gümüş · f5d8b45
feat(av1): a key frame's partition search offers a 64x64 intra root

The writer has always been able to code a whole superblock as one intra
block (`Superblock::Whole`); nothing produced one, so every key-frame
superblock was split into four 32x32 while libaom and rav1e leave 45-54%
of theirs whole on film.

`code_square` reaches side 64 (`TxbSet::Luma64` + two `TxbSet::Chroma32`,
the coded 32x32 corner as its level grid), the intra edge/prediction
scratch is sized for a 64-wide block, chroma at 32 points is DCT-only
(`EXT_TX_SET_DCTONLY`), and the root is compared against its four
quadrants at one lambda with the inter root's clamped early-out.
`EC_AV1_I64=0` restores the split-only search.
feat(av1): rate-distortion optimised quantisation behind a preset leverAhmet Kaan Gümüş · 4cc1d86
feat(av1): rate-distortion optimised quantisation behind a preset lever

The deadzone quantiser rounded every coefficient blind to what its level
costs; every reference has the pass that decides that against the entropy
coder (libaom av1_optimize_txb, rav1e optimize_txb). tile::rdoq walks the
scan in reverse and lowers each level one step at a time while the bits it
gives back outweigh the squared error it adds, pricing every candidate
through the same coeff_bits/write_coeffs the search and the writer use, so
no second cost model can drift from the writer.

Applied inside the trial loop (trial_typed, code_from_prediction), so the
reconstruction, the price and the written levels are all the pass's grid.
EC_AV1_RDOQ=0 restores the plain quantiser and the byte pins.
Merge branch 'lane-tx64' (b771ffc0): the 64x64 inter root codes a real residual; the root's early-out clamped so it ships at every presetAhmet Kaan Gümüş · 6932598
Merge branch 'lane-tx64' (b771ffc0): the 64x64 inter root codes a real residual; the root's early-out clamped so it ships at every preset

The forward 64-point transform already existed; the missing ends were the
64-sided residual scratch and the writer's non-skip Whole64 arm. Film A
+43.0/+15.0 -> +42.9/+14.8, film B +64.7/+34.0 -> +63.3/+31.5 on the
12-frame gate at the 16:-24:16 base; the residual arm is off on screen
content. Speed 6 improves on every row. Pins re-taken on the merged tree
(8:-32:16 pyramid): 8590 / 28535.
test(av1): the ignored encoder:: gates raced on the process-global speed presetAhmet Kaan Gümüş · 8c24e30
test(av1): the ignored encoder:: gates raced on the process-global speed preset

`Av1Encoder::with_speed` stores the preset in a process-global atomic
(`speed::SPEED`) and `par::set_tile_threads` in another, so with the default
`--test-threads` the ignored gate
`every_speed_preset_decodes_sample_exact_through_both_decoders` (presets
0..=10) and the `tile_*`/`filter_stage_*` wall tables changed the preset
UNDER five concurrently encoding gates: four died in the encoder's own
"a reference frame selected with no picture at this frame's own
ref_frame_idx slot" (a sequence planned at one preset continuing at another)
and `the_facade_codes_the_same_bytes_as_encode_sequence` on a byte compare.
Every one of them passes standalone or at --test-threads 1.

Root fix, test-only: `speed::KNOBS`, a reader/writer lock -- a test that SETS
a process-global knob holds `knob_write()` for its whole body, every other
`encoder::` test holds `knob_read()`, so a setter never overlaps an encode.
Poison is ignored so one failing gate does not turn every later one into a
lock panic. No production path changes; the temp files these gates write were
already PID-keyed and no test in the crate calls `set_var`.

Gates: the parallel run 28/28 twice (603 s, 658 s; it was 23 passed / 5 failed
before), --test-threads 1 28/28, `cargo test -p ec-av1 --release -j4`
545 passed / 43 ignored, `cargo check --workspace --all-targets` 0 errors and
0 ec-av1 warnings, pins 8446 / 28548 unchanged.
feat(av1): the 64x64 root ships at every speed preset; re-pinAhmet Kaan Gümüş · 7b4f91d
feat(av1): the 64x64 root ships at every speed preset; re-pin

With the early-out clamped at 0.125 the preset-6 regression lane-b64
measured is gone -- every row of the native gate is better on both
columns with the root on (film A +55.1/+24.8 -> +51.0/+21.7, film B
+91.5/+53.4 -> +77.9/+44.3, screen +57.7/-11.7 -> +40.3/-20.0, bars
+88.9/+54.8 -> +79.5/+47.2 and +91.6/+49.8 -> +72.6/+35.1) at 28.1s vs
30.8s, 31.3s vs 28.0s, 14.3s vs 15.2s.

Pins re-taken for the residual arm, ON THIS LANE'S BASE (456295e9, whose
pins are 7291/27466 -- main has since moved to 8446/28548 under the
8:-32:16 pyramid, and those get re-taken at merge): 7291 -> 7355 at
q=150, 27466 -> 27573 at q=60. EC_AV1_B64=0 still gives lane-b64's
pre-root 8076 / 27585, verified on this base.

Also drops the stale claim in B64_ROOT's doc that transform.rs has no
forward TX_64X64.
perf(av1): the 64x64 root ships at presets 0..=3, off from 4Ahmet Kaan Gümüş · 71bf2a8
perf(av1): the 64x64 root ships at presets 0..=3, off from 4

Measured on the native gate at EC_AV1_SPEED=6 (two arms side by side): ON
costs film A +55.1/+24.8 -> +64.5/+37.5 and film B +91.5/+53.4 ->
+114.6/+71.5 for -16%/-36% wall, because the trial's early-out rides
SPLIT_RD -- at 0.5 a superblock is taken whole with its quadrants never
searched and film B's q150 point drops 1.2 dB. Presets 1..=3 keep SPLIT_RD
at 0.125, so they get the early-out that was measured good.
feat(av1): a 64x64 PARTITION_NONE skip root for the inter searchAhmet Kaan Gümüş · 5bcc6a5
feat(av1): a 64x64 PARTITION_NONE skip root for the inter search

The census (lanes/census-filmB.md) found rav1e speed 6 coding 45.2% of its
blocks at 64x64 -- 73.8% of its leaf blocks, 99.2% of them skip -- while
every block this encoder wrote was a 32x32 quadrant or smaller, which put our
mode+mv+partition+tx_size spend at 162,669 bits against rav1e's 61,988.

The search now offers the whole superblock as one 64x64 block coded SKIP
(NEAREST/NEAR/GLOBAL/NEW single-ref, priced through the same symbol_bits
path) against the four quadrants, and takes it outright when its per-pixel
cost is already under the split-RD threshold -- where the lever saves wall
rather than spending it. Skip-only: a 64x64 residual needs a forward
TX_64X64 the encoder does not have, and the writer refuses any other shape.

EC_AV1_B64=0 switches it off; speed::B64_ROOT is the preset column.
feat(av1): filter intra is a speed lever -- on at preset 0, off above itAhmet Kaan Gümüş · a14fe08
feat(av1): filter intra is a speed lever -- on at preset 0, off above it

Rebased onto main's filter-intra candidate, then priced it the way every
other lever in speed.rs was priced. Two sequential arms on film A native
at speed 3 (lanes/fi-s3-{on,off}.log): ON +54.6/+24.3 BD at 43.1s over a
13.7s rav1e anchor, OFF +55.1/+24.7 at 39.6s over 14.2s -- 0.5 BD points
for 12.8% wall, 0.039 points per 1% wall, between the levers speed 3
already cuts (CfL + angle, 0.031) and the next one it keeps (coefficient
breakout, 0.041). A preset whose purpose is wall does not spend it there,
so FILTER_INTRA is true at index 0 only; EC_AV1_FILTER_INTRA still wins.

filter_intra_on() also loses its OnceLock cache for the LazyLock-env +
speed::at shape every other lever uses -- the preset is set at encoder
construction, so a cached value would have frozen the first speed.
docs(av1): the preset Pareto against rav1e, libaom and SVT-AV1Ahmet Kaan Gümüş · 4ff71fa
docs(av1): the preset Pareto against rav1e, libaom and SVT-AV1

Native-gate film and screen rows per preset, threaded fps at 1920x1080
and 3840x1608 (4x2 tiles, 8 threads), and a 4-point ladder for every
reference preset this ffmpeg can run (its libaom wrapper caps cpu-used at
8, and cpu-used 6 and 8 code byte-identical ladders here). The keep rule
fails on film at every preset: rav1e reaches our speed-10 wall at +16.9
BD where we are at +104.9.
feat(av1): compose the speed presets from a measured per-lever tableAhmet Kaan Gümüş · ed24ce6
feat(av1): compose the speed presets from a measured per-lever table

One native-gate ablation per lever on film A at speed 0 (lanes/ab-*.log):
warp, loop restoration and the tpl map are free or better on real film
(-0.2/-0.2/0.0 BD) and the 8x8 split is 59% of the wall for +0.6, while
compound costs +30.5 BD and leaf compound +9.6 -- so the ladder switches
them off in that order, not in the order the old bars-fixture sweeps
suggested. The table and the end-to-end preset rows are in speed.rs.
feat(av1): a speed preset axis (0..=10), preset 0 the search we shipAhmet Kaan Gümüş · 597c1a3
feat(av1): a speed preset axis (0..=10), preset 0 the search we ship

Every search lever this crate already has an EC_AV1_* knob for reads its
default from a per-speed table in the new `speed` module, indexed by one
process-global preset (`Av1Encoder::with_speed`, `EC_AV1_SPEED`). Index 0
of every table IS the shipped constant, so preset 0 is byte-identical by
construction; `speed::levers` names what each preset switches off, and
ec-bench codes one row per preset {0,3,6,10}.