forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/arfcen.report.mdClear filter

2026-09-07

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.
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.
feat(av1): the temporal lambda map runs on the pyramid path, which is every default streamAhmet Kaan Gümüş · ccbcc73
feat(av1): the temporal lambda map runs on the pyramid path, which is every default stream

encode_pyramid_inter passed an empty lookahead window, so the propagating
per-superblock lambda map lane-av1tpl2/3 shipped has been inert on every
stream the encoder writes by default since the pyramid became the default --
it only ever ran on the flat A/B arm. The window is the group's own buffered
sources: display-order successors for a frame inside the leaf run, and the
group's leaves in reverse display order for its top ARF, whose successors are
not buffered yet and which those leaves predict backward from.

Measured through enc_probe on film B against the control's own rate/quality
slope: 1.9% fewer bytes at the q=150 point's PSNR and 0.2% at q=90, wall
unchanged. EC_AV1_TPL_PYRAMID=0 restores the old behaviour.

Also from the census lane: EC_AV1_LAMBDA_HIDDEN, a rate weight for hidden
frames alone (default 1.0 = unchanged), which is the knob the pyramid's q
offsets cannot express; the sweep says 1.0 is already the optimum.
census(av1): per-coded-frame syntax census with order hints, and the ARF-vs-ARF table it printsAhmet Kaan Gümüş · 671d201
census(av1): per-coded-frame syntax census with order hints, and the ARF-vs-ARF table it prints

The census now carries each coded frame's order_hint and its references'
order hints, so EC_CENSUS_PERFRAME=1 prints one full report per coded frame
with the display-order PSNR joined to it and every reference named by display
distance -- which is what an ARF-vs-ARF comparison against another encoder's
stream needs. EC_AV1_MV_DIST_SCALE is readable outside a test build (like the
encoder's other search margins) and its ceiling is a named constant with its
own knob, because the ceiling was written when the deepest reference in the
GOP sat at distance 4.