forge
Explore
Log in

Don't you dare go Hollow

ec59f4c4a10a062af214f72f54925e3013e7b03dAhmet Kaan GümüşParent: 52db304
  • docs
    • step 1 report
Show full message
docs(lane-b64b): step 1 report
lanes/b64b.report.mdadded+53 -0
@@ -0,0 +1,53 @@
1+# lane-b64b — the 64x64 root: compound, var-tx, edge, intra
2+
3+Branch `lane-b64b`, base `12a8c4a7`. Scope: `crates/ec-av1/src/encode.rs`'s 64
4+root (`search_skip_64`, its residual arm, `sb64_legal`), `tile.rs`'s
5+`Quadrant::Whole64` writer arm, tests.
6+
7+## Step 1 — COMPOUND references at the 64 root (commit `b9a4d589`)
8+
9+Search: `search_skip_64` takes this superblock's `LAST` + GOLDEN/ALTREF
10+compound stacks (`find_mv_stack_compound` at the 16x16-mi window the writer
11+rebuilds from) and prices three modes — `NEAREST_NEARESTMV`,
12+`GLOBAL_GLOBALMV`, `NEW_NEARESTMV` — through `predict_compound_u8`, a heap
13+counterpart of `predict_u8` on the same `predict_compound_intermediate` +
14+`combine_compound` path (`mc_trial_compound`'s fixed buffers are sized for a
15+32x32 block, so they cannot serve a 64 root). Every candidate is compared
16+against the single-reference arm at ONE syntax price: `fixed` minus the single
17+reference tree, plus the pair tree and the compound mode symbol.
18+
19+DEVIATION from the charter, named: `NEAREST_NEWMV` and `NEW_NEWMV` are NOT
20+offered. Both need the SECOND reference's own `NEWMV` vector, which only a
21+second 64x64 motion search per superblock produces — the wall this root exists
22+to save (`b64_residual`'s doc: a root that wins is four quadrant searches that
23+never run). The three modes above cost no extra search.
24+
25+Writer: the `Whole64` arm's "a 64x64 root block is coded single-reference"
26+refusal is gone; a compound root codes `comp_mode` 1 and the whole
27+`write_compound_block` chain at `(bw4, bh4) = (16, 16)`, publishes both
28+references and both vectors into the MI grid, writes NO `motion_mode` symbol
29+(libaom's `motion_mode_allowed` refuses a compound block) and stamps
30+`record_block_compound` so the next block reads the right compound contexts.
31+
32+`EC_AV1_B64COMP=0` restores the single-reference root, so both arms measure on
33+one build.
34+
35+### Exactness
36+
37+`encoder::tests::a_crossfade_clip_codes_a_compound_64x64_root_and_decodes_sample_exact`
38+— a 9-picture linear crossfade between two test cards, so on a leaf frame the
39+average of `LAST` and `ALTREF` IS the source: 2 compound 64x64 roots fire and
40+every frame decodes sample-exact through our decoder AND ffmpeg, with
41+`EC_COMP_MISMATCH=1` printing nothing.
42+
43+## Step 2 — depth-1 var-tx under the 64 root
44+
45+(pending)
46+
47+## Step 3 — EDGE superblocks
48+
49+(pending)
50+
51+## Step 4 — INTRA 64x64 root
52+
53+(pending)
lanes/b64b/bin-r1added+0 -0

Binary file changed

lanes/b64b/r1-off.logadded+47 -0
@@ -0,0 +1,47 @@
1+
2+running 1 test
3+
4+native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
8+bars 1080p: pricer armings default=17 real=186
9+bars 1080p: motion_mode 32x32 SIMPLE=50273 OBMC=0 WARP=178 | 16x16 SIMPLE=4821 OBMC=0 WARP=316 | 8x8 SIMPLE=17680 OBMC=0 WARP=1286 (0.0% OBMC / 2.4% WARP of 74554 eligible)
10+bars 1080p: inter var-tx depths of 11490 blocks -- leaf single 0=1833 1=1120 (37.9% split) | leaf compound 0=909 1=635 (41.1% split) | 32x32 single 0=790 1=1741 (68.8% split) | 32x32 compound 0=2249 1=2213 (49.6% split)
11+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)
12+bars 1080p: filter intra on=true blocks 29430 (modes DC=7287 V=3047 H=5419 D157=9114 PAETH=4563)
13+test encode::tests::bd_rate_screen_native has been running for over 60 seconds
14+| bars 1080p 1920x1024 | 44.10 dB/218144 B, 47.66 dB/318010 B, 51.05 dB/439435 B, 54.25 dB/587007 B | +1.7% | -14.5% | 43.4s:9.1s:21.5s |
15+bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
16+bars 2160p: pricer armings default=14 real=172
17+bars 2160p: motion_mode 32x32 SIMPLE=40526 OBMC=0 WARP=275 | 16x16 SIMPLE=2452 OBMC=0 WARP=801 | 8x8 SIMPLE=7250 OBMC=0 WARP=461 (0.0% OBMC / 3.0% WARP of 51765 eligible)
18+bars 2160p: inter var-tx depths of 9016 blocks -- leaf single 0=1113 1=512 (31.5% split) | leaf compound 0=1107 1=240 (17.8% split) | 32x32 single 0=378 1=1204 (76.1% split) | 32x32 compound 0=144 1=4318 (96.8% split)
19+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)
20+bars 2160p: filter intra on=true blocks 11967 (modes DC=3217 V=773 H=2519 D157=3855 PAETH=1603)
21+| bars 2160p 1920x1024 | 43.70 dB/228646 B, 47.60 dB/341309 B, 51.18 dB/452951 B, 54.52 dB/582847 B | +12.2% | -10.2% | 41.1s:8.9s:26.4s |
22+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
23+film A (1080p source): pricer armings default=20 real=212
24+film A (1080p source): motion_mode 32x32 SIMPLE=41371 OBMC=0 WARP=1393 | 16x16 SIMPLE=20213 OBMC=0 WARP=2070 | 8x8 SIMPLE=4708 OBMC=0 WARP=1038 (0.0% OBMC / 6.4% WARP of 70793 eligible)
25+film A (1080p source): inter var-tx depths of 85428 blocks -- leaf single 0=15069 1=2749 (15.4% split) | leaf compound 0=31906 1=6568 (17.1% split) | 32x32 single 0=7219 1=5640 (43.9% split) | 32x32 compound 0=9936 1=6341 (39.0% split)
26+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)
27+film A (1080p source): filter intra on=true blocks 24625 (modes DC=6298 V=3531 H=4705 D157=7026 PAETH=3065)
28+| film A (1080p source) 1920x768 | 44.23 dB/75096 B, 45.82 dB/125659 B, 47.05 dB/217532 B, 48.31 dB/518999 B | +37.5% | +7.6% | 94.1s:13.5s:21.4s |
29+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
30+film B (2160p HDR source): pricer armings default=20 real=189
31+film B (2160p HDR source): motion_mode 32x32 SIMPLE=51091 OBMC=0 WARP=1231 | 16x16 SIMPLE=13800 OBMC=0 WARP=1158 | 8x8 SIMPLE=1892 OBMC=0 WARP=478 (0.0% OBMC / 4.1% WARP of 69650 eligible)
32+film B (2160p HDR source): inter var-tx depths of 75827 blocks -- leaf single 0=14308 1=2386 (14.3% split) | leaf compound 0=27605 1=4672 (14.5% split) | 32x32 single 0=7920 1=5847 (42.5% split) | 32x32 compound 0=8142 1=4947 (37.8% split)
33+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)
34+film B (2160p HDR source): filter intra on=true blocks 18014 (modes DC=4944 V=2455 H=2591 D157=6224 PAETH=1800)
35+| film B (2160p HDR source) 1920x1024 | 46.69 dB/34137 B, 48.03 dB/69950 B, 49.15 dB/149378 B, 50.29 dB/399139 B | +54.1% | +23.9% | 88.7s:22.9s:17.4s |
36+screen capture (2026-07-25 02-09-04.mkv): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective None
37+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
38+screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=23654 OBMC=0 WARP=160 | 16x16 SIMPLE=1322 OBMC=0 WARP=318 | 8x8 SIMPLE=562 OBMC=0 WARP=576 (0.0% OBMC / 4.0% WARP of 26592 eligible)
39+screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 34092 blocks -- leaf single 0=5772 1=7043 (55.0% split) | leaf compound 0=2826 1=2851 (50.2% split) | 32x32 single 0=6059 1=8017 (57.0% split) | 32x32 compound 0=860 1=664 (43.6% split)
40+screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 9907 chroma 1109; intrabc blocks 0 (searched 0 / valid 0 / won 0)
41+screen capture (2026-07-25 02-09-04.mkv): filter intra on=true blocks 8198 (modes DC=98 V=2410 H=5376 D157=223 PAETH=91)
42+| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 45.87 dB/40155 B, 48.55 dB/51325 B, 50.86 dB/63998 B, 53.07 dB/80203 B | +33.4% | -23.8% | 50.0s:11.6s:15.5s |
43+test encode::tests::bd_rate_screen_native ... ok
44+
45+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 602 filtered out; finished in 519.46s
46+
47+RC=0
lanes/b64b/r1-on.logadded+47 -0
@@ -0,0 +1,47 @@
1+
2+running 1 test
3+
4+native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
8+bars 1080p: pricer armings default=17 real=185
9+bars 1080p: motion_mode 32x32 SIMPLE=36908 OBMC=0 WARP=163 | 16x16 SIMPLE=4594 OBMC=0 WARP=318 | 8x8 SIMPLE=18266 OBMC=0 WARP=1382 (0.0% OBMC / 3.0% WARP of 61631 eligible)
10+bars 1080p: inter var-tx depths of 11232 blocks -- leaf single 0=1669 1=1025 (38.0% split) | leaf compound 0=885 1=616 (41.0% split) | 32x32 single 0=756 1=1777 (70.2% split) | 32x32 compound 0=2250 1=2254 (50.0% split)
11+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)
12+bars 1080p: filter intra on=true blocks 29028 (modes DC=6905 V=3000 H=5419 D157=9117 PAETH=4587)
13+test encode::tests::bd_rate_screen_native has been running for over 60 seconds
14+| bars 1080p 1920x1024 | 44.11 dB/217737 B, 47.66 dB/318868 B, 51.05 dB/440424 B, 54.26 dB/587284 B | +1.8% | -14.4% | 44.1s:9.2s:21.6s |
15+bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
16+bars 2160p: pricer armings default=14 real=175
17+bars 2160p: motion_mode 32x32 SIMPLE=31585 OBMC=0 WARP=290 | 16x16 SIMPLE=2756 OBMC=0 WARP=678 | 8x8 SIMPLE=7509 OBMC=0 WARP=447 (0.0% OBMC / 3.3% WARP of 43265 eligible)
18+bars 2160p: inter var-tx depths of 9192 blocks -- leaf single 0=1220 1=600 (33.0% split) | leaf compound 0=1083 1=221 (16.9% split) | 32x32 single 0=371 1=1234 (76.9% split) | 32x32 compound 0=141 1=4322 (96.8% split)
19+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)
20+bars 2160p: filter intra on=true blocks 12387 (modes DC=3329 V=811 H=2621 D157=3956 PAETH=1670)
21+| bars 2160p 1920x1024 | 43.68 dB/229668 B, 47.60 dB/340632 B, 51.18 dB/453178 B, 54.52 dB/582676 B | +12.3% | -10.2% | 42.0s:9.2s:26.8s |
22+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
23+film A (1080p source): pricer armings default=20 real=214
24+film A (1080p source): motion_mode 32x32 SIMPLE=33077 OBMC=0 WARP=1298 | 16x16 SIMPLE=19240 OBMC=0 WARP=1887 | 8x8 SIMPLE=4708 OBMC=0 WARP=931 (0.0% OBMC / 6.7% WARP of 61141 eligible)
25+film A (1080p source): inter var-tx depths of 85244 blocks -- leaf single 0=15366 1=2875 (15.8% split) | leaf compound 0=31528 1=6450 (17.0% split) | 32x32 single 0=7510 1=5922 (44.1% split) | 32x32 compound 0=9593 1=6000 (38.5% split)
26+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)
27+film A (1080p source): filter intra on=true blocks 24000 (modes DC=6012 V=3472 H=4526 D157=6964 PAETH=3026)
28+| film A (1080p source) 1920x768 | 44.29 dB/73949 B, 45.82 dB/123906 B, 47.03 dB/213467 B, 48.28 dB/508664 B | +35.5% | +5.6% | 94.9s:13.6s:21.7s |
29+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 })
30+film B (2160p HDR source): pricer armings default=20 real=189
31+film B (2160p HDR source): motion_mode 32x32 SIMPLE=35371 OBMC=0 WARP=1194 | 16x16 SIMPLE=12510 OBMC=0 WARP=1144 | 8x8 SIMPLE=2069 OBMC=0 WARP=483 (0.0% OBMC / 5.3% WARP of 52771 eligible)
32+film B (2160p HDR source): inter var-tx depths of 75130 blocks -- leaf single 0=14148 1=2497 (15.0% split) | leaf compound 0=27160 1=4854 (15.2% split) | 32x32 single 0=8028 1=5889 (42.3% split) | 32x32 compound 0=7821 1=4733 (37.7% split)
33+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)
34+film B (2160p HDR source): filter intra on=true blocks 17165 (modes DC=4796 V=2302 H=2518 D157=5821 PAETH=1728)
35+| film B (2160p HDR source) 1920x1024 | 46.91 dB/33324 B, 48.04 dB/67896 B, 49.10 dB/143229 B, 50.25 dB/388721 B | +47.8% | +17.1% | 86.8s:22.9s:18.0s |
36+screen capture (2026-07-25 02-09-04.mkv): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 12, mid_q_offset: Some(-8), quarter_q_offset: None, key_q_offset: -48 }) effective None
37+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
38+screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=7132 OBMC=0 WARP=150 | 16x16 SIMPLE=1241 OBMC=0 WARP=301 | 8x8 SIMPLE=538 OBMC=0 WARP=523 (0.0% OBMC / 9.9% WARP of 9885 eligible)
39+screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 38200 blocks -- leaf single 0=2224 1=2714 (55.0% split) | leaf compound 0=7816 1=8960 (53.4% split) | 32x32 single 0=4619 1=6300 (57.7% split) | 32x32 compound 0=2607 1=2960 (53.2% split)
40+screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 9909 chroma 1109; intrabc blocks 0 (searched 0 / valid 0 / won 0)
41+screen capture (2026-07-25 02-09-04.mkv): filter intra on=true blocks 8200 (modes DC=97 V=2409 H=5380 D157=222 PAETH=92)
42+| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 45.86 dB/40256 B, 48.56 dB/51515 B, 50.86 dB/64136 B, 53.07 dB/80386 B | +33.7% | -23.6% | 50.3s:11.8s:14.5s |
43+test encode::tests::bd_rate_screen_native ... ok
44+
45+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 602 filtered out; finished in 523.30s
46+
47+RC=0