diff --git a/lanes/h264x264-r1.report.md b/lanes/h264x264-r1.report.md index 1aa17e1e..c902b4b9 100644 --- a/lanes/h264x264-r1.report.md +++ b/lanes/h264x264-r1.report.md @@ -111,3 +111,44 @@ Synthetic default -5.202 -> -5.140 dB, floor retightened to -5.25. Full `ec-h264 reconstruction SSD. That is the next build slice, and it is worth about 1.4 dB. P_8x8 sub-partitions and the search itself stay unmeasured but are bounded above by what is left after that. + +## Round 2 -- the first mode-decision slice (main 931f413) + + Acting on that attribution: SATD still ranks the nine Intra_4x4 modes, but the top + `I4_RD_CANDIDATES = 3` are now re-costed by actually quantising, dequantising and + reconstructing the block, and charging reconstruction SSD plus coded bits. A mode that + predicts a little worse can quantise to far fewer levels, and SATD cannot see that. + + | clip | all-intra | GOP 10 | + |---|---|---| + | 3840x1608 film | -0.749 -> **-0.620** | -1.557 -> **-1.495** | + | 2560x1440 screen capture | -0.225 -> **-0.137** | +0.173 -> **+0.216** | + | 352x288 synthetic ramp (the gate's) | - | -5.140 -> -5.297 | + + Cost 3-4% encode time. Survivor count saturates at three: all nine landed within 0.002 dB of + three for 7% more time. + + **The rate term had to be calibrated before the search worked at all.** With `block_bits` + charged in full the search got monotonically *worse* the more candidates it saw + (K=1 -0.749, K=9 -0.830 all-intra) -- which reads as "RD does not help here" and is wrong. + `block_bits` counts CAVLC-ish widths that over-state what the coder in force spends, and the + repo already corrects for that elsewhere with `ZERO_BLOCK_LAMBDA = 0.4`. Scaling the rate + term by the same constant turns every real-content measurement from a loss into a gain: + + | rate-term scale | all-intra, film | + |---|---| + | 1.0, K=3 | -0.814 dB | + | 0.5, K=3 | -0.644 dB | + | **0.4, K=3** | **-0.620 dB** | + | 0.4, K=9 | -0.618 dB | + + The synthetic clip pays 0.157 dB for the change and `BD_PSNR_VS_X264_FLOOR` moved -5.25 -> + -5.40. Accepted deliberately: its smooth ramps quantise unlike anything in a real frame, all + four real-content measurements gain, and the floor's doc comment says so rather than + claiming -5.3 dB is fine. + +### Still open after round 2 + + The same RD treatment has not been applied to Intra_8x8 mode selection, `choose_chroma_mode`, + or `choose_inter` (still SATD + `motion_rate`). Those are the rest of the ~1.4 dB the + `subme=1` ablation priced. P_8x8 sub-partitions remain unmeasured.