From 7e798a7663ac3663dfca397695007c3819765768 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 19:06:28 +0300 Subject: [PATCH] docs(lane-sse): instrument table, before/after gate arms, invariants --- lanes/sse-1080-after.log | 34 +++++ lanes/sse-1080-before.log | 34 +++++ lanes/sse-4k-after.log | 58 +++++++ lanes/sse-4k-before.log | 58 +++++++ lanes/sse-792-after.log | 60 ++++++++ lanes/sse-792-before.log | 60 ++++++++ lanes/sse-suite.log | 308 ++++++++++++++++++++++++++++++++++++++ lanes/sse.report.md | 93 ++++++++++++ 8 files changed, 705 insertions(+) create mode 100644 lanes/sse-1080-after.log create mode 100644 lanes/sse-1080-before.log create mode 100644 lanes/sse-4k-after.log create mode 100644 lanes/sse-4k-before.log create mode 100644 lanes/sse-792-after.log create mode 100644 lanes/sse-792-before.log create mode 100644 lanes/sse-suite.log create mode 100644 lanes/sse.report.md diff --git a/lanes/sse-1080-after.log b/lanes/sse-1080-after.log new file mode 100644 index 00000000..31507c52 --- /dev/null +++ b/lanes/sse-1080-after.log @@ -0,0 +1,34 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 1080p: edge 8x8 scores=960 inside_sse=0 padding_sse=288 (100.0% of raw) +bars 1080p: edge 16x16 scores=3911 inside_sse=58676812 padding_sse=19548435 (25.0% of raw) +bars 1080p: edge 32x32 scores=22030 inside_sse=306104516 padding_sse=43773571 (12.5% of raw) +bars 1080p: edge 64x64 scores=8831 inside_sse=170331423 padding_sse=24328832 (12.5% of raw) +bars 1080p: pricer armings default=17 real=182 +bars 1080p: 64x64 roots 18649 (with a residual 13455, split luma 3328, compound 7665) +bars 1080p: motion_mode 32x32 SIMPLE=34617 OBMC=0 WARP=146 | 16x16 SIMPLE=5316 OBMC=0 WARP=364 | 8x8 SIMPLE=12757 OBMC=0 WARP=1643 (0.0% OBMC / 3.9% WARP of 54843 eligible) +bars 1080p: inter var-tx depths of 12742 blocks -- leaf single 0=1551 1=1206 (43.7% split) | leaf compound 0=1828 1=667 (26.7% split) | 32x32 single 0=680 1=1969 (74.3% split) | 32x32 compound 0=902 1=3939 (81.4% split) +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) +bars 1080p: filter intra on=true blocks 18678 (modes DC=4101 V=2750 H=3464 D157=5694 PAETH=2669) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "20"] frame 1 plane Y sample 4: our decoder decoded 80, ffmpeg 79 +| bars 1080p 1920x1080 | 44.08 dB/224463 B, 47.80 dB/335377 B, 51.16 dB/456394 B, 54.43 dB/601842 B | +8.7% | -4.1% | 43.8s:10.3s:23.7s | + +thread 'encode::tests::bd_rate_screen_native' (2340661) panicked at crates/ec-av1/src/encode.rs:15036:9: +1920x1080 does not fit in 1920x792 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 83.93s + +RC=101 diff --git a/lanes/sse-1080-before.log b/lanes/sse-1080-before.log new file mode 100644 index 00000000..50f044c8 --- /dev/null +++ b/lanes/sse-1080-before.log @@ -0,0 +1,34 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 1080p: edge 8x8 scores=960 inside_sse=0 padding_sse=288 (100.0% of raw) +bars 1080p: edge 16x16 scores=3911 inside_sse=58676812 padding_sse=19548435 (25.0% of raw) +bars 1080p: edge 32x32 scores=22030 inside_sse=306104516 padding_sse=43773571 (12.5% of raw) +bars 1080p: edge 64x64 scores=8831 inside_sse=170331423 padding_sse=24328832 (12.5% of raw) +bars 1080p: pricer armings default=17 real=182 +bars 1080p: 64x64 roots 18649 (with a residual 13455, split luma 3328, compound 7665) +bars 1080p: motion_mode 32x32 SIMPLE=34617 OBMC=0 WARP=146 | 16x16 SIMPLE=5316 OBMC=0 WARP=364 | 8x8 SIMPLE=12757 OBMC=0 WARP=1643 (0.0% OBMC / 3.9% WARP of 54843 eligible) +bars 1080p: inter var-tx depths of 12742 blocks -- leaf single 0=1551 1=1206 (43.7% split) | leaf compound 0=1828 1=667 (26.7% split) | 32x32 single 0=680 1=1969 (74.3% split) | 32x32 compound 0=902 1=3939 (81.4% split) +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) +bars 1080p: filter intra on=true blocks 18678 (modes DC=4101 V=2750 H=3464 D157=5694 PAETH=2669) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "20"] frame 1 plane Y sample 4: our decoder decoded 80, ffmpeg 79 +| bars 1080p 1920x1080 | 44.08 dB/224463 B, 47.80 dB/335377 B, 51.16 dB/456394 B, 54.43 dB/601842 B | +8.7% | -4.1% | 43.5s:9.9s:24.0s | + +thread 'encode::tests::bd_rate_screen_native' (2340664) panicked at crates/ec-av1/src/encode.rs:15036:9: +1920x1080 does not fit in 1920x792 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 83.71s + +RC=101 diff --git a/lanes/sse-4k-after.log b/lanes/sse-4k-after.log new file mode 100644 index 00000000..5f9b4525 --- /dev/null +++ b/lanes/sse-4k-after.log @@ -0,0 +1,58 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 2160p: edge 8x8 scores=5760 inside_sse=0 padding_sse=34972 (100.0% of raw) +bars 2160p: edge 16x16 scores=10080 inside_sse=36517083 padding_sse=89020200 (70.9% of raw) +bars 2160p: edge 32x32 scores=8838 inside_sse=6769810 padding_sse=4792852 (41.5% of raw) +bars 2160p: pricer armings default=18 real=195 +bars 2160p: 64x64 roots 56802 (with a residual 38900, split luma 8110, compound 27286) +bars 2160p: motion_mode 32x32 SIMPLE=93785 OBMC=0 WARP=446 | 16x16 SIMPLE=8556 OBMC=0 WARP=1350 | 8x8 SIMPLE=25942 OBMC=0 WARP=5253 (0.0% OBMC / 5.2% WARP of 135332 eligible) +bars 2160p: inter var-tx depths of 39419 blocks -- leaf single 0=4336 1=1851 (29.9% split) | leaf compound 0=9598 1=1722 (15.2% split) | 32x32 single 0=1168 1=3853 (76.7% split) | 32x32 compound 0=1026 1=15865 (93.9% 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: filter intra on=true blocks 79944 (modes DC=17941 V=11545 H=14793 D157=23635 PAETH=12030) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6127315: our decoder decoded 40, ffmpeg 41 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6131868: our decoder decoded 170, ffmpeg 171 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115985: our decoder decoded 107, ffmpeg 106 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115963: our decoder decoded 107, ffmpeg 106 +| bars 2160p 3840x1608 | 42.90 dB/806220 B, 46.61 dB/1251296 B, 50.13 dB/1715735 B, 53.42 dB/2246249 B | +14.7% | -6.9% | 136.5s:21.1s:61.6s | +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 }) +film B (2160p HDR source): edge 8x8 scores=5760 inside_sse=0 padding_sse=165902 (100.0% of raw) +film B (2160p HDR source): edge 16x16 scores=11483 inside_sse=439629 padding_sse=1047490 (70.4% of raw) +film B (2160p HDR source): edge 32x32 scores=9276 inside_sse=1844054 padding_sse=2460517 (57.2% of raw) +film B (2160p HDR source): pricer armings default=19 real=193 +film B (2160p HDR source): 64x64 roots 50232 (with a residual 18867, split luma 5030, compound 23956) +film B (2160p HDR source): motion_mode 32x32 SIMPLE=104624 OBMC=0 WARP=2460 | 16x16 SIMPLE=31905 OBMC=0 WARP=2334 | 8x8 SIMPLE=7335 OBMC=0 WARP=5319 (0.0% OBMC / 6.6% WARP of 153977 eligible) +film B (2160p HDR source): inter var-tx depths of 217071 blocks -- leaf single 0=35268 1=6425 (15.4% split) | leaf compound 0=84168 1=15864 (15.9% split) | 32x32 single 0=23231 1=17140 (42.5% split) | 32x32 compound 0=22427 1=12548 (35.9% 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): filter intra on=true blocks 57181 (modes DC=14938 V=7845 H=7920 D157=20637 PAETH=5841) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6135269: our decoder decoded 125, ffmpeg 126 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6142306: our decoder decoded 92, ffmpeg 91 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6153641: our decoder decoded 101, ffmpeg 100 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6130674: our decoder decoded 90, ffmpeg 89 +| film B (2160p HDR source) 3840x1608 | 46.59 dB/131226 B, 47.90 dB/261390 B, 49.13 dB/519990 B, 50.27 dB/1252762 B | +35.8% | +17.6% | 224.1s:61.5s:53.6s | + +thread 'encode::tests::bd_rate_screen_native' (2514358) panicked at crates/ec-av1/src/encode.rs:13856:9: +8 reference ladder point(s) did not decode exactly through our decoder: +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6127315: our decoder decoded 40, ffmpeg 41 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6131868: our decoder decoded 170, ffmpeg 171 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115985: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115963: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6135269: our decoder decoded 125, ffmpeg 126 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6142306: our decoder decoded 92, ffmpeg 91 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6153641: our decoder decoded 101, ffmpeg 100 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6130674: our decoder decoded 90, ffmpeg 89 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 586.46s + +RC=101 diff --git a/lanes/sse-4k-before.log b/lanes/sse-4k-before.log new file mode 100644 index 00000000..2da905e5 --- /dev/null +++ b/lanes/sse-4k-before.log @@ -0,0 +1,58 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 2160p: edge 8x8 scores=5760 inside_sse=0 padding_sse=13759 (100.0% of raw) +bars 2160p: edge 16x16 scores=10086 inside_sse=36436700 padding_sse=88872804 (70.9% of raw) +bars 2160p: edge 32x32 scores=8736 inside_sse=6781157 padding_sse=4236165 (38.5% of raw) +bars 2160p: pricer armings default=18 real=195 +bars 2160p: 64x64 roots 56802 (with a residual 38900, split luma 8110, compound 27286) +bars 2160p: motion_mode 32x32 SIMPLE=93785 OBMC=0 WARP=446 | 16x16 SIMPLE=8556 OBMC=0 WARP=1350 | 8x8 SIMPLE=25942 OBMC=0 WARP=5253 (0.0% OBMC / 5.2% WARP of 135332 eligible) +bars 2160p: inter var-tx depths of 39419 blocks -- leaf single 0=4336 1=1851 (29.9% split) | leaf compound 0=9598 1=1722 (15.2% split) | 32x32 single 0=1168 1=3853 (76.7% split) | 32x32 compound 0=1026 1=15865 (93.9% 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: filter intra on=true blocks 79944 (modes DC=17941 V=11545 H=14793 D157=23635 PAETH=12030) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6127315: our decoder decoded 40, ffmpeg 41 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6131868: our decoder decoded 170, ffmpeg 171 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115985: our decoder decoded 107, ffmpeg 106 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115963: our decoder decoded 107, ffmpeg 106 +| bars 2160p 3840x1608 | 42.90 dB/806220 B, 46.61 dB/1251296 B, 50.13 dB/1715735 B, 53.42 dB/2246249 B | +14.7% | -6.9% | 136.8s:20.9s:61.5s | +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 }) +film B (2160p HDR source): edge 8x8 scores=5760 inside_sse=0 padding_sse=160870 (100.0% of raw) +film B (2160p HDR source): edge 16x16 scores=11822 inside_sse=451847 padding_sse=1062028 (70.2% of raw) +film B (2160p HDR source): edge 32x32 scores=9636 inside_sse=1931899 padding_sse=2544818 (56.8% of raw) +film B (2160p HDR source): pricer armings default=19 real=193 +film B (2160p HDR source): 64x64 roots 50232 (with a residual 18867, split luma 5030, compound 23956) +film B (2160p HDR source): motion_mode 32x32 SIMPLE=104624 OBMC=0 WARP=2460 | 16x16 SIMPLE=31905 OBMC=0 WARP=2334 | 8x8 SIMPLE=7335 OBMC=0 WARP=5319 (0.0% OBMC / 6.6% WARP of 153977 eligible) +film B (2160p HDR source): inter var-tx depths of 217071 blocks -- leaf single 0=35268 1=6425 (15.4% split) | leaf compound 0=84168 1=15864 (15.9% split) | 32x32 single 0=23231 1=17140 (42.5% split) | 32x32 compound 0=22427 1=12548 (35.9% 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): filter intra on=true blocks 57181 (modes DC=14938 V=7845 H=7920 D157=20637 PAETH=5841) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6135269: our decoder decoded 125, ffmpeg 126 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6142306: our decoder decoded 92, ffmpeg 91 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6153641: our decoder decoded 101, ffmpeg 100 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6130674: our decoder decoded 90, ffmpeg 89 +| film B (2160p HDR source) 3840x1608 | 46.59 dB/131226 B, 47.90 dB/261390 B, 49.13 dB/519990 B, 50.27 dB/1252762 B | +35.8% | +17.6% | 221.5s:61.2s:53.7s | + +thread 'encode::tests::bd_rate_screen_native' (2514361) panicked at crates/ec-av1/src/encode.rs:13856:9: +8 reference ladder point(s) did not decode exactly through our decoder: +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6127315: our decoder decoded 40, ffmpeg 41 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6131868: our decoder decoded 170, ffmpeg 171 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115985: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6115963: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6135269: our decoder decoded 125, ffmpeg 126 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6142306: our decoder decoded 92, ffmpeg 91 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6153641: our decoder decoded 101, ffmpeg 100 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 6130674: our decoder decoded 90, ffmpeg 89 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 584.06s + +RC=101 diff --git a/lanes/sse-792-after.log b/lanes/sse-792-after.log new file mode 100644 index 00000000..5c504fab --- /dev/null +++ b/lanes/sse-792-after.log @@ -0,0 +1,60 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 1080p: edge 8x8 scores=960 inside_sse=0 padding_sse=3584 (100.0% of raw) +bars 1080p: edge 16x16 scores=51780 inside_sse=184517941 padding_sse=59682853 (24.4% of raw) +bars 1080p: edge 32x32 scores=33197 inside_sse=211907113 padding_sse=55299738 (20.7% of raw) +bars 1080p: pricer armings default=18 real=181 +bars 1080p: 64x64 roots 12879 (with a residual 9586, split luma 2622, compound 4902) +bars 1080p: motion_mode 32x32 SIMPLE=28351 OBMC=0 WARP=206 | 16x16 SIMPLE=3508 OBMC=0 WARP=417 | 8x8 SIMPLE=8284 OBMC=0 WARP=1909 (0.0% OBMC / 5.9% WARP of 42675 eligible) +bars 1080p: inter var-tx depths of 11113 blocks -- leaf single 0=1442 1=1124 (43.8% split) | leaf compound 0=1651 1=523 (24.1% split) | 32x32 single 0=599 1=1537 (72.0% split) | 32x32 compound 0=803 1=3434 (81.0% split) +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) +bars 1080p: filter intra on=true blocks 16456 (modes DC=3638 V=2376 H=2911 D157=5027 PAETH=2504) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500774: our decoder decoded 42, ffmpeg 41 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500931: our decoder decoded 105, ffmpeg 106 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1501049: our decoder decoded 123, ffmpeg 122 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500785: our decoder decoded 107, ffmpeg 106 +| bars 1080p 1920x792 | 42.60 dB/220495 B, 46.34 dB/337918 B, 49.79 dB/467682 B, 53.10 dB/613770 B | +14.0% | +1.4% | 37.3s:6.4s:17.8s | +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 }) +film A (1080p source): edge 8x8 scores=960 inside_sse=0 padding_sse=52870 (100.0% of raw) +film A (1080p source): edge 16x16 scores=75698 inside_sse=29785412 padding_sse=9999651 (25.1% of raw) +film A (1080p source): edge 32x32 scores=44740 inside_sse=161811991 padding_sse=44523877 (21.6% of raw) +film A (1080p source): pricer armings default=20 real=214 +film A (1080p source): 64x64 roots 9300 (with a residual 6033, split luma 3003, compound 3636) +film A (1080p source): motion_mode 32x32 SIMPLE=35555 OBMC=0 WARP=1204 | 16x16 SIMPLE=18196 OBMC=0 WARP=1332 | 8x8 SIMPLE=4419 OBMC=0 WARP=871 (0.0% OBMC / 5.5% WARP of 61577 eligible) +film A (1080p source): inter var-tx depths of 84624 blocks -- leaf single 0=13801 1=2731 (16.5% split) | leaf compound 0=32683 1=6521 (16.6% split) | 32x32 single 0=7280 1=5899 (44.8% split) | 32x32 compound 0=9695 1=6014 (38.3% 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): filter intra on=true blocks 22070 (modes DC=5417 V=3501 H=3992 D157=6271 PAETH=2889) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1494211: our decoder decoded 64, ffmpeg 63 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1479397: our decoder decoded 48, ffmpeg 49 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460032: our decoder decoded 47, ffmpeg 46 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460334: our decoder decoded 49, ffmpeg 50 +| film A (1080p source) 1920x792 | 44.35 dB/79716 B, 45.88 dB/131827 B, 47.08 dB/223892 B, 48.33 dB/525372 B | +36.1% | +7.4% | 84.9s:11.5s:17.6s | + +thread 'encode::tests::bd_rate_screen_native' (2413136) panicked at crates/ec-av1/src/encode.rs:13856:9: +9 reference ladder point(s) did not decode exactly through our decoder: +libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500774: our decoder decoded 42, ffmpeg 41 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500931: our decoder decoded 105, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1501049: our decoder decoded 123, ffmpeg 122 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500785: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1494211: our decoder decoded 64, ffmpeg 63 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1479397: our decoder decoded 48, ffmpeg 49 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460032: our decoder decoded 47, ffmpeg 46 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460334: our decoder decoded 49, ffmpeg 50 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 184.43s + +RC=101 diff --git a/lanes/sse-792-before.log b/lanes/sse-792-before.log new file mode 100644 index 00000000..6ce3fdd9 --- /dev/null +++ b/lanes/sse-792-before.log @@ -0,0 +1,60 @@ + +running 1 test +test encode::tests::bd_rate_screen_native ... +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +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 }) +bars 1080p: edge 8x8 scores=960 inside_sse=0 padding_sse=3008 (100.0% of raw) +bars 1080p: edge 16x16 scores=51332 inside_sse=185146766 padding_sse=59712033 (24.4% of raw) +bars 1080p: edge 32x32 scores=32964 inside_sse=213557850 padding_sse=55647550 (20.7% of raw) +bars 1080p: pricer armings default=18 real=180 +bars 1080p: 64x64 roots 12879 (with a residual 9602, split luma 2617, compound 4860) +bars 1080p: motion_mode 32x32 SIMPLE=28380 OBMC=0 WARP=215 | 16x16 SIMPLE=3709 OBMC=0 WARP=512 | 8x8 SIMPLE=7417 OBMC=0 WARP=2039 (0.0% OBMC / 6.5% WARP of 42272 eligible) +bars 1080p: inter var-tx depths of 11230 blocks -- leaf single 0=1546 1=1179 (43.3% split) | leaf compound 0=1640 1=522 (24.1% split) | 32x32 single 0=599 1=1531 (71.9% split) | 32x32 compound 0=807 1=3406 (80.8% split) +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) +bars 1080p: filter intra on=true blocks 16212 (modes DC=3662 V=2406 H=2859 D157=4771 PAETH=2514) +LADDER DECODE FAILURE: libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500774: our decoder decoded 42, ffmpeg 41 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500931: our decoder decoded 105, ffmpeg 106 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1501049: our decoder decoded 123, ffmpeg 122 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500785: our decoder decoded 107, ffmpeg 106 +| bars 1080p 1920x792 | 42.60 dB/220445 B, 46.34 dB/338256 B, 49.78 dB/467568 B, 53.10 dB/611693 B | +14.0% | +1.5% | 36.8s:6.4s:17.8s | +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 }) +film A (1080p source): edge 8x8 scores=960 inside_sse=0 padding_sse=51397 (100.0% of raw) +film A (1080p source): edge 16x16 scores=75977 inside_sse=30141822 padding_sse=10212135 (25.3% of raw) +film A (1080p source): edge 32x32 scores=44824 inside_sse=163228694 padding_sse=44888695 (21.6% of raw) +film A (1080p source): pricer armings default=20 real=215 +film A (1080p source): 64x64 roots 9339 (with a residual 6029, split luma 3036, compound 3676) +film A (1080p source): motion_mode 32x32 SIMPLE=35490 OBMC=0 WARP=1226 | 16x16 SIMPLE=17812 OBMC=0 WARP=1407 | 8x8 SIMPLE=4222 OBMC=0 WARP=810 (0.0% OBMC / 5.6% WARP of 60967 eligible) +film A (1080p source): inter var-tx depths of 84796 blocks -- leaf single 0=13860 1=2663 (16.1% split) | leaf compound 0=32810 1=6546 (16.6% split) | 32x32 single 0=7276 1=5925 (44.9% split) | 32x32 compound 0=9685 1=6031 (38.4% 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): filter intra on=true blocks 22531 (modes DC=5579 V=3482 H=4021 D157=6558 PAETH=2891) +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1494211: our decoder decoded 64, ffmpeg 63 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1479397: our decoder decoded 48, ffmpeg 49 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460032: our decoder decoded 47, ffmpeg 46 +LADDER DECODE FAILURE: librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460334: our decoder decoded 49, ffmpeg 50 +| film A (1080p source) 1920x792 | 44.35 dB/79563 B, 45.87 dB/132071 B, 47.08 dB/223693 B, 48.33 dB/525562 B | +36.2% | +7.5% | 85.2s:11.5s:17.7s | + +thread 'encode::tests::bd_rate_screen_native' (2413139) panicked at crates/ec-av1/src/encode.rs:13856:9: +9 reference ladder point(s) did not decode exactly through our decoder: +libaom-av1 ["-cpu-used", "6", "-b:v", "0", "-crf", "5"]: our decoder refused the stream (unsupported: AV1 tile (a Golomb tail longer than this decoder reads)) +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500774: our decoder decoded 42, ffmpeg 41 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500931: our decoder decoded 105, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1501049: our decoder decoded 123, ffmpeg 122 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1500785: our decoder decoded 107, ffmpeg 106 +librav1e ["-rav1e-params", "speed=6:quantizer=50:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1494211: our decoder decoded 64, ffmpeg 63 +librav1e ["-rav1e-params", "speed=6:quantizer=100:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1479397: our decoder decoded 48, ffmpeg 49 +librav1e ["-rav1e-params", "speed=6:quantizer=150:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460032: our decoder decoded 47, ffmpeg 46 +librav1e ["-rav1e-params", "speed=6:quantizer=200:tile_cols=1:tile_rows=1:threads=1"] frame 0 plane Y sample 1460334: our decoder decoded 49, ffmpeg 50 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +FAILED + +failures: + +failures: + encode::tests::bd_rate_screen_native + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 607 filtered out; finished in 184.38s + +RC=101 diff --git a/lanes/sse-suite.log b/lanes/sse-suite.log new file mode 100644 index 00000000..a87caedd --- /dev/null +++ b/lanes/sse-suite.log @@ -0,0 +1,308 @@ + +running 608 tests +test bits::tests::su_roundtrip ... ok +test bits::tests::delta_q_roundtrip ... ok +test bits::tests::uvlc_roundtrip ... ok +test cdf::tests::eob_pt_class1_rows_cover_every_size ... ok +test bits::tests::ns_roundtrip ... ok +test bits::tests::leb128_roundtrip ... ok +test cdf_state::tests::the_luma_end_of_block_table_is_shared_and_chromas_is_not ... ok +test cdf::tests::inter_frame_tables_are_well_formed_cdfs ... ok +test cdf::tests::inter_frame_tables_have_the_spec_alphabet_size ... ok +test cdf_state::tests::the_mv_components_are_separate_and_do_not_share_adaptation ... ok +test cdf_state::tests::the_sign_tables_are_shared_within_a_plane_type_and_not_across ... ok +test cdf_state::tests::the_state_starts_at_the_defaults ... ok +test bits::tests::le_roundtrip ... ok +test compound::tests::zero_distance_reference_takes_the_index_3_row ... ok +test decode::tests::a_frame_with_no_mode_info_grid_is_refused ... ok +test compound::tests::weights_always_sum_to_sixteen ... ok +test cdf_state::tests::the_two_luma_sets_share_the_base_range_table ... ok +test decode::every_intra_in_inter_shape_the_census_lists_has_a_size_group_row ... ok +test compound::tests::equidistant_references_pick_the_first_weight_row ... ok +test decode::every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan ... ok +test decode::a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered ... ok +test decode::every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row ... ok +test decode::size_group_wh_matches_libaom_size_group_lookup ... ok +test bits::tests::trailing_bits_and_byte_alignment_are_byte_aligned ... ok +test decode::sub_tx_size_map_matches_libaom ... ok +test decode::tests::a_non_split_inter_sb_partition_refuses_by_name_instead_of_desyncing ... ok +test decode::tests::a_rect_strip_below_16x16_reads_its_own_filter_intra_cdf_row ... ok +test decode::tests::a_selected_reference_with_an_empty_ref_frame_idx_slot_refuses_by_name ... ok +test decode::tests::an_inter_chroma_transform_narrows_its_inherited_tx_type_to_its_own_set ... ok +test decode::tests::base_ctx_rect_offsets_match_the_transcribed_tables_over_the_whole_domain ... ok +test decode::tests::cdef_gather_and_shifted_constrain_match_the_spec_forms ... ok +test decode::tests::compound_mode_ctx_map_matches_libaom_corners ... ok +test decode::tests::an_obmc_neighbour_with_no_recorded_filter_refuses_instead_of_panicking ... ok +test decode::tests::a_sub16_leaf_after_a_palette_block_yields_palette_ctx_zero ... ok +test decode::tests::a_nearmv_block_predicts_from_the_stacks_second_candidate ... ok +test decode::tests::a_skipped_block_decodes_to_pure_prediction ... ok +test decode::tests::cdef_find_dir_matches_the_per_sample_reference ... ok +test decode::tests::flat_taps_match_the_row_col_neighbour_reads ... ok +test decode::tests::every_inter_record_publishes_an_obmc_readable_filter ... ok +test decode::tests::filter_intra_classes_carry_their_own_libaom_default_row ... ok +test decode::tests::is_uni_comp_ref_matches_forward_backward_sides ... ok +test decode::tests::narrowed_publish_surface_keeps_neighbour_semantics ... ok +test decode::tests::padded_level_buffers_cover_every_neighbour_read_at_every_transform_size ... ok +test decode::tests::a_key_frames_tile_needs_the_headers_own_tx_select_bit ... ok +test decode::tests::record_compound_ctx_stamps_ref1_for_the_next_block_to_read ... ok +test decode::tests::scan_8x4_and_4x8_are_not_transposed_against_each_other ... ok +test decode::tests::the_rect4_scans_are_transposed_pairs ... ok +test decode::tx4x8_table_tests::the_32_position_eob_tables_are_well_formed ... ok +test decode::tx4x8_table_tests::the_rect_4x8_scans_are_each_other_transposed ... ok +test decode::tx4x8_table_tests::the_rect_class1_scans_match_libaom ... ok +test decode::tx4x8_table_tests::the_sub8_rect_reach_tables_are_shape_specific ... ok +test decode::tests::deblock_simd_kernel_matches_the_scalar_filter ... ok +test decode::tests::a_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::a_block_the_frame_edge_cuts_is_scored_over_its_inside_only ... ok +test encode::tests::a_flat_picture_costs_almost_nothing ... ok +test encode::tests::a_frame_of_real_video_decodes_to_what_the_encoder_reconstructed ... ok +test decode::tests::an_odd_size_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::real_yuv_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::a_mode_the_encoder_cannot_predict_is_refused ... ok +test encode::tests::a_picture_off_the_block_grid_encodes_and_a_malformed_one_is_refused ... ok +test decode::tests::every_intra_mode_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::cdef_simd_kernel_matches_the_scalar_filter ... ok +test decode::tests::a_filter_intra_key_frame_decodes_pixel_exact_through_ffmpeg ... ok +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_gop ... ok +test decode::tests::leaf8_straddle_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::bd_rate_film_long_gop ... ignored, the long-GOP native BD arm: ~7 minutes per film row, needs ffmpeg +test encode::tests::bd_rate_screen_native ... ignored, the native-resolution BD arm: minutes per row, needs ffmpeg +test encode::tests::bd_rate_vs_libaom_and_rav1e ... ignored, the encoder BD-rate baseline: minutes per clip, needs ffmpeg +test encode::tests::calibration_sweep_base_q_idx ... ignored, a calibration probe, not a gate +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_key_frame ... ok +test encode::tests::a_640x360_half_straddle_sequence_round_trips_through_ffmpeg ... ok +test encode::tests::a_640x360_half_straddle_round_trips_through_ffmpeg_across_three_frames ... ok +test encode::tests::every_rect_shape_reaches_what_libaom_says_over_the_whole_superblock ... ok +test decode::tests::odd_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::a_frame_round_trips_at_its_own_size ... ok +test encode::tests::a_nearestmv_block_with_one_nonzero_coefficient_decodes_clean ... ok +test encode::tests::a_repeated_pattern_key_frame_codes_intrabc_blocks_ffmpeg_decodes_exactly ... ok +test encode::tests::every_mode_decodes_to_what_the_encoder_predicted ... ok +test encode::tests::odd_dimensions_are_refused ... ok +test encode::tests::of_tu_follows_the_block_row_including_under_vert_ab ... ok +test encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit ... ok +test encode::tests::every_frame_of_a_sequence_decodes_through_our_own_decoder ... ok +test encode::tests::pricer_error_census_on_clips ... ignored, reads the real library, needs ffmpeg +test encode::tests::probe_directional ... ignored, a sweep, not a gate +test encode::tests::probe_intrabc_key_frame ... ignored, needs the real-library manifest and ffmpeg +test encode::tests::probe_ladder ... ignored, a sweep, not a gate +test encode::tests::probe_lambda ... ignored, a sweep, not a gate +test encode::tests::probe_parity_point ... ignored, diagnostic: needs ffmpeg and a clip +test encode::tests::probe_screen_detect ... ignored, reads the real library +test encode::tests::probe_screen_library ... ignored, reads the real library +test encode::tests::probe_split ... ignored, a sweep, not a gate +test encode::tests::prune_k_quality_sweep ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge +test encode::tests::prune_k_quality_sweep_inter ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge +test encode::tests::reach_matches_libaom_has_top_right_and_has_bottom_left ... ok +test encode::tests::key_frame_and_inter_frame_both_encode_at_half_straddle_size ... ok +test encode::tests::predicted_coeff_bits_track_the_tile_the_writer_wrote ... ok +test encode::tests::rect_reach_tables_are_indexed_with_a_32_mi_row_stride ... ok +test encode::tests::sequence_bench_sanity ... ignored, a perf probe, not a gate +test encode::tests::low_motion_makes_an_inter_frame_smaller_than_the_key_frame ... ok +test encode::tests::stage_timing_breakdown ... ignored, a perf probe, not a gate +test encode::tests::stage_timing_breakdown_inter ... ignored, a perf probe, not a gate +test encode::tests::pricer_error_census_by_block_class ... ok +test encode::tests::the_encoded_picture_is_the_one_that_went_in ... ok +test encode::tests::a_single_axis_straddle_round_trips_through_ffmpeg ... ok +test encode::tests::every_frame_of_a_sequence_decodes_to_what_the_encoder_reconstructed ... ok +test encode::tests::fidelity_and_rate_move_with_the_quantizer ... ok +test encode::tests::the_filter_search_picks_real_filters ... ok +test encode::tests::sequence_round_trips_at_a_non_multiple_size ... ok +test encode::tests::an_854x480_picture_round_trips_through_its_padding ... ok +test encode::tests::the_diagonals_beat_the_modes_that_read_no_further ... ok +test encode::tests::tpl_factors_are_flat_on_a_uniform_repeat_and_fall_where_the_window_leans ... ok +test encode::tests::tpl_intra_denominator_histogram ... ignored, needs ffmpeg and the film fixtures +test encode::tests::vert_ab_partition_flips_below_left_for_the_top_right_8x8 ... ok +test encoder::tests::a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders ... ignored, 1080p encode: minutes, run it with --ignored +test encode::tests::a_screen_content_picture_codes_palette_blocks_ffmpeg_decodes_exactly ... ok +test encode::tests::ffmpeg_decodes_exactly_what_the_encoder_reconstructed ... ok +test encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins ... ok +test encode::tests::a_sequence_round_trips_at_the_exactly_half_straddle_size ... ok +test encode::tests::real_clip_encodes_within_its_quality_and_size_budget_at_a_straddle_size ... ok +test encode::tests::real_clip_encodes_within_its_quality_and_size_budget ... ok +test encode::tests::the_final_filter_replay_matches_the_capture_decode_at_odd_sizes ... ok +test encode::tests::the_probe_arms_the_gates_source ... ok +test encode::tests::the_search_picks_the_diagonal_the_picture_runs ... ok +test encode::tests::the_search_picks_the_direction_the_picture_runs ... ok +test encoder::tests::a_1080p_shaped_clip_straddles_at_every_block_size_and_decodes_sample_exact ... ok +test encoder::tests::a_crossfade_clip_codes_a_compound_64x64_root_and_decodes_sample_exact ... ok +test encoder::tests::a_dc_stepped_clip_codes_a_64x64_residual_and_decodes_sample_exact ... ok +test encoder::tests::a_four_level_pyramid_stream_decodes_in_display_order ... ok +test encoder::tests::every_speed_preset_decodes_sample_exact_through_both_decoders ... ignored, sets the process-global speed preset: run it alone +test encoder::tests::a_high_frequency_clip_splits_the_64x64_roots_luma_and_decodes_sample_exact ... ok +test encoder::tests::a_non_superblock_aligned_clip_codes_edge_64x64_roots_and_decodes_sample_exact ... ok +test encoder::tests::a_pyramid_stream_decodes_in_display_order_through_both_decoders ... ok +test encoder::tests::a_static_clip_codes_64x64_roots_and_decodes_sample_exact ... ok +test encoder::tests::filter_stage_wall_1080p ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::filter_stage_wall_4k ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::filter_stage_wall_film ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::a_three_level_pyramid_stream_decodes_in_display_order ... ok +test encoder::tests::filter_stage_bytes_do_not_depend_on_the_thread_count ... ok +test encoder::tests::geometry_mismatch_is_refused ... ok +test encoder::tests::one_in_one_out_delayed_by_the_lookahead_depth ... ok +test encode::tests::the_search_beats_dc_alone ... ok +test encoder::tests::bt709_limited_colour_is_reported_by_ffprobe ... ok +test encoder::tests::gop_cadence_is_honored ... ok +test encoder::tests::the_mini_gop_layout_leaves_no_short_tail ... ok +test encoder::tests::bt601_limited_colour_is_reported_by_ffprobe ... ok +test encoder::tests::the_key_q_offset_reaches_the_key_frame ... ok +test encoder::tests::the_content_gate_keeps_screen_streams_flat ... ok +test encoder::tests::tile_search_wall_1080p ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::tile_search_wall_4k ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::tile_wall_table_at_1080p ... ignored, 1080p wall table: minutes, run it with --ignored +test encoder::tests::thirty_pictures_at_gop_fifteen_decode_to_two_key_frames ... ok +test envflags::tests::snapshot_matches_process_env ... ok +test film_grain::grain2_tests::untouched_planes_and_ragged_tail_come_back_clean ... ok +test film_grain::perf5_tests::simd_matches_scalar_chroma_noise_row ... ok +test film_grain::perf5_tests::simd_matches_scalar_luma_noise_row ... ok +test film_grain::ragged_grain_tests::ragged_overlap_tail_matches_spec_reference ... ok +test filter_search::tests::unit_sse_matches_the_naive_sum ... ok +test frame::tests::four_tile_columns_roundtrip ... ok +test frame::tests::key_and_inter_frames_roundtrip ... ok +test frame::tests::key_frame_header_roundtrips ... ok +test frame::tests::loop_restoration_roundtrips_with_its_own_type_codes ... ok +test frame::tests::segmentation_and_delta_q_roundtrip ... ok +test frame::tests::unsupported_frames_are_refused_by_name ... ok +test gate_coverage::tests::default_on_tools_do_not_duplicate_the_universe ... ok +test gate_coverage::tests::every_gate_disabling_a_tool_is_a_listed_coverage_hole ... ok +test gate_coverage::tests::never_exercised_10bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_on_10bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_on_8bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::print_never_exercised_per_bit_depth ... ok +test gate_coverage::tests::print_never_on_per_bit_depth ... ok +test gate_coverage::tests::tool_settings_reads_whole_flags ... ok +test intra::tests::filter_intra_matches_the_libaom_predictor_for_every_mode_and_shape ... ok +test intra::tests::rect_predictors_match_c_dump ... ok +test mc::compound_intermediate_whole_pel_identity_round_trips_through_combine ... ok +test mc::tests::a_narrow_block_reads_the_regular_four_tap_kernel_under_every_sharpness ... ok +test mc::tests::constant_plane_has_unit_dc_gain_at_every_subpel_position ... ok +test mc::tests::half_pel_reproduces_the_ramp_midpoint ... ok +test mc::tests::horizontal_and_vertical_only_filtering_differ ... ok +test mc::tests::horizontal_intermediate_fits_i16 ... ok +test mc::tests::integer_mv_is_identity ... ok +test mc::tests::mv_past_the_edge_clamps_instead_of_panicking ... ok +test mc::tests::predict_scaled_at_no_scale_matches_predict_with_filters ... ok +test mc::tests::simd_matches_scalar_horizontal_pass ... ok +test mc::tests::simd_matches_scalar_vertical_pass ... ok +test mc::tests::smooth_filter_matches_aomdec_chroma_inter_block ... ok +test mc::tests::whole_pel_horizontal_matches_the_two_pass_form ... ok +test motion::tests::cost_is_monotone_non_increasing_over_the_search ... ok +test motion::tests::finds_exact_integer_translation_all_four_signs ... ok +test motion::tests::finds_half_pel_translation ... ok +test motion::tests::mv_bits_prices_a_larger_residual_higher ... ok +test motion::tests::sweep_initial_step ... ok +test motion_field::tests::an_unprojected_tpl_cell_reads_as_none_but_a_zero_mv_one_does_not ... ok +test motion_field::tests::force_integer_mv_rounds_a_projected_candidate_to_full_pel ... ok +test motion_field::tests::mv_projection_scales_by_the_distance_ratio ... ok +test motion_field::tests::probe_cell_matches_the_spec_parity_derivation ... ok +test motion_field::tests::relative_dist_wraps_at_order_hint_bits ... ok +test motion_field::tests::setup_motion_field_projects_last_frame_forward ... ok +test msac::tests::adaptive_symbols_roundtrip ... ok +test msac::tests::bulk_bit_reads_match_the_per_bit_form ... ok +test msac::tests::empty_payload_is_short ... ok +test msac::tests::fast_paths_match_the_spec_literal_walk ... ok +test msac::tests::literals_roundtrip ... ok +test msac::tests::mixed_symbols_and_literals_roundtrip ... ok +test msac::tests::skewed_symbols_cost_less_than_a_bit ... ok +test msac::tests::the_bit_account_matches_the_bytes_written ... ok +test mvstack::tests::a_candidate_far_outside_the_frame_is_clamped_to_it ... ok +test mvstack::tests::a_corner_only_match_raises_new_mv_ctx_even_when_nearest_match_is_zero ... ok +test mvstack::tests::a_diagonal_corner_match_raises_ref_mv_ctx_past_nearest_match ... ok +test mvstack::tests::a_missing_compound_combine_slot_takes_that_sides_global_mv_not_zero ... ok +test mvstack::tests::a_neighbour_coded_newmv_raises_the_new_mv_context ... ok +test mvstack::tests::a_wider_neighbour_than_the_query_block_gets_libaoms_real_weight ... ok +test mvstack::tests::all_same_mv_neighbourhood_dedupes_to_one_entry ... ok +test mvstack::tests::clamp_mv_ref_window_is_signed_at_the_frame_bottom_edge ... ok +test mvstack::tests::combine_compound_candidates_zips_ref_id_then_ref_diff_per_side ... ok +test mvstack::tests::comp_reference_type_ctx_bidir_bidir_is_zero ... ok +test mvstack::tests::comp_reference_type_ctx_intra_intra_is_two ... ok +test mvstack::tests::comp_reference_type_ctx_no_edges_is_two ... ok +test mvstack::tests::comp_reference_type_ctx_single_single ... ok +test mvstack::tests::comp_reference_type_ctx_unidir_unidir ... ok +test mvstack::tests::compound_dedupes_same_pair_and_sums_weight ... ok +test mvstack::tests::compound_extension_pass_tops_up_a_short_stack ... ok +test mvstack::tests::compound_scan_only_matches_the_exact_pair ... ok +test mvstack::tests::compound_two_distinct_pairs_sort_by_weight ... ok +test mvstack::tests::extended_col_scan_is_a_no_op_at_8mi_geometry_even_behind_an_intra_neighbour ... ok +test mvstack::tests::extended_row_scan_is_a_no_op_at_8mi_geometry_behind_an_inter_neighbour ... ok +test mvstack::tests::extended_row_scan_is_a_no_op_at_8mi_geometry_even_behind_an_intra_neighbour ... ok +test mvstack::tests::mi_info_cell_stays_compact ... ok +test mvstack::tests::mi_info_stays_small_enough_for_a_4k_grid ... ok +test mvstack::tests::mi_units_outside_the_tile_contribute_nothing ... ok +test mvstack::tests::process_compound_ref_mv_candidate_splits_exact_vs_borrowed ... ok +test mvstack::tests::reference_mode_ctx_compound_compound_is_four ... ok +test mvstack::tests::reference_mode_ctx_no_edges_is_one ... ok +test mvstack::tests::reference_mode_ctx_single_and_compound ... ok +test mvstack::tests::reference_mode_ctx_single_single ... ok +test mvstack::tests::single_ref_ctx_matches_libaoms_collapsed_forward_only_case ... ok +test mvstack::tests::the_ninth_distinct_candidate_is_dropped_at_insertion_not_after_sorting ... ok +test mvstack::tests::the_row_reach_is_clamped_to_the_tile_origin_not_the_frame_edge ... ok +test mvstack::tests::transposing_above_and_left_produces_a_different_stack ... ok +test mvstack::tests::two_distinct_neighbour_mvs_yield_two_entries_in_weight_order ... ok +test mvstack::tests::uni_comp_ref_p1_ctx_matches_ref_ctx_shape ... ok +test obu::tests::obu_header_extension_roundtrip ... ok +test obu::tests::obu_header_plain_roundtrip ... ok +test obu::tests::temporal_delimiter_is_two_bytes ... ok +test obu::tests::wrap_obu_size_field_matches_payload ... ok +test quant::tests::buffered_dequant_matches_the_per_coefficient_form ... ok +test quant::tests::denominator_follows_the_area ... ok +test quant::tests::dequant_is_symmetric_in_sign ... ok +test quant::tests::table_anchors ... ok +test refusal_inventory::tests::capability_claims_are_declared_not_scattered ... ok +test refusal_inventory::tests::every_intra_mode_symbol_of_the_y_mode_alphabet_is_coded ... ok +test refusal_inventory::tests::every_partition_value_of_an_enumerated_alphabet_has_an_arm ... ok +test refusal_inventory::tests::every_partition_value_of_an_if_chain_alphabet_is_named_by_a_branch ... ok +test refusal_inventory::tests::every_proven_refusal_names_a_test_that_exists ... ok +test refusal_inventory::tests::every_read_intra_mode_call_site_hands_the_reader_a_palette_cache ... ok +test refusal_inventory::tests::every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table ... ok +test refusal_inventory::tests::every_tx_type_symbol_of_every_cdf_width_maps_into_its_own_set ... ok +test refusal_inventory::tests::gates_that_swallow_a_decode_error_are_declared ... ok +test refusal_inventory::tests::no_128_root_half_reads_a_cfl_filter_intra_or_palette_symbol ... ok +test refusal_inventory::tests::no_block_footprint_with_a_128_pixel_side_can_carry_palette_syntax ... ok +test refusal_inventory::tests::read_golomb_reads_every_value_a_conformant_stream_can_carry ... ok +test refusal_inventory::tests::the_decode_path_refuses_exactly_the_listed_cases ... ok +test restoration::tests::signed_subexp_with_ref_roundtrips ... ok +test restoration::tests::subexp_roundtrips_every_value ... ok +test restoration::tests::unsigned_subexp_with_ref_roundtrips ... ok +test restoration::tests::wiener_filter_roundtrips ... ok +test sequence::tests::sequence_header_obu_size_matches_payload ... ok +test sequence::tests::sequence_header_roundtrip ... ok +test speed::tests::presets_are_monotone_in_speed ... ok +test speed::tests::speed_zero_disables_nothing ... ok +test encoder::tests::filter_replay_final_matches_the_capture_decode ... ok +test stream::tests::a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact ... ok +test encoder::tests::the_rate_loop_prices_the_frames_the_pyramid_codes ... ok +test encoder::tests::bytes_per_frame_controller_never_oscillates_past_its_clamp ... ok +test stream::tests::a_10bit_film_frames_with_rect64_corner_tus_decode_pixel_exact ... ok +test stream::tests::a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact ... ok +test encoder::tests::quality_target_is_monotone_in_bytes_and_psnr ... ok +test encoder::tests::filter_replay_codes_the_same_stream_as_a_full_decode ... ok +test stream::tests::a_10bit_key_frame_with_skipped_8x8_intra_leaves_that_split_their_transform_decodes_luma_exact ... ok +test stream::tests::a_128_superblock_stream_whose_skipped_blocks_are_var_tx_decodes_pixel_exact ... ok +test stream::tests::a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact ... ok +test stream::tests::a_10bit_film_hidden_arf_with_split_superblock_strips_decodes_pixel_exact ... ok +test stream::tests::a_frame_obu_that_parses_always_carries_at_least_one_tile ... ok +test stream::tests::a_frame_whose_segmentation_overrides_a_block_mode_is_refused_by_name ... ok +test encoder::tests::bytes_per_frame_target_settles_within_20_percent ... ok +test stream::tests::a_10bit_film_frames_with_frame_edge_mv_clamping_decode_pixel_exact ... ok +test stream::tests::a_hand_built_golden_reference_decodes_pixel_exact_against_ffmpeg ... ok +test stream::tests::a_block_shape_census_over_three_real_streams_leaves_the_rect_residual_refusal_unreachable ... ok +test stream::tests::a_directional_16x8_strip_reads_the_right_above_right_samples ... ok +test stream::tests::a_lossless_libaom_key_frame_decodes_sample_exact ... ok +test stream::tests::a_libaom_screen_stream_with_sub8_groups_beside_palette_blocks_decodes_exact ... ok +test stream::tests::a_libaom_stream_with_128_intra_blocks_in_inter_frames_decodes_exact ... ok +test encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence ... ok +test stream::tests::a_libaom_force_integer_mv_stream_decodes_exact ... ok +test stream::tests::a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact ... ok +test stream::tests::a_lossless_libaom_inter_frame_decodes_sample_exact ... ok +test encoder::tests::every_tile_layout_decodes_sample_exact_through_both_decoders ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_class1_chroma_eob_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_non_dc_chroma_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact ... ok +test stream::tests::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact ... ok diff --git a/lanes/sse.report.md b/lanes/sse.report.md new file mode 100644 index 00000000..a60f0296 --- /dev/null +++ b/lanes/sse.report.md @@ -0,0 +1,93 @@ +# lane-sse — the distortion metric scores the inside of the frame only + +## What was wrong + +`Plane::block_sse` — the RD distortion every mode, transform, CfL alpha and +partition trial in `encode.rs` is ranked by — summed the squared error over +the WHOLE block, including the part past the true frame edge. Those samples +are the encoder's own edge-replicated padding: the decoder reconstructs them +and the display crop throws them away. lane-b64b fixed the 64x64 root alone +(`inside_sse`/`clip_sb64_sse`); every other size, shape and tool still paid. + +The clip now lives in `block_sse` itself, so all callers are fixed once +(libaom does the same in `av1_dist_block`, over `max_blocks_wide/high`). +`inside_sse`/`clip_sb64_sse` and the `edge` flag at the 64 root are deleted — +they became no-ops. `ibc_sse` (intrabc's whole-block distortion) clips too. + +Knobs: `EC_AV1_EDGESSE=0` restores the padding-inclusive score (the before +arm); `EC_AV1_EDGE_CENSUS=1` prints the straddling-block census; +`EC_AV1_NATIVE_CROP=x` puts the native BD gate on a window that is NOT +superblock-aligned (`probe::gate_crop` rounds down to whole 128-wide +superblocks by design, so no default gate row straddles at all). + +## Instrument — straddling blocks and their padding share (12 frames, 4 q points) + +`EC_AV1_EDGE_CENSUS=1`, one line per block size that fired. "scores" counts +every `block_sse` call on a block the edge cuts, trials included. + +CHARTER CORRECTION: film A is coded **1920x792**, not 1080p, so the straddling +film-A arm is its own full frame (1920x792 = 6.19 superblock rows), not a +1920x1080 crop (`EC_AV1_NATIVE_CROP=1920x1080` asserts "does not fit"). +A 1920x1080 arm was still run on the 1080p bars fixture. + +| arm | size | 8x8 | 16x16 | 32x32 | 64x64 | +|---|---|---|---|---|---| +| bars 1080p | 1920x1080 | 960 scores, 100% pad | 3911, 25.0% | 22030, 12.5% | 8831, 12.5% | +| bars 1080p | 1920x792 | 960, 100% | 51780, 24.4% | 33197, 20.7% | — | +| film A | 1920x792 | 960, 100% | 75698, 25.1% | 44740, 21.6% | — | +| bars 2160p | 3840x1608 | 5760, 100% | 10080, 70.9% | 8838, 41.5% | — | +| film B | 3840x1608 | 5760, 100% | 11483, 70.4% | 9276, 57.2% | — | + +Read: on his real 4K film, **57% of the raw squared error of every straddling +32x32 block sat in padding**, and 70% of every straddling 16x16 block's. No +64x64 line at 792/1608 because those heights leave under half a superblock +inside, so `has_rows` splits the root before it is ever scored. + +## Before/after — native BD gate, 12 frames, gop=12, 4 q points + +`EC_AV1_EDGESSE=0` vs default, one release binary, same crop. + +| arm | row | BD vs libaom before -> after | BD vs rav1e before -> after | +|---|---|---|---| +| 1920x792 | bars 1080p | +14.0% -> +14.0% | +1.5% -> **+1.4%** | +| 1920x792 | film A | +36.2% -> **+36.1%** | +7.5% -> **+7.4%** | +| 3840x1608 | bars 2160p | +14.7% -> +14.7% (byte-identical) | -6.9% -> -6.9% | +| 3840x1608 | film B | +35.8% -> +35.8% (byte-identical) | +17.6% -> +17.6% | +| 1920x1080 | bars 1080p | +8.7% -> +8.7% (byte-identical) | -4.1% -> -4.1% | + +Keep rule met: **no row worse anywhere**; both film-A columns better by 0.1. +The charter expected >=0.3 on the straddling arm — it is 0.1. Honest reading: +the padding is edge-replicated, so every candidate predicts it almost equally +well and the metric change rarely flips a winner. The 4K rows code +byte-identical streams at all four points even though their census DOES differ +between the arms (10086 vs 10080 straddling 16x16 scores) — the candidate +pruning walks a slightly different path and lands on the same decisions. + +SB-ALIGNED ROWS: byte-identical BY CONSTRUCTION, not just by measurement — +on a crop whose width and height are multiples of the superblock, +`inside_rows == side` for every block, so `block_sse` takes exactly the old +path. The 1920x1080 arm above is the empirical confirmation on a straddling +crop that still codes the same stream. + +## Invariants, pins, suite + +- `EC_COMP_MISMATCH=1` over pins + facade + thread-count + both straddling + witnesses: 6 passed, 0 failed, no mismatch line printed. +- pins `the_encoders_own_streams_are_byte_identical_to_their_pins`: 9808 / + 35791 HOLD (the 640x384 pin clip is 10x6 whole superblocks, so no block of + it straddles and the change cannot reach it). +- `tile_bytes_do_not_depend_on_the_thread_count --include-ignored`: pass. +- `the_facade_codes_the_same_bytes_as_encode_sequence`: pass. +- three-way exact witnesses: lane-b64b's `232x168` still passes, and the new + `a_1080p_shaped_clip_straddles_at_every_block_size_and_decodes_sample_exact` + (384x216 = the 1080p shape at a fifth: 3 whole SB columns, 1.6875 SB rows, + straddling at 64/32/16) decodes sample-exact against our decoder AND ffmpeg. +- metric unit check `a_block_the_frame_edge_cuts_is_scored_over_its_inside_only`. +- `cargo check --workspace --all-targets -j4`: 0 errors, 0 ec-av1 warnings + (the 25 remaining are pre-existing ec-opus/ec-vorbis doc warnings). + +## Not done + +- `Plane::block_sad` (the MOTION SEARCH's distortion) still scores the whole + block. Deliberate: libaom's motion search runs full-block SAD on its padded + source too, and this lane is the RD distortion. Flagged, not fixed.