forge
Explore
Log in

Don't you dare go Hollow

doc(av1): the pyramid measured at native resolution -- still off

Browse files at this commit

7ad04d295dcfe445c1d1679a60a8f39220b0f296Ahmet Kaan GümüşParent: c21a3dd
The 640x384 verdict was taken on a 4x-downscaled recipe. At native
1920x1024 crops the pyramid gap is 5 BD points rather than 30, but no
arm beats the flat encoder on both films: every arm costs 4-6 points on
1080p, and the only arm that wins anything (2:-16:8, -1.2 on the 2160p
film vs libaom) pays +10 on screen capture. A 3x3 native offset sweep
on the 2160p clip spans 2.9 points and never reaches flat, with a
monotone gradient in both knobs -- the offsets are not the limit.

Default unchanged (pyramid opt-in, encoder byte-identical).
crates/ec-av1/src/encoder.rsmodified+36 -0
@@ -412,6 +412,42 @@ impl Default for Pyramid {
412 /// (`encoder::tests::a_pyramid_stream_decodes_in_display_order_through_both_decoders`412 /// (`encoder::tests::a_pyramid_stream_decodes_in_display_order_through_both_decoders`
413 /// checks every shown frame in display order against ffmpeg AND our own413 /// checks every shown frame in display order against ffmpeg AND our own
414 /// decoder, with the hidden frame proven to win blocks), and the414 /// decoder, with the hidden frame proven to win blocks), and the
415+ /// Re-measured a third time at NATIVE resolution (`encode::tests::
416+ /// bd_rate_screen_native`, 1920x1024 crops, 12 frames, four quantizers,
417+ /// BD-rate vs libaom / vs rav1e), because every earlier verdict was taken
418+ /// on the 4x-downscaled gate (class `gate-recipe-confound`) and because
419+ /// leaf compound and the distance-scaled search have landed since:
420+ ///
421+ /// | arm | film 1080p | film 2160p | screen |
422+ /// |---|---|---|---|
423+ /// | flat (no pyramid) | +18.7 / +1.4 | +48.1 / +19.8 | +59.4 / -10.0 |
424+ /// | 4:-16:8 | +23.2 / +5.3 | +48.1 / +19.7 | +62.7 / -6.5 |
425+ /// | 2:-16:8 | +24.9 / +6.9 | +46.9 / +19.5 | +69.0 / -3.8 |
426+ /// | 8:-16:8 | +22.6 / +4.6 | +48.7 / +19.8 | +59.3 / -8.2 |
427+ /// | 4:-24:12 (before the leaf-compound merge) | +24.3 / +6.3 | +48.5 / +20.2 | +67.2 / -3.7 |
428+ ///
429+ /// The confound was real -- at native the gap is 5 BD points, not 30 --
430+ /// but the sign is not: no arm beats flat on both films, every arm costs
431+ /// 4-6 points on 1080p, and the best 2160p arm (`2:-16:8`, -1.1 vs
432+ /// libaom) pays +10 on screen. So the pyramid still ships OFF.
433+ ///
434+ /// A native offset sweep on the 2160p clip alone (mini-GOP 4) says the
435+ /// offsets are not what is missing -- the whole 3x3 grid spans 2.9 BD
436+ /// points and none of it reaches flat's +48.1:
437+ ///
438+ /// | arf \ leaf | +4 | +8 | +12 |
439+ /// |---|---|---|---|
440+ /// | -8 | +48.9 / +20.4 | +49.2 / +20.1 | +50.2 / +20.5 |
441+ /// | -16 | +47.8 / +20.0 | +48.1 / +19.7 | +49.2 / +20.2 |
442+ /// | -24 | +47.3 / +20.0 | +47.6 / +19.7 | +48.5 / +20.2 |
443+ ///
444+ /// The gradient is monotone in both knobs (deeper ARF better, shallower
445+ /// leaf better), which is the shape of a group whose leaves cannot cash
446+ /// in the ARF's extra quality: what the leaves reach the hidden frame
447+ /// with is still one forward search per reference. Shrinking the mini-GOP
448+ /// helps for the same reason (2:-16:8 is the only arm that beats flat on
449+ /// any clip, and it beats it on the clip with the fastest motion).
450+ ///
415 /// quantizer offsets behave. Nothing selects the pyramid but an explicit451 /// quantizer offsets behave. Nothing selects the pyramid but an explicit
416 /// [`Av1Encoder::with_pyramid`] call (or `EC_AV1_PYRAMID` on the gate and452 /// [`Av1Encoder::with_pyramid`] call (or `EC_AV1_PYRAMID` on the gate and
417 /// on `ec-bench`); the default one-in-one-out path is byte-identical to453 /// on `ec-bench`); the default one-in-one-out path is byte-identical to