From 0e1d650c5ea96d48881e2b8c4116b1121d6672a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 6 Sep 2026 21:16:13 +0300 Subject: [PATCH] feat(av1): the temporal lambda weighting ships on at strength 0.5 -- native BD down on five of six columns, control run byte-identical to the pre-lane baseline --- crates/ec-av1/src/encode.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 5739d989..3a83317a 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -7298,7 +7298,24 @@ fn search_inter_block( /// ([`tpl_sb_factors`]). 0 keeps every block at the frame's own lambda, which /// is what every measurement before this lane was taken on. Swept by /// `EC_AV1_TPL=`. -const TPL_STRENGTH: f64 = 0.0; +/// +/// SWEPT on lane-av1tpl at the native gate (1920x1024, 12 frames, BD-rate vs +/// libaom `cpu-used 6` / rav1e `speed 6`); `k=0` reproduces the pre-lane +/// baseline exactly, which is the control the rest of the table is read +/// against: +/// +/// | k | film 1080p | film 2160p | screen | +/// |---|---|---|---| +/// | 0 | +16.2/-1.1 | +46.6/+18.8 | +51.3/-14.4 | +/// | 0.25 | +16.4/-0.7 | +46.6/+18.8 | +51.2/-14.4 | +/// | **0.5** | **+15.9/-1.3** | **+46.5/+18.7** | **+51.2/-14.4** | +/// | 1 | +16.2/-0.9 | +46.6/+18.8 | +51.2/-14.4 | +/// | 2 | +16.5/-0.7 | +46.7/+19.0 | +51.1/-14.4 | +/// +/// 0.5 is the only arm that is at least flat on every row and down on five of +/// the six columns, so it ships as the default. The lookahead pass that feeds +/// it costs 1.5 ms per 1920x1024 frame against a ~0.8 s encode (0.2%). +const TPL_STRENGTH: f64 = 0.5; fn tpl_strength() -> f64 { std::env::var("EC_AV1_TPL")