forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 70849e07ad7e30da44cd8a7f390dc93bfb49542eFiltered to crates/ec-av1/src/encoder.rsClear filter

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.
feat(av1): a group's top ARF names the ARF two groups back as its second anchorAhmet Kaan Gümüş · 6aa3e57
feat(av1): a group's top ARF names the ARF two groups back as its second anchor

The ARF-vs-ARF census found our first top ARF naming the SAME picture as LAST
and GOLDEN (refs LAST@-8 GOLDEN@-8), where rav1e's ARFs read two distinct
anchors of their own chain. The slot the ARF is about to refresh still holds
the anchor from two groups back while this frame is coded, so naming it as
ALTREF costs no DPB slot and no extra encode.

Long-GOP gate on top of the pyramid tpl window: film A +42.8/+4.5 ->
+40.9/+3.1, film B +127.3/+32.9 -> +125.6/+32.0 -- both films down on both
columns. Pins re-taken: 9853 at q=150, 35866 at q=60; EC_AV1_ARF_ALTREF=0
restores 9859 / 35904.
feat(av1): a 64x64 root may split its luma into four TX_32X32 unitsAhmet Kaan Gümüş · 3f6896d
feat(av1): a 64x64 root may split its luma into four TX_32X32 units

commit_inter_luma reaches side 64 now (its halved transform is TX_32X32),
so the root's residual takes the same var-tx decision every other inter
block does, and the writer's Whole64 arm codes txfm_split=1 with the four
units write_luma_tus slices out of the block's 64x64 levels. The pricer
learns the new variant in the same diff. EC_AV1_B64VARTX=0 restores the
single TX_64X64.
test(av1): re-take the encoder's stream pins for the pyramid tpl window, and wire a second past anchor for the top ARF behind EC_AV1_ARF_ALTREFAhmet Kaan Gümüş · 51ec13e
test(av1): re-take the encoder's stream pins for the pyramid tpl window, and wire a second past anchor for the top ARF behind EC_AV1_ARF_ALTREF

The pins move by construction: every superblock of the four pinned pictures
is priced at its own temporal lambda now (9835 -> 9859 at q=150, 35798 ->
35904 at q=60, EC_AV1_TPL_PYRAMID=0 restores the pair). The long-GOP gate
keeps the change on both films and both columns (film A +43.1/+4.6 ->
+42.8/+4.5, film B +129.0/+34.3 -> +127.3/+32.9) and so does the 12-frame
gate on its two real film rows.

EC_AV1_ARF_ALTREF (default off) names the ARF from two groups back as the top
ARF's ALTREF instead of the key it already reads as GOLDEN -- the census
found our first ARF naming the SAME picture as LAST and GOLDEN where rav1e's
ARFs read two distinct anchors. The slot the ARF is about to refresh still
holds that older anchor, so it costs no DPB slot; its gate arm is running.