forge
Explore
Log in

Don't you dare go Hollow

wip(av1): i64 lane snapshot at the turn cap (orchestrator)

Browse files at this commit

7e0ace976fb91ab61ee8d58e91590f67c3c4952bAhmet Kaan GümüşParent: bbc059f
crates/ec-av1/src/encode.rsmodified+4 -1
@@ -14316,8 +14316,11 @@ mod tests {
14316 // references and depth-1 var-tx, on top of the tpl window and the14316 // references and depth-1 var-tx, on top of the tpl window and the
14317 // ARF's second reference from lane-arfcen. `EC_AV1_B64COMP=014317 // ARF's second reference from lane-arfcen. `EC_AV1_B64COMP=0
14318 // EC_AV1_B64VARTX=0` restores 9853 / 35866.14318 // EC_AV1_B64VARTX=0` restores 9853 / 35866.
14319+ // Re-taken on lane-i64: the KEY frame -- one of these four pictures --
14320+ // offers every superblock a 64x64 intra root now, and 31-45% of them
14321+ // are coded whole. `EC_AV1_I64=0` restores 9808 / 35791.
14319 let pins: [(u8, usize, u64); 2] =14322 let pins: [(u8, usize, u64); 2] =
14320- [(150, 9808, 0xb71a_2a4c_0aff_713c), (60, 35791, 0x57a3_93fa_5324_255b)];14323+ [(150, 9843, 0xa47d_588d_8b92_624c), (60, 35834, 0xbef4_a521_3553_81f3)];
14321 for (q, bytes, hash) in pins {14324 for (q, bytes, hash) in pins {
14322 let encoded = encode_sequence(&source, q, 0.5).unwrap();14325 let encoded = encode_sequence(&source, q, 0.5).unwrap();
14323 assert_eq!(14326 assert_eq!(
lanes/i64/r1-off.logmodified+50 -0
@@ -4,3 +4,53 @@ test encode::tests::bd_rate_screen_native ...
4 native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 1284 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) |5 | clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6 |---|---|---|---|---|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=184
9+bars 1080p: key 64x64 intra roots 0 of 0 offered (0.0%)
10+bars 1080p: 64x64 roots 17517 (with a residual 12680, split luma 3147, compound 7657)
11+bars 1080p: motion_mode 32x32 SIMPLE=32530 OBMC=0 WARP=224 | 16x16 SIMPLE=4477 OBMC=0 WARP=576 | 8x8 SIMPLE=16655 OBMC=0 WARP=1069 (0.0% OBMC / 3.4% WARP of 55531 eligible)
12+bars 1080p: inter var-tx depths of 11179 blocks -- leaf single 0=1646 1=1191 (42.0% split) | leaf compound 0=840 1=601 (41.7% split) | 32x32 single 0=785 1=1824 (69.9% split) | 32x32 compound 0=2121 1=2171 (50.6% split)
13+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)
14+bars 1080p: filter intra on=true blocks 29255 (modes DC=6958 V=3291 H=5589 D157=8762 PAETH=4655)
15+| bars 1080p 1920x1024 | 44.17 dB/217969 B, 47.71 dB/320944 B, 51.09 dB/442499 B, 54.30 dB/592258 B | +1.8% | -14.4% | 39.3s:7.2s:17.9s |
16+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 })
17+bars 2160p: pricer armings default=14 real=171
18+bars 2160p: key 64x64 intra roots 0 of 0 offered (0.0%)
19+bars 2160p: 64x64 roots 18483 (with a residual 12366, split luma 2442, compound 6718)
20+bars 2160p: motion_mode 32x32 SIMPLE=27815 OBMC=0 WARP=280 | 16x16 SIMPLE=2569 OBMC=0 WARP=629 | 8x8 SIMPLE=6855 OBMC=0 WARP=215 (0.0% OBMC / 2.9% WARP of 38363 eligible)
21+bars 2160p: inter var-tx depths of 9151 blocks -- leaf single 0=1260 1=523 (29.3% split) | leaf compound 0=1086 1=268 (19.8% split) | 32x32 single 0=391 1=1233 (75.9% split) | 32x32 compound 0=175 1=4215 (96.0% split)
22+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)
23+bars 2160p: filter intra on=true blocks 12531 (modes DC=3289 V=748 H=2666 D157=4107 PAETH=1721)
24+| bars 2160p 1920x1024 | 43.69 dB/231175 B, 47.61 dB/341600 B, 51.20 dB/455550 B, 54.54 dB/584210 B | +12.6% | -9.9% | 41.1s:7.1s:19.2s |
25+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 })
26+film A (1080p source): pricer armings default=20 real=213
27+film A (1080p source): key 64x64 intra roots 0 of 0 offered (0.0%)
28+film A (1080p source): 64x64 roots 9184 (with a residual 6132, split luma 2902, compound 3587)
29+film A (1080p source): motion_mode 32x32 SIMPLE=32120 OBMC=0 WARP=1129 | 16x16 SIMPLE=19154 OBMC=0 WARP=1686 | 8x8 SIMPLE=4971 OBMC=0 WARP=959 (0.0% OBMC / 6.3% WARP of 60019 eligible)
30+film A (1080p source): inter var-tx depths of 85205 blocks -- leaf single 0=13756 1=2673 (16.3% split) | leaf compound 0=32829 1=6881 (17.3% split) | 32x32 single 0=7393 1=5732 (43.7% split) | 32x32 compound 0=9874 1=6067 (38.1% split)
31+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)
32+film A (1080p source): filter intra on=true blocks 23573 (modes DC=6103 V=3470 H=4339 D157=6770 PAETH=2891)
33+| film A (1080p source) 1920x768 | 44.33 dB/74306 B, 45.84 dB/124416 B, 47.04 dB/213610 B, 48.29 dB/508783 B | +34.8% | +5.0% | 78.2s:11.2s:16.3s |
34+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 })
35+film B (2160p HDR source): pricer armings default=20 real=189
36+film B (2160p HDR source): key 64x64 intra roots 0 of 0 offered (0.0%)
37+film B (2160p HDR source): 64x64 roots 15265 (with a residual 6697, split luma 2052, compound 7180)
38+film B (2160p HDR source): motion_mode 32x32 SIMPLE=34383 OBMC=0 WARP=1084 | 16x16 SIMPLE=12348 OBMC=0 WARP=964 | 8x8 SIMPLE=2108 OBMC=0 WARP=359 (0.0% OBMC / 4.7% WARP of 51246 eligible)
39+film B (2160p HDR source): inter var-tx depths of 75867 blocks -- leaf single 0=12990 1=2179 (14.4% split) | leaf compound 0=28745 1=5183 (15.3% split) | 32x32 single 0=7860 1=5938 (43.0% split) | 32x32 compound 0=8021 1=4951 (38.2% split)
40+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)
41+film B (2160p HDR source): filter intra on=true blocks 16917 (modes DC=4552 V=2320 H=2430 D157=5857 PAETH=1758)
42+| film B (2160p HDR source) 1920x1024 | 46.95 dB/33881 B, 48.06 dB/68679 B, 49.13 dB/144407 B, 50.24 dB/387536 B | +47.0% | +16.5% | 77.8s:21.4s:16.2s |
43+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
44+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
45+screen capture (2026-07-25 02-09-04.mkv): key 64x64 intra roots 0 of 0 offered (0.0%)
46+screen capture (2026-07-25 02-09-04.mkv): 64x64 roots 20558 (with a residual 0, split luma 0, compound 0)
47+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)
48+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)
49+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)
50+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)
51+| 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% | 42.7s:10.4s:13.3s |
52+ok
53+
54+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 608 filtered out; finished in 446.14s
55+
56+RC=0
lanes/i64/r1-on.logmodified+50 -0
@@ -4,3 +4,53 @@ test encode::tests::bd_rate_screen_native ...
4 native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 1284 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) |5 | clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6 |---|---|---|---|---|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=18 real=183
9+bars 1080p: key 64x64 intra roots 1532 of 1920 offered (79.8%)
10+bars 1080p: 64x64 roots 17487 (with a residual 12672, split luma 3126, compound 7178)
11+bars 1080p: motion_mode 32x32 SIMPLE=32858 OBMC=0 WARP=191 | 16x16 SIMPLE=4516 OBMC=0 WARP=555 | 8x8 SIMPLE=16514 OBMC=0 WARP=1336 (0.0% OBMC / 3.7% WARP of 55970 eligible)
12+bars 1080p: inter var-tx depths of 11105 blocks -- leaf single 0=1516 1=1228 (44.8% split) | leaf compound 0=827 1=625 (43.0% split) | 32x32 single 0=806 1=1789 (68.9% split) | 32x32 compound 0=2158 1=2156 (50.0% split)
13+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)
14+bars 1080p: filter intra on=true blocks 29152 (modes DC=7028 V=3105 H=5667 D157=8739 PAETH=4613)
15+| bars 1080p 1920x1024 | 44.17 dB/218532 B, 47.72 dB/322269 B, 51.09 dB/441922 B, 54.30 dB/592150 B | +1.9% | -14.3% | 38.8s:7.2s:17.9s |
16+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 })
17+bars 2160p: pricer armings default=15 real=173
18+bars 2160p: key 64x64 intra roots 1703 of 1920 offered (88.7%)
19+bars 2160p: 64x64 roots 18449 (with a residual 12364, split luma 2450, compound 7196)
20+bars 2160p: motion_mode 32x32 SIMPLE=27505 OBMC=0 WARP=254 | 16x16 SIMPLE=2753 OBMC=0 WARP=655 | 8x8 SIMPLE=7260 OBMC=0 WARP=210 (0.0% OBMC / 2.9% WARP of 38637 eligible)
21+bars 2160p: inter var-tx depths of 9044 blocks -- leaf single 0=1154 1=555 (32.5% split) | leaf compound 0=1044 1=246 (19.1% split) | 32x32 single 0=374 1=1299 (77.6% split) | 32x32 compound 0=161 1=4211 (96.3% split)
22+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)
23+bars 2160p: filter intra on=true blocks 12660 (modes DC=3372 V=761 H=2666 D157=4124 PAETH=1737)
24+| bars 2160p 1920x1024 | 43.69 dB/231623 B, 47.62 dB/341401 B, 51.20 dB/456385 B, 54.53 dB/584164 B | +12.7% | -9.8% | 39.9s:7.4s:19.2s |
25+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 })
26+film A (1080p source): pricer armings default=20 real=213
27+film A (1080p source): key 64x64 intra roots 452 of 1440 offered (31.4%)
28+film A (1080p source): 64x64 roots 9185 (with a residual 6144, split luma 2878, compound 3551)
29+film A (1080p source): motion_mode 32x32 SIMPLE=32258 OBMC=0 WARP=1341 | 16x16 SIMPLE=18891 OBMC=0 WARP=1683 | 8x8 SIMPLE=4985 OBMC=0 WARP=956 (0.0% OBMC / 6.6% WARP of 60114 eligible)
30+film A (1080p source): inter var-tx depths of 85205 blocks -- leaf single 0=13944 1=2703 (16.2% split) | leaf compound 0=32679 1=6851 (17.3% split) | 32x32 single 0=7306 1=5886 (44.6% split) | 32x32 compound 0=9826 1=6010 (38.0% split)
31+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)
32+film A (1080p source): filter intra on=true blocks 22564 (modes DC=5654 V=3251 H=4215 D157=6542 PAETH=2902)
33+| film A (1080p source) 1920x768 | 44.32 dB/73671 B, 45.82 dB/122002 B, 47.04 dB/208249 B, 48.29 dB/508783 B | +33.2% | +3.7% | 80.3s:11.1s:16.2s |
34+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 })
35+film B (2160p HDR source): pricer armings default=19 real=190
36+film B (2160p HDR source): key 64x64 intra roots 862 of 1920 offered (44.9%)
37+film B (2160p HDR source): 64x64 roots 15281 (with a residual 6651, split luma 2011, compound 7145)
38+film B (2160p HDR source): motion_mode 32x32 SIMPLE=34185 OBMC=0 WARP=1117 | 16x16 SIMPLE=12394 OBMC=0 WARP=976 | 8x8 SIMPLE=2100 OBMC=0 WARP=441 (0.0% OBMC / 4.9% WARP of 51213 eligible)
39+film B (2160p HDR source): inter var-tx depths of 75880 blocks -- leaf single 0=12960 1=2179 (14.4% split) | leaf compound 0=28673 1=5260 (15.5% split) | 32x32 single 0=7500 1=6206 (45.3% split) | 32x32 compound 0=8075 1=5027 (38.4% split)
40+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)
41+film B (2160p HDR source): filter intra on=true blocks 15022 (modes DC=4082 V=2075 H=2133 D157=5121 PAETH=1611)
42+| film B (2160p HDR source) 1920x1024 | 46.94 dB/33223 B, 48.05 dB/65045 B, 49.11 dB/135839 B, 50.24 dB/387536 B | +42.4% | +12.2% | 79.7s:21.4s:16.0s |
43+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
44+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
45+screen capture (2026-07-25 02-09-04.mkv): key 64x64 intra roots 877 of 1920 offered (45.7%)
46+screen capture (2026-07-25 02-09-04.mkv): 64x64 roots 20559 (with a residual 0, split luma 0, compound 0)
47+screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=24149 OBMC=0 WARP=157 | 16x16 SIMPLE=1331 OBMC=0 WARP=307 | 8x8 SIMPLE=563 OBMC=0 WARP=641 (0.0% OBMC / 4.1% WARP of 27148 eligible)
48+screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 33477 blocks -- leaf single 0=5822 1=6897 (54.2% split) | leaf compound 0=2951 1=2680 (47.6% split) | 32x32 single 0=5971 1=7624 (56.1% split) | 32x32 compound 0=852 1=680 (44.4% split)
49+screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 8747 chroma 987; intrabc blocks 0 (searched 0 / valid 0 / won 0)
50+screen capture (2026-07-25 02-09-04.mkv): filter intra on=true blocks 6772 (modes DC=90 V=2134 H=4228 D157=227 PAETH=93)
51+| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 46.10 dB/40698 B, 48.62 dB/51429 B, 50.90 dB/63951 B, 53.10 dB/80142 B | +32.8% | -24.2% | 42.3s:10.5s:13.3s |
52+ok
53+
54+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 608 filtered out; finished in 447.89s
55+
56+RC=0