From 6deb39c789cd0129d2a62124df90d98c74c910d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 24 Aug 2026 02:02:36 +0300 Subject: [PATCH] h264: record the mode-decision lambda sweep, which changes nothing The RD multiplier ladder had never been swept as a scale. It is now, on both real clips at the settled quantisation constants, and it sits on the crossing: film wants 0.7 (0.022 dB), screen capture wants 1.0 and loses 0.055 for the same move. Nothing landed; the table is in the lane report so the constant is not swept a third time. --- lanes/h264x264-r2.report.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lanes/h264x264-r2.report.md b/lanes/h264x264-r2.report.md index 0be47619..8f3d9526 100644 --- a/lanes/h264x264-r2.report.md +++ b/lanes/h264x264-r2.report.md @@ -411,3 +411,28 @@ being chosen more often now that the blocks it picks are cheaper. `transform_8x8` is still opt-in, so this changes no default stream byte; the open decision to flip that default is worth 0.084 dB more than it was. + +## The mode-decision multiplier, swept and left alone + +`lambda_for` is `2^((qp-12)/6)` in the bits domain, the same ladder x264's +`lambda_tab` uses, and it had never been swept as a scale. It is now, on both +clips, at the settled quantisation constants -- BD-PSNR against x264: + +| lambda scale | film 3840x1608 | screen capture 2560x1440 | sum | +|---|---|---|---| +| 0.5 | -0.577 | -0.635 | -1.212 | +| 0.7 | **-0.571** | -0.523 | -1.094 | +| 0.85 | -0.576 | -0.494 | -1.070 | +| **1.0 (kept)** | -0.593 | **-0.468** | **-1.061** | +| 1.4 | -0.647 | -0.490 | -1.137 | +| 2.0 | -0.767 | -0.565 | -1.332 | + +The two contents want opposite directions and the ladder sits at the crossing: +film would take 0.022 dB from a 0.7 scale and screen capture would lose 0.055 +for it. Nothing landed. The synthetic gate agrees the tilt is small +(-4.073 -> -4.055 at 0.7), and it is not the film clip's shape. + +Recorded so the constant is not re-swept a third time: the remaining gap is +not an operating-point tilt. It is bits -- we spend 13% more than x264 at +0.45 dB higher PSNR on the film clip -- so the places left to look are the +ones that decide what to spend them on.