From b9e86ce4cb4c428e1f4fe1606f5aa7329c4ce485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 05:09:30 +0300 Subject: [PATCH] docs(d792): the gate's blindness check and the verification table --- lanes/d792.report.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lanes/d792.report.md b/lanes/d792.report.md index 5cf826ef..9ca4eb7c 100644 --- a/lanes/d792.report.md +++ b/lanes/d792.report.md @@ -165,3 +165,34 @@ counter. * the whole 1920x792 reference ladder -- libaom crf 5/20/35/45 AND rav1e quantizer 50/100/150/200, 12 frames each: **EXACT vs ffmpeg on every point** (`$HOME/.cache/d792/streams`, decoded with `examples/dump_yuv`). + +## The gate, and what it took to make it see the defect + +`stream::tests::a_straddling_frame_decodes_exactly_on_both_reference_encoders_ladders` +(2.7 s) has two halves: + +* **Generated rows** -- 4 frames at 384x152 (2 SB + 24 px, the 1920x792 + straddle) and 384x184 (2 SB + 56 px, the 1080p straddle), through librav1e + (quantizer 50/100/150/200) and libaom (`-cpu-used 6 -crf 5/20/35/45 + -aq-mode 1`), each decoded by ffmpeg and by us and compared sample by + sample. +* **Pinned rows** -- `fixtures/d792_straddle_rav1e_384x152_q100.obu` and + `..._q150.obu`, rav1e's own answer to a 384x152 crop of a real film. + +That split is not decoration. **The generated rows alone do NOT catch this +defect**: with the fix reverted under them, first a `testsrc2` source and then +the repo's own `h264-1080p-23.976-8bit.mp4` fixture (which is colour bars, +per the standing note) both PASSED at all 16 points, because neither codes +more than one segment, and the defect only exists where `SEG_LVL_ALT_Q` does +(class `gate-blind-to-feature`). The pinned rows fail pre-fix at +`frame 0 plane Y sample (17, 140): ours 41 vs ffmpeg 42` and pass after, so +the gate's defect-catching power is measured, not assumed. + +## Verification + +| check | result | +|---|---| +| `cargo test -p ec-av1 --release --lib a_straddling_frame` | 18 straddling reference points sample-exact, 2.7 s | +| the same gate with the fix reverted | FAILED at `(17, 140)` of the pinned q100 row | +| the 1920x792 ladder, 12 frames, decoded standalone (`examples/dump_yuv` vs ffmpeg) | libaom crf 5/20/35/45 **EXACT**, rav1e quantizer 50/100/150/200 **EXACT** -- all 8 points, i.e. what `external_ladder`'s reference-decode assertion checks | +| `cargo check --workspace --all-targets -j4` | 0 errors; 0 `ec-av1` warnings (the 21 `ec-opus` missing-doc + 1 `ec-vorbis` dead-code ones are pre-existing) |