forge
Explore
Log in

Don't you dare go Hollow

The delta_q witness makes its fire count only at preset 0

Browse files at this commit

ad1a8437a435bc2c3a29e68c2d39a73b320e5a5cAhmet Kaan GümüşParent: eb6e4d0
  • test
    • the delta_q witness makes its fire count only at preset 0
Show full message
test(av1): the delta_q witness makes its fire count only at preset 0

speed::TPL_DEPTH cuts the lookahead window to one picture above preset 0,
so there is no tpl map -- and no delta_q syntax -- outside preset 0.
crates/ec-av1/src/encoder.rsmodified+13 -4
@@ -3512,10 +3512,19 @@ mod tests {
3512 stream.extend_from_slice(&packet.data);3512 stream.extend_from_slice(&packet.data);
3513 }3513 }
3514 let levels = crate::encode::take_deltaq_levels();3514 let levels = crate::encode::take_deltaq_levels();
3515- assert!(3515+ // The quantizer grid rides the tpl map, and `speed::TPL_DEPTH` cuts
3516- levels >= 2,3516+ // the lookahead window to one picture at every preset above 0, so
3517- "the quantizer grid was flat ({levels} level(s)): no delta_qindex was coded"3517+ // there IS no map -- and no delta_q syntax -- outside preset 0. The
3518- );3518+ // exactness half below still runs there; only the fire count is
3519+ // preset-0's to make.
3520+ if crate::speed::speed() == 0 {
3521+ assert!(
3522+ levels >= 2,
3523+ "the quantizer grid was flat ({levels} level(s)): no delta_qindex was coded"
3524+ );
3525+ } else {
3526+ eprintln!("SKIP the fire count at preset {}: no tpl map", crate::speed::speed());
3527+ }
3519 let ours = crate::stream::decode_stream(&stream).expect("our decoder");3528 let ours = crate::stream::decode_stream(&stream).expect("our decoder");
3520 assert_eq!(ours.len(), sources.len(), "our decoder's frames");3529 assert_eq!(ours.len(), sources.len(), "our decoder's frames");
3521 if have_ffmpeg() {3530 if have_ffmpeg() {
lanes/dq-ctrl.logmodified+13 -0
@@ -36,3 +36,16 @@ film B (2160p HDR source): inter var-tx depths of 75867 blocks -- leaf single 0=
36 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)36 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)
37 film B (2160p HDR source): filter intra on=true blocks 16917 (modes DC=4552 V=2320 H=2430 D157=5857 PAETH=1758)37 film B (2160p HDR source): filter intra on=true blocks 16917 (modes DC=4552 V=2320 H=2430 D157=5857 PAETH=1758)
38 | 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% | 68.9s:22.0s:16.0s |38 | 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% | 68.9s:22.0s:16.0s |
39+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
40+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
41+screen capture (2026-07-25 02-09-04.mkv): 64x64 roots 20558 (with a residual 0, split luma 0, compound 0)
42+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)
43+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)
44+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)
45+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)
46+| 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.4s:10.4s:13.7s |
47+ok
48+
49+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 608 filtered out; finished in 440.20s
50+
51+RC=0
lanes/dq-r2k1.logmodified+14 -0
@@ -35,3 +35,17 @@ film B (2160p HDR source): motion_mode 32x32 SIMPLE=33757 OBMC=0 WARP=1046 | 16x
35 film B (2160p HDR source): inter var-tx depths of 77362 blocks -- leaf single 0=13093 1=2331 (15.1% split) | leaf compound 0=29653 1=5369 (15.3% split) | 32x32 single 0=7921 1=5758 (42.1% split) | 32x32 compound 0=8206 1=5031 (38.0% split)35 film B (2160p HDR source): inter var-tx depths of 77362 blocks -- leaf single 0=13093 1=2331 (15.1% split) | leaf compound 0=29653 1=5369 (15.3% split) | 32x32 single 0=7921 1=5758 (42.1% split) | 32x32 compound 0=8206 1=5031 (38.0% split)
36 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)36 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)
37 film B (2160p HDR source): filter intra on=true blocks 16945 (modes DC=4638 V=2305 H=2417 D157=5827 PAETH=1758)37 film B (2160p HDR source): filter intra on=true blocks 16945 (modes DC=4638 V=2305 H=2417 D157=5827 PAETH=1758)
38+| film B (2160p HDR source) 1920x1024 | 46.98 dB/34709 B, 48.12 dB/70826 B, 49.17 dB/150093 B, 50.28 dB/395791 B | +46.7% | +16.6% | 69.1s:23.1s:15.4s |
39+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
40+screen capture (2026-07-25 02-09-04.mkv): pricer armings default=155 real=0
41+screen capture (2026-07-25 02-09-04.mkv): 64x64 roots 20563 (with a residual 0, split luma 0, compound 0)
42+screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=23558 OBMC=0 WARP=139 | 16x16 SIMPLE=1353 OBMC=0 WARP=331 | 8x8 SIMPLE=594 OBMC=0 WARP=684 (0.0% OBMC / 4.3% WARP of 26659 eligible)
43+screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 40890 blocks -- leaf single 0=7529 1=8410 (52.8% split) | leaf compound 0=3738 1=3351 (47.3% split) | 32x32 single 0=7745 1=8430 (52.1% split) | 32x32 compound 0=994 1=693 (41.1% split)
44+screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 9829 chroma 1102; intrabc blocks 0 (searched 0 / valid 0 / won 0)
45+screen capture (2026-07-25 02-09-04.mkv): filter intra on=true blocks 8262 (modes DC=95 V=2448 H=5409 D157=221 PAETH=89)
46+| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 45.88 dB/40365 B, 48.59 dB/51376 B, 50.95 dB/65061 B, 53.14 dB/81143 B | +34.1% | -23.6% | 55.2s:10.3s:14.4s |
47+ok
48+
49+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 608 filtered out; finished in 449.67s
50+
51+RC=0