forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 052d1d3f81ff6b9e7c09b93b58c5e772d825fcb3Filtered to crates/ec-av1/src/encoder.rsClear filter

2026-09-29

ec-av1: the clip gates stop skipping green on an absent fixture rootAhmet Kaan Gümüş · 1f91edd
ec-av1: the clip gates stop skipping green on an absent fixture root

The 1080p multi-tile gate printed 'SKIP the 1080p tile round trip: no
fixture' and libtest reported ok on any tree without the gitignored root
fixtures/ -- which is every linked worktree. Eleven clip gates had that
shape, and none of them had an env that made the absence RED, so
EC_AV1_REQUIRE_FFMPEG=1 (a batch saying 'this gate must run') did not help.

New crates/ec-av1/src/library_fixture.rs owns the real-library fixture
root and the one presence probe. It resolves EC_FIXTURES FIRST, which is
the root scripts/verify-fixture-library.sh validates: the preflight and
the gates used to read two different directories, so pointing EC_FIXTURES
at a library elsewhere printed 'resolve 0 missing' and GREEN while every
clip gate skipped. It fails under EC_REQUIRE_FIXTURES /
EC_AV1_REQUIRE_FFMPEG / EC_AV1_REQUIRE_AOMENC and otherwise prints exactly
one SKIP line naming the resolved path and the three ways out.

Every clip gate now routes through it, the per-clip 'missing' drops in
the BD-rate and TPL probes included, and the preflight's last word is
GREEN-WITH-FINDINGS rather than a bare GREEN over a reported mode-(i)
finding. gen-fixture-library.sh learns the resolver's library-relative
literal so RESOLVE keeps checking the clip rows instead of losing them
the moment a gate stops spelling ../../fixtures.
lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gateAhmet Kaan Gümüş · 408e7cf
lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gate

lane-av1probes. The release triage dispositioned the 15 process-global gates
and skipped the probe/benchmark set; that set was a black box. This lands the
classification and the three fixes it found.

Measured (release, one cargo invocation per test name, EC_AV1_REQUIRE_FFMPEG=1
EC_AV1_REQUIRE_AOMENC=1 EC_REQUIRE_FIXTURES=1, TMPDIR off the tmpfs) on server
host-a and on the workstation for the real-library rows: 38 ignored
non-gate items at base 745c60e7 -- 32 REAL DIAGNOSTIC VALUE, 5 STAGING, 1
ROBUST-RED, 0 DEAD WEIGHT, 0 decoder defects. Nothing in the set is dead; what
was broken is the REASON TEXT, which is what this commit fixes.

1. UN-IGNORE a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders.
   It was ignored only for its wall ("1080p encode: minutes") and is the only
   1080p arm in the ignored set that ASSERTS. Plain release run on this tree:
   1080p 2x1/2x2/4x2 tiles, 84488/84208/84685 bytes, all sample-exact, ok in
   27.39 s. The check is a per-frame first-differing-luma-sample comparison
   against ffmpeg, not a length or non-empty smoke. Both skippable halves route
   through the crate's EXISTING probes (h264_clip_frames -> have_ffmpeg() +
   clip.exists(), and have_ffmpeg() for the ffmpeg arm); no new presence-check
   shape. Ignore count 51 -> 50.

2. REASON REWRITES, 11 items whose reason misdescribed them. The wall
   benchmarks now carry their measured wall and their host floor
   (tile_search_wall_1080p TIMED OUT at 2400 s on a 4-core server and takes
   1243 s on 12 cores); filter_stage_wall_film says it measures the BARS
   fixture without EC_AV1_WALL_CLIP; the four bare #[ignore] scratch probes
   name their env vars, including the three geometry vars of
   scratch_isolate_pinned_mismatch whose 64/64/1 default is wrong for every
   real pin; sweep_rectx_recipes stops carrying a lane label;
   tpl_intra_denominator_histogram stops claiming film fixtures it never
   opens; the two prune_k sweeps say they are local-run because their clip
   paths are hard-coded /home/user absolutes; probe_split says it panics on
   its own lossless synthetic rows.

3. stage_timing_breakdown_inter printed "motion search (NEWMV) 17.82ms (of
   which interpolation 148.63ms)" -- a sub-number larger than its parent. Both
   timers were always real; the print's attribution was wrong. Bucket 0 times
   only the NEWMV/GLOBAL sub-search (stage_since(0) fires after
   find_best_new_mv and the global-MV search), and bucket 1 is EVERY
   mc::predict call including a committed block's final prediction, which runs
   outside any bucket-0 region. Bucket 1 is now its own top-level row with the
   overlap quantified and explicitly not added to the total; the residual is
   labelled for what it contains. The accounting closes: 107.27 + 157.56 =
   264.83 ms against a 264.82 ms wall.

No decoder logic changed: every source edit is a #[ignore] reason, a doc
comment, or the one eprintln block above.

2026-09-28

audit: assert equal lengths before every ours-vs-oracle walk (68 sites)Ahmet Kaan Gümüş · b7b2e07
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)

The prefix-truncation false PASS: an ours-vs-oracle compare that walks
`got.iter().zip(want)` without first asserting equal lengths reports EXACT
for any defect outside the compared prefix, because zip stops at the shorter
operand. A frame-count assert says nothing about a plane's byte length.

Audited 124 sites across ec-av1/ec-h264/ec-h265/ec-vp9/ec-alac/ec-flac/
ec-aac/ec-ac3 and tools/oracle: 68 UNSAFE, 38 SAFE, 18 N/A. 68 fixed by
inserting the length assert AFTER the existing diff assert, on the same
buffers, so a real divergence still fails for the same reason with the same
message and only the previously-silent short-plane case becomes loud. The
canonical shape already in the tree is decode_all_frames_vs_oracle.

encode.rs::first_difference returned None ("exact") for any length
mismatch; it now returns Some, copying first_plane_mismatch. encode.rs's
nine `encoded.frames` vs ffmpeg loops and two GOP zips gained the count
assert they never had. ec-h264's round_trip rejected only an over-long
frame, so a short one zipped to zero and four call sites printed
"bit-exact".

Truthfulness: a comment above stream.rs:29006 claimed the gate compared
every decode-order frame when it compares the shown ones; the pinned-
scratch loop truncated a three-way .min() silently; a message called a
shown-frame count "decode-order"; two frame-count asserts were tautological
and are now a comment; examples/dump_yuv.rs wears a decode-index filename
on a display index.

Red/green per crate in lanes/av1cmpaudit.report.md. Not pushed.

2026-09-13

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-12

2026-09-09

fix(av1): the lookahead drain witness pins TPL_FUT=0Ahmet Kaan Gümüş · a500a02
fix(av1): the lookahead drain witness pins TPL_FUT=0

WIN=11 also reads the buffered next group, so the identity arm was
testing the lambda window. Drain, order, and the filter-move arm stay.
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 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.
feat(av1): the symmetric ARF filter window ships on one group of lookaheadAhmet Kaan Gümüş · 2d9a195
feat(av1): the symmetric ARF filter window ships on one group of lookahead

The encoder holds the closed mini-GOP one group longer, so its top ARF -- the
group's last picture in display order -- sees the next group's sources as
display-future neighbours. The source temporal filter takes a symmetric
window (3 past, 3 future); the tpl lambda window is unchanged.

Long-GOP gate: film A +22.0/-8.4 -> +21.2/-8.8, film B +76.5/+1.2 ->
+72.1/-1.2. Bracketed: +-4 is worse on all four columns. Guard rows move by
at most 0.1. Byte pins unchanged (their four-picture fixture has no next
group). Costs one mini-GOP of latency and 199 MB of source buffer at 4K.

2026-09-08

fix(av1): price a bound rate-loop level per LEVEL, not per controller slotAhmet Kaan Gümüş · 83903ac
fix(av1): price a bound rate-loop level per LEVEL, not per controller slot

The first cut projected one bound frame's leaf-equivalent rate onto its
whole controller slot's remaining weight. The hidden slot mixes the top
and mid ARFs: at the floor both code the same bytes at weights 4x apart,
so the mid's rate applied to the top's weight drove the re-plan negative,
every target to zero and the loop to a dead stop (1536 kbps pyramid arm
landed -20.7%). The run now carries one plan per level (key, each hidden
offset, leaves) and only the bound level's own remaining frames are held
at its measured rate; the re-plan is bounded at both ends, so a target
can never reach zero and stop the loop.
fix(av1): a rate-loop level at its quantizer bound hands its bytes to the othersAhmet Kaan Gümüş · 366d5d6
fix(av1): a rate-loop level at its quantizer bound hands its bytes to the others

The pyramid rate loop re-planned the rest of a run by dividing the whole
remainder by the whole remaining weight -- so a level pinned at the
coder's 1..=255 clamp (at 2 Mbit/s the hidden slot codes identical
pictures at qindex 1) got most of its own shortfall handed straight back,
because the hidden levels carry most of the pyramid's weight. Every
bound level is now priced at what it MEASURABLY spends and its weight is
taken out of the division, with the re-plan bounded to four times a
level's opening share so nothing winds up. EC_AV1_RL_CENSUS=1 prints a
per-frame row (target, actual, base q, raw/effective q, bound, remainder);
EC_AV1_RL_NOREDIST=1 is the old division, for the before arm.
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.
fix(av1): write a cut palette block's colour-index map over its on-screen part onlyAhmet Kaan Gümüş · 254b908
fix(av1): write a cut palette block's colour-index map over its on-screen part only

A palette block straddling the frame's right/bottom mi edge codes its map
over spec 5.11.50's onscreenWidth x onscreenHeight corner and the decoder
replicates it outward. The writer walked the full block grid, so every
conformant decoder read the map short and desynced the rest of the tile;
our own trial decode agreed with itself because the encoder-side FrameCtx
carried no mi dims and the reader mirrored the writer there.

Both frame encoders now publish the header's mi dims on that ctx, the
palette search folds its searched map to the on-screen corner (so the
priced, reconstructed and written map are one map), and the writer codes
that corner only. The reader's mirror-the-writer branch is gone.

Witness: encoder::tests::a_palette_block_cut_by_the_frame_edge_decodes_
exactly_through_ffmpeg -- our encoder at 384x152, 12 cut maps written,
every plane of every frame equal to ffmpeg's decode.
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.
fix(av1): the superblock size travels with a FrameCtx copy; two reach gates pin 64Ahmet Kaan Gümüş · ab4ff0c
fix(av1): the superblock size travels with a FrameCtx copy; two reach gates pin 64

filter_ctx_copy dropped sb128_flag/reach_sb_px, so a tile SEARCH worker
searched at 64 while the calling thread searched at 128: the coded bytes
depended on EC_AV1_TILE_THREADS under EC_AV1_SB128
(tile_bytes_do_not_depend_on_the_thread_count, 1x2 tiles, 9251 vs 9239).

every_tile_layout: the spec's uniform spacing derives the tile count from
the superblock grid, so a 128-superblock frame with 5 SB columns codes 3
tiles for tile_cols_log2=2; the test now expects the encoder's own grid.
The two reach gates transcribe libaom's 64-superblock tables, so they pin
a 64 context instead of following the process knob.
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
instrument(av1): a NEWMV census plus mv-rate weights for the block decision and the searchAhmet Kaan Gümüş · f00abe4
instrument(av1): a NEWMV census plus mv-rate weights for the block decision and the search

EC_AV1_NEWMV_CENSUS=1 prints, per block side, how often a LAST NEWMV is
searched, offered to RD, and wins, the RD margin either way, the searched
vector's distance from NEARESTMV, and the mv syntax bits it spends, plus the
two pre-RD margins' skip shares and the search's own bound witness (how often
the winner was walked to at the log stage's widest step).

EC_AV1_MV_LAMBDA weights the mv rate term of the block decision only and
EC_AV1_MV_SEARCH_LAMBDA the search's own; both default 1.0, byte-identical.
feat(av1): EC_AV1_SPLIT_LAMBDA on the split trial's rate, plus a split censusAhmet Kaan Gümüş · c781f74
feat(av1): EC_AV1_SPLIT_LAMBDA on the split trial's rate, plus a split census

The class rd-rate-term-calibration knob lane-txd's report asks for. The
intra tx_depth depth>0 candidates and the inter var-tx depth-1 trial now
charge their rate at split_lambda_mult() * lambda (SPLIT_LAMBDA = 1.0, the
control), and EC_AV1_SPLIT_CENSUS=1 prints per site / frame type / block
side how many trials were offered, how many the split won, and the mean
(rate, distortion) of winner and loser.
fix(av1): the tile writer coded every transform unit as TX_CLASS_2DAhmet Kaan Gümüş · ae80b33
fix(av1): the tile writer coded every transform unit as TX_CLASS_2D

A V_DCT/H_DCT unit is TX_CLASS_VERT/TX_CLASS_HORIZ for the decoder: its
own Mrow/Mcol scan, its own eob_pt row (eob_pt_class1) and its own
nz-map/base-range context offsets. The writer had none of that, so the
first 1-D type any search offered -- the wider reduced_tx_set = 0
alphabets -- desynced the tile from the encoder's own trial decode,
surfacing as "a reference frame selected with no picture at this frame's
own ref_frame_idx slot" (class refusal-from-own-desync).

write_coeffs now resolves the class off tx_type exactly as
decode::TxClass::of does, and takes the class scan, the class-1 eob row
and class-aware base_ctx/br_ctx from it; the pricer goes through the same
function, so a priced type is priced in its own alphabet and class.

The wide-alphabet witness is un-ignored: preset 0 codes 1820 V_DCT and
2435 H_DCT intra units and both decoders read the clip sample-exact.
feat(av1): the intra half of reduced_tx_set=0, and a rate surcharge on a non-DCT typeAhmet Kaan Gümüş · 7a1492f
feat(av1): the intra half of reduced_tx_set=0, and a rate surcharge on a non-DCT type

The search names the widened luma set for INTRA units only: with the wider
inter candidates priced some block's winner selects a DPB slot this encoder
holds no picture in (the refs lane's bookkeeping), which bisection pins to the
inter half alone. EC_AV1_TXRD_LAMBDA now also charges the intra type decision:
the 12-frame instrument says the five-type search buys 0.04 dB for 1.2% more
bytes on film A on every frame and every plane, key frame included, so the
loss is the rate term and not propagation into the leaves.

2026-09-07

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.
test(av1): the five-type fire count is preset 0's; every preset with the lever must still reach a non-DCT typeAhmet Kaan Gümüş · 878e910
test(av1): the five-type fire count is preset 0's; every preset with the lever must still reach a non-DCT type
fix(av1): the decoder's FrameCtx no longer reads the encoder's SB128 globalAhmet Kaan Gümüş · d1b410e
fix(av1): the decoder's FrameCtx no longer reads the encoder's SB128 global

lane-sb128 seeded FrameCtx::new()'s sb128_flag / reach_sb_px from
crate::encode::sb128_on(), so any test forcing the encoder knob (the
128-superblock encoder witness) made every concurrently decoding thread
start its context at 128: the three real-aomenc sb128 decode gates failed
in parallel and no_per_frame_state_is_thread_local_any_more flagged
"encode.rs: SB128" as per-frame state outside FrameCtx.

FrameCtx::new() is a DECODER context again (false / 64, overwritten by
set_sb128 from the parsed sequence header). The encoder's own contexts
come from the new FrameCtx::for_encoder(), used at every FrameCtx
construction in encode.rs and encoder.rs, so the mode search's Reach and
the filter search's internal decodes still agree with the tile writer.
The static is renamed ENC_SB128 -- an encoder knob like speed::SPEED,
which is what the state test's name pin intends.
Merge branch 'lane-sb128' (f3298510): the tile writers can walk 128x128 superblocks (EC_AV1_SB128), off by defaultAhmet Kaan Gümüş · ad81365
Merge branch 'lane-sb128' (f3298510): the tile writers can walk 128x128 superblocks (EC_AV1_SB128), off by default

Structurally +7 B of partition symbols per 60 roots, but the spec forces
the loop-restoration unit to 128 under a 128 superblock and the 12-frame
gate loses 0.3 dB on film A for it (+21.7/-4.4 -> +38.8/+9.1). The
writer's no-neighbour partition sentinel moved from 64 to the decoder's
128 (table and reader move together). Under the flag a ref-slot refusal
still fires intermittently (open).
test(av1): a 128x128-superblock witness, and the root counter behind itAhmet Kaan Gümüş · 6e9b2d8
test(av1): a 128x128-superblock witness, and the root counter behind it

Eight 128 roots on a 3-frame static clip, byte-exact through ffmpeg and
decode_stream. `force_sb128` moves a process-global (the superblock size is
a sequence field), so the gate is `#[ignore]`d and runs alone.
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.
test(av1): the delta_q witness makes its fire count only at preset 0Ahmet Kaan Gümüş · ad1a843
test(av1): the delta_q witness makes its fire count only at preset 0

speed::TPL_DEPTH cuts the lookahead window to one picture above preset 0,
so there is no tpl map -- and no delta_q syntax -- outside preset 0.
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.
fix(av1): every distortion score is over the inside of the frame onlyAhmet Kaan Gümüş · 62921b6
fix(av1): every distortion score is over the inside of the frame only

The search's SSE scored the PADDING for every block the true frame edge
cuts through -- samples the decoder reconstructs and the display crop
throws away. lane-b64b fixed the 64x64 root alone; this moves the clip
into Plane::block_sse itself, so every mode, transform, CfL alpha and
partition trial is ranked the way libaom's av1_dist_block measures
(over max_blocks_wide/high). intrabc's own distortion clips too.

Both gate films are superblock-aligned so nothing default moves; the
user's export sizes all straddle. EC_AV1_EDGESSE=0 restores the old
score for the before/after arms, EC_AV1_EDGE_CENSUS=1 counts the
straddling blocks and their padding share, EC_AV1_NATIVE_CROP=WxH puts
the native gate on a non-superblock-aligned window.
Merge branch 'lane-b64b' (6f53db9b): the 64x64 root prices compound references and depth-1 var-tx, and edge superblocks score only the insideAhmet Kaan Gümüş · e08e2e6
Merge branch 'lane-b64b' (6f53db9b): the 64x64 root prices compound references and depth-1 var-tx, and edge superblocks score only the inside

12-frame film A +37.5/+7.6 -> +35.4/+5.4, film B +54.1/+23.9 ->
+47.6/+17.0 (compound off on screen); long-GOP at the lane's base film A
+39.2/+1.3, film B +118.5/+25.1. Pins re-taken on the merged tree.
Merge branch 'lane-arfcen' (f550d2e1): the temporal lambda map runs on the pyramid path; a top ARF names the ARF two groups back as its second referenceAhmet Kaan Gümüş · e7e40c6
Merge branch 'lane-arfcen' (f550d2e1): the temporal lambda map runs on the pyramid path; a top ARF names the ARF two groups back as its second reference

The pyramid path passed an empty lookahead, so the shipped tpl map was
inert on every default stream; the top ARF named the key twice. Long-GOP
film A +43.1/+4.6 -> +40.9/+3.1, film B +129.0/+34.3 -> +125.6/+32.0;
12-frame film A +37.1/+7.3, film B +52.5/+22.3. Pins 9853 / 35866.
Refuted: anchor density, hidden-only lambda, distance-scaled search.
feat(av1): a 64x64 root may be taken at a superblock the frame edge cutsAhmet Kaan Gümüş · cb5978f
feat(av1): a 64x64 root may be taken at a superblock the frame edge cuts

sb64_legal asked for the whole superblock to be inside the true frame; AV1
asks only for its half (has_cols/has_rows), which is what the writer already
codes. The trial is now ranked over the inside part alone (inside_sse), so
the root is not chosen for predicting padding the source does not have.
Both gate films are superblock-aligned, so only the user's own arbitrary
export sizes reach this: a 232x168 synthetic decodes sample-exact through
both decoders with 9 edge roots. EC_AV1_B64EDGE=0 restores the old rule.