From 378312121c48e108ab97cf5aa3cef954accc885f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 7 Sep 2026 02:32:22 +0300 Subject: [PATCH] docs(av1): record the native-gate confirm run under the default pyramid (5 rows, screen unmoved) --- crates/ec-av1/src/encode.rs | 33 +++++++++++++++++++++++++++------ lanes/pyrdef/native.log | 29 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 6 deletions(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 8a2c1ba7..9e1588f7 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -13281,13 +13281,17 @@ mod tests { /// EC_AV1_INTRABC=1 ... same command # intra block copy /// EC_AV1_PAL_MAXCOLORS=256 ... same command # palette bound /// EC_AV1_TILES=1:1 EC_AV1_TILE_THREADS=4 ... # 2x2 tiles - /// EC_AV1_PYRAMID=4:-16:8 ... same command # coding pyramid + /// EC_AV1_PYRAMID=0 ... same command # no coding pyramid + /// EC_AV1_GATE_FACADE=1 ... same command # the facade arm /// - /// Under `EC_AV1_PYRAMID` this arm codes its ladder through the streaming - /// facade ([`our_ladder_pyramid`]), which exposes no per-packet - /// reconstruction: that path asserts ffmpeg's decode against our own - /// decoder on all three planes in display order, and prints the per-level - /// frame and byte census. + /// The coding pyramid is the DEFAULT of the sequence path this arm codes + /// through (lane-av1pyrdef); the run prints the requested and the + /// effective pyramid per clip, and a screen clip's effective one is + /// `None`. `EC_AV1_GATE_FACADE=1` runs the same ladder through the + /// streaming facade instead, which prints the per-level frame and byte + /// census and asserts ffmpeg's decode against our own decoder on all + /// three planes in display order; both arms code the same bytes + /// (`encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence`). /// /// WHICH ROWS ARE REAL CONTENT: the `bars 1080p` / `bars 2160p` rows are /// the repo fixtures `scripts/gen-fixtures.sh` builds with ffmpeg @@ -13317,6 +13321,23 @@ mod tests { /// (their classification never moved); the palette search over film was /// costing roughly a tenth of the film rows' wall. /// + /// CONFIRM RUN 2026-09-07 (lane-av1pyrdef), with the pyramid now the + /// sequence path's default -- the four non-screen rows take `4:-16:8`, + /// the capture is gated flat and does not move a byte: + /// + /// | clip | effective | flat -> default | vs rav1e | wall ours:libaom:rav1e | + /// |---|---|---|---|---| + /// | bars 1080p | 4:-16:8 | +16.4% -> +21.5% | -1.1% -> +3.7% | 37.8s:8.4s:16.4s | + /// | bars 2160p | 4:-16:8 | +48.2% -> +48.3% | +20.4% -> +20.4% | 32.2s:5.6s:16.2s | + /// | film A | 4:-16:8 | +62.8% -> +54.1% | +32.5% -> +24.2% | 58.9s:9.5s:13.6s | + /// | film B | 4:-16:8 | +86.3% -> +82.6% | +50.5% -> +47.4% | 63.2s:18.7s:16.4s | + /// | screen capture | none (gated) | +50.1% -> +50.1% | -15.4% -> -15.4% | 31.1s:8.4s:11.3s | + /// + /// Every row lands on lane-av1pyrgate's facade-arm number to the digit, + /// which is the point of the shared driver: the two entry points code one + /// stream. The bars rows are fixtures (recorded, never a decision); the + /// two real films are what the pyramid ships for. + /// /// All five gate clips are rows by default. `EC_AV1_NATIVE_FILM=1`, /// `EC_AV1_NATIVE_FILM4K=1` and `EC_AV1_NATIVE_SCREEN=1` select a subset: /// setting any one of them keeps only the selected rows (the two 1080p diff --git a/lanes/pyrdef/native.log b/lanes/pyrdef/native.log index 149696fd..47d4ca12 100644 --- a/lanes/pyrdef/native.log +++ b/lanes/pyrdef/native.log @@ -11,3 +11,32 @@ bars 1080p: inter var-tx depths of 12372 blocks -- leaf single 0=1211 1=649 (34. bars 1080p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) test encode::tests::bd_rate_screen_native has been running for over 60 seconds | bars 1080p 1920x1024 | 43.96 dB/264019 B, 47.65 dB/387214 B, 51.09 dB/518844 B, 53.97 dB/647879 B | +21.5% | +3.7% | 37.8s:8.4s:16.4s | +bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +bars 2160p: pricer armings default=15 real=149 +bars 2160p: motion_mode 32x32 SIMPLE=45730 OBMC=0 WARP=6 | 16x16 SIMPLE=211 OBMC=0 WARP=9 | 8x8 SIMPLE=5537 OBMC=0 WARP=317 (0.0% OBMC / 0.6% WARP of 51810 eligible) +bars 2160p: inter var-tx depths of 12845 blocks -- leaf single 0=427 1=80 (15.8% split) | leaf compound 0=5080 1=676 (11.7% split) | 32x32 single 0=568 1=1663 (74.5% split) | 32x32 compound 0=110 1=4241 (97.5% split) +bars 2160p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| bars 2160p 1920x1024 | 43.61 dB/314759 B, 47.66 dB/459853 B, 51.36 dB/596600 B, 54.40 dB/714070 B | +48.3% | +20.4% | 32.2s:5.6s:16.2s | +film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +film A (1080p source): pricer armings default=20 real=217 +film A (1080p source): motion_mode 32x32 SIMPLE=63427 OBMC=0 WARP=2032 | 16x16 SIMPLE=29966 OBMC=0 WARP=2625 | 8x8 SIMPLE=10914 OBMC=0 WARP=2281 (0.0% OBMC / 6.2% WARP of 111245 eligible) +film A (1080p source): inter var-tx depths of 114875 blocks -- leaf single 0=19623 1=4907 (20.0% split) | leaf compound 0=41256 1=11823 (22.3% split) | 32x32 single 0=9247 1=6437 (41.0% split) | 32x32 compound 0=12947 1=8635 (40.0% split) +film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| film A (1080p source) 1920x768 | 43.45 dB/72608 B, 45.36 dB/121963 B, 46.82 dB/218318 B, 47.98 dB/397376 B | +54.1% | +24.2% | 58.9s:9.5s:13.6s | +film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +film B (2160p HDR source): pricer armings default=17 real=194 +film B (2160p HDR source): motion_mode 32x32 SIMPLE=90680 OBMC=0 WARP=1169 | 16x16 SIMPLE=23506 OBMC=0 WARP=976 | 8x8 SIMPLE=3306 OBMC=0 WARP=1170 (0.0% OBMC / 2.7% WARP of 120807 eligible) +film B (2160p HDR source): inter var-tx depths of 101802 blocks -- leaf single 0=18886 1=5121 (21.3% split) | leaf compound 0=31381 1=7835 (20.0% split) | 32x32 single 0=12097 1=9516 (44.0% split) | 32x32 compound 0=10521 1=6445 (38.0% split) +film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| film B (2160p HDR source) 1920x1024 | 46.48 dB/38089 B, 47.91 dB/74527 B, 49.07 dB/169528 B, 50.05 dB/340970 B | +82.6% | +47.4% | 63.2s:18.7s:16.4s | +screen capture (2026-07-25 02-09-04.mkv): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective None +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 +screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=81719 OBMC=0 WARP=2056 | 16x16 SIMPLE=4530 OBMC=0 WARP=772 | 8x8 SIMPLE=1003 OBMC=0 WARP=906 (0.0% OBMC / 4.1% WARP of 90986 eligible) +screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 18765 blocks -- leaf single 0=2093 1=2172 (50.9% split) | leaf compound 0=2264 1=1810 (44.4% split) | 32x32 single 0=2293 1=4692 (67.2% split) | 32x32 compound 0=1342 1=2099 (61.0% split) +screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 10148 chroma 1331; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 46.00 dB/45256 B, 48.82 dB/57616 B, 51.21 dB/74177 B, 53.49 dB/96308 B | +50.1% | -15.4% | 31.1s:8.4s:11.3s | +test encode::tests::bd_rate_screen_native ... ok + +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 362.70s + +RC=0