lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gate
Browse files at this commit408e7cfde1f269e91d73435a21a6e41036001dc6Parent: 90e4e6e5 changed files +394 -39
- crates/ec-av1/src/encode.rs +69 -23
- crates/ec-av1/src/encoder.rs +32 -9
- crates/ec-av1/src/stream.rs +27 -5
- crates/ec-av1/src/transform.rs +10 -2
- lanes/av1probes.report.md +256 -0
crates/ec-av1/src/encode.rsmodified+69 -23
| @@ -17755,7 +17755,14 @@ mod tests { | |||
| 17755 | /// the sweep pictures and whatever clips `EC_AV1_CLIPS` names. This is what | 17755 | /// the sweep pictures and whatever clips `EC_AV1_CLIPS` names. This is what |
| 17756 | /// sets [`SPLIT_BLOCKS`]; the table it prints is in the lane report. | 17756 | /// sets [`SPLIT_BLOCKS`]; the table it prints is in the lane report. |
| 17757 | #[test] | 17757 | #[test] |
| 17758 | - #[ignore = "a sweep, not a gate"] | 17758 | + // ROBUST-RED on this tree, and the red is in the MEASURE, not the codec: |
| 17759 | + // the `stripes` picture codes LOSSLESSLY at q110/90/70, so both ladders | ||
| 17760 | + // come back as three identical `(inf, 1.8260748027008264)` points and | ||
| 17761 | + // `bd_rate` has an empty trapezoid to integrate, which panics with | ||
| 17762 | + // "the two ladders have to overlap in PSNR". Row 1 (`test card`) still | ||
| 17763 | + // prints its number before the panic. Point `EC_AV1_CLIPS` at a real lossy | ||
| 17764 | + // clip, or read only row 1. | ||
| 17765 | + #[ignore = "a sweep, not a gate; PANICS on its own lossless synthetic rows (stripes is lossless at q110/90/70, so bd_rate has no PSNR overlap) -- point EC_AV1_CLIPS at a lossy clip"] | ||
| 17759 | fn probe_split() { | 17766 | fn probe_split() { |
| 17760 | let _knobs = crate::speed::knob_read(); | 17767 | let _knobs = crate::speed::knob_read(); |
| 17761 | let fctx = &crate::decode::FrameCtx::for_encoder(); | 17768 | let fctx = &crate::decode::FrameCtx::for_encoder(); |
| @@ -19964,13 +19971,25 @@ mod tests { | |||
| 19964 | } | 19971 | } |
| 19965 | 19972 | ||
| 19966 | /// Breaks one inter frame's own cost into the four [`STAGE_NS`] buckets | 19973 | /// Breaks one inter frame's own cost into the four [`STAGE_NS`] buckets |
| 19967 | - /// (motion search, [`crate::mc::predict`], transform+quantize, | 19974 | + /// plus what is left over once buckets 0/2/3 are subtracted. |
| 19968 | - /// `coeff_bits`), plus what is left over once those are subtracted -- | 19975 | + /// |
| 19969 | - /// the thirteen-mode intra-candidate loop `search_inter_block` still | 19976 | + /// lane-av1probes: the two search-shaped buckets OVERLAP and the old |
| 19970 | - /// runs on every inter block (its own transform/quant/entropy calls are | 19977 | + /// print denied it. Bucket 0 is not "the motion search": `stage_since(0, |
| 19971 | - /// already inside buckets 2/3, so "left over" here is everything NOT | 19978 | + /// ..)` fires only after `find_best_new_mv` and the global-MV search |
| 19972 | - /// timed: `crate::intra::predict` for those 13 modes, RD bookkeeping, | 19979 | + /// (`encode.rs:11959`, `:12080`), so it is the NEWMV/GLOBAL sub-search |
| 19973 | - /// symbol-cost lookups outside `coeff_bits`). | 19980 | + /// alone. Bucket 1 is EVERY `crate::mc::predict` call, from the search's |
| 19981 | + /// candidates *and* from a committed inter block's final prediction -- | ||
| 19982 | + /// and that final prediction runs OUTSIDE any bucket-0 region. So bucket 1 | ||
| 19983 | + /// is neither inside bucket 0 nor smaller than it, and a print that shows | ||
| 19984 | + /// it as "motion search (of which interpolation ...)" necessarily shows | ||
| 19985 | + /// a sub-number bigger than its parent. Measured: bucket 0 = 17.82 ms, | ||
| 19986 | + /// bucket 1 = 148.63 ms. | ||
| 19987 | + /// | ||
| 19988 | + /// Which number is real: BOTH timers are right; only the old ARITHMETIC | ||
| 19989 | + /// was wrong. Bucket 1 is now printed as its own top-level row, the | ||
| 19990 | + /// overlap is stated, and the residual is labelled for what it is -- it | ||
| 19991 | + /// absorbs the committed block's own interpolation, so it is not a pure | ||
| 19992 | + /// "13-mode intra candidate loop" figure either. | ||
| 19974 | /// | 19993 | /// |
| 19975 | /// `cargo test -p ec-av1 --release stage_timing_breakdown_inter -- --ignored --nocapture`. | 19994 | /// `cargo test -p ec-av1 --release stage_timing_breakdown_inter -- --ignored --nocapture`. |
| 19976 | #[test] | 19995 | #[test] |
| @@ -20007,23 +20026,34 @@ mod tests { | |||
| 20007 | .unwrap(); | 20026 | .unwrap(); |
| 20008 | let total_t = t.elapsed(); | 20027 | let total_t = t.elapsed(); |
| 20009 | let [motion_search, interpolation, transform_quant, entropy] = stage_read(); | 20028 | let [motion_search, interpolation, transform_quant, entropy] = stage_read(); |
| 20029 | + // Buckets 0 and 2 and 3 are disjoint and additive. Bucket 1 (every | ||
| 20030 | + // `mc::predict` call) is NOT added: it overlaps bucket 0 wherever a | ||
| 20031 | + // search candidate calls predict, and it also covers the committed | ||
| 20032 | + // block's final prediction, which no other bucket times. Adding it | ||
| 20033 | + // would double-count the overlap; leaving it out puts the committed | ||
| 20034 | + // prediction (and the intra candidate loop, RD glue, and the symbol | ||
| 20035 | + // lookups outside `coeff_bits`) into the residual, which is what the | ||
| 20036 | + // residual has always been. | ||
| 20010 | let accounted = motion_search + transform_quant + entropy; | 20037 | let accounted = motion_search + transform_quant + entropy; |
| 20011 | - // motion_search already contains interpolation's own time (every | ||
| 20012 | - // candidate the search costs calls crate::mc::predict), so it is not | ||
| 20013 | - // added again here -- interpolation is reported alongside as "of | ||
| 20014 | - // which interpolation", not as a fifth additive bucket. | ||
| 20015 | let other = total_t.saturating_sub(accounted); | 20038 | let other = total_t.saturating_sub(accounted); |
| 20039 | + let overlap = interpolation.saturating_sub(motion_search); | ||
| 20016 | 20040 | ||
| 20017 | eprintln!( | 20041 | eprintln!( |
| 20018 | "\n=== inter frame {width}x{height}, one frame ===\n\ | 20042 | "\n=== inter frame {width}x{height}, one frame ===\n\ |
| 20019 | total: {total_t:>9.2?} ({} bytes)\n\ | 20043 | total: {total_t:>9.2?} ({} bytes)\n\ |
| 20020 | - motion search (NEWMV): {motion_search:>9.2?} (of which interpolation \ | 20044 | + NEWMV/GLOBAL sub-search (bucket 0): {motion_search:>9.2?}\n\ |
| 20021 | - {interpolation:>9.2?})\n\ | 20045 | + transform + quantize (bucket 2): {transform_quant:>9.2?}\n\ |
| 20022 | - transform + quantize: {transform_quant:>9.2?}\n\ | 20046 | + coeff_bits, entropy pricing (bucket 3): {entropy:>9.2?}\n\ |
| 20023 | - coeff_bits (entropy pricing): {entropy:>9.2?}\n\ | 20047 | + buckets 0+2+3 accounted: {accounted:>9.2?}\n\ |
| 20024 | - everything else (13-mode intra {other:>9.2?}\n\ | 20048 | + \n\ |
| 20025 | - candidate loop's own predict/bookkeeping, NEARESTMV's own \ | 20049 | + OVERLAPPING, not additive: every mc::predict call (bucket 1) {interpolation:>9.2?}\n\ |
| 20026 | - predict, RD glue):", | 20050 | + \x20 -- of which {overlap:>9.2?} is OUTSIDE bucket 0 (a committed\n\ |
| 20051 | + \x20 inter block's final prediction, which no bucket above times)\n\ | ||
| 20052 | + \x20 and the rest is the search candidates' interpolation, already\n\ | ||
| 20053 | + \x20 inside bucket 0. It is deliberately NOT added to the total.\n\ | ||
| 20054 | + \n\ | ||
| 20055 | + residual (13-mode intra candidate loop, the committed block's\n\ | ||
| 20056 | + \x20 interpolation above, NEARESTMV's own predict, RD glue): {other:>9.2?}", | ||
| 20027 | inter.stream.len(), | 20057 | inter.stream.len(), |
| 20028 | ); | 20058 | ); |
| 20029 | } | 20059 | } |
| @@ -20038,7 +20068,12 @@ mod tests { | |||
| 20038 | /// so it stays `#[ignore]`, run by hand with real clips on this machine. | 20068 | /// so it stays `#[ignore]`, run by hand with real clips on this machine. |
| 20039 | /// `cargo test -p ec-av1 --release prune_k_quality_sweep -- --ignored --nocapture`. | 20069 | /// `cargo test -p ec-av1 --release prune_k_quality_sweep -- --ignored --nocapture`. |
| 20040 | #[test] | 20070 | #[test] |
| 20041 | - #[ignore = "needs real clips and ffmpeg; prints numbers for the lane report to judge"] | 20071 | + // The three clip paths are HARD-CODED ABSOLUTES under /home/user, not |
| 20072 | + // env-driven: off this workstation every row prints `SKIP <label>: <path> | ||
| 20073 | + // not present on this machine` and the run exits 0 with no numbers. It is | ||
| 20074 | + // a local-run probe; there is no fleet-host configuration that makes it | ||
| 20075 | + // measure anything. | ||
| 20076 | + #[ignore = "local-run only: the three clips are hard-coded /home/user paths, so off this workstation it SKIPs every row and prints nothing"] | ||
| 20042 | fn prune_k_quality_sweep() { | 20077 | fn prune_k_quality_sweep() { |
| 20043 | let _knobs = crate::speed::knob_read(); | 20078 | let _knobs = crate::speed::knob_read(); |
| 20044 | let fctx = &crate::decode::FrameCtx::for_encoder(); | 20079 | let fctx = &crate::decode::FrameCtx::for_encoder(); |
| @@ -20145,7 +20180,9 @@ mod tests { | |||
| 20145 | /// for the inter frame alone, unpruned vs each `K`. | 20180 | /// for the inter frame alone, unpruned vs each `K`. |
| 20146 | /// `cargo test -p ec-av1 --release prune_k_quality_sweep_inter -- --ignored --nocapture`. | 20181 | /// `cargo test -p ec-av1 --release prune_k_quality_sweep_inter -- --ignored --nocapture`. |
| 20147 | #[test] | 20182 | #[test] |
| 20148 | - #[ignore = "needs real clips and ffmpeg; prints numbers for the lane report to judge"] | 20183 | + // Same hard-coded /home/user clip paths as `prune_k_quality_sweep`; |
| 20184 | + // off this workstation it SKIPs all three rows and prints nothing. | ||
| 20185 | + #[ignore = "local-run only: the three clips are hard-coded /home/user paths, so off this workstation it SKIPs every row and prints nothing"] | ||
| 20149 | fn prune_k_quality_sweep_inter() { | 20186 | fn prune_k_quality_sweep_inter() { |
| 20150 | let _knobs = crate::speed::knob_read(); | 20187 | let _knobs = crate::speed::knob_read(); |
| 20151 | let fctx = &crate::decode::FrameCtx::for_encoder(); | 20188 | let fctx = &crate::decode::FrameCtx::for_encoder(); |
| @@ -22622,7 +22659,11 @@ mod tests { | |||
| 22622 | /// ratio explodes exactly where coding is cheap; this prints the numbers | 22659 | /// ratio explodes exactly where coding is cheap; this prints the numbers |
| 22623 | /// that confirm or refute it. | 22660 | /// that confirm or refute it. |
| 22624 | #[test] | 22661 | #[test] |
| 22625 | - #[ignore = "needs ffmpeg and the film fixtures"] | 22662 | + // Reads ONLY `fixtures/video/h264-{1080p,2160p}-23.976-8bit.mp4` -- the |
| 22663 | + // COLOUR-BARS fixtures, in a centred crop. It never opens a film, so the | ||
| 22664 | + // old reason ("the film fixtures") sent readers looking for content the | ||
| 22665 | + // test cannot read. 0.9 s; prints the per-cell intra-MAD distribution. | ||
| 22666 | + #[ignore = "0.9 s; reads only the fixtures/video COLOUR-BARS clips (not the films) and prints the per-cell intra-MAD distribution"] | ||
| 22626 | fn tpl_intra_denominator_histogram() { | 22667 | fn tpl_intra_denominator_histogram() { |
| 22627 | let _knobs = crate::speed::knob_read(); | 22668 | let _knobs = crate::speed::knob_read(); |
| 22628 | if !have_ffmpeg() { | 22669 | if !have_ffmpeg() { |
| @@ -22769,7 +22810,12 @@ mod tests { | |||
| 22769 | /// lane-probe diagnostic: the gate's own loader + ladder call for ONE | 22810 | /// lane-probe diagnostic: the gate's own loader + ladder call for ONE |
| 22770 | /// point inside the test binary, to compare against `examples/enc_probe`. | 22811 | /// point inside the test binary, to compare against `examples/enc_probe`. |
| 22771 | #[test] | 22812 | #[test] |
| 22772 | - #[ignore = "diagnostic: needs ffmpeg and a clip"] | 22813 | + // Panics on the first `env::var(...).unwrap()` when unset -- it needs FIVE |
| 22814 | + // variables, not "a clip": `EC_PARITY_DIMS`, `EC_PARITY_FRAMES`, | ||
| 22815 | + // `EC_PARITY_Q`, `EC_PARITY_CLIP`, `EC_PARITY_SS`, `EC_PARITY_VF`. Prints | ||
| 22816 | + // one PARITY line (bytes + fnv1a of the stream) to diff against | ||
| 22817 | + // `examples/enc_probe`. | ||
| 22818 | + #[ignore = "diagnostic: needs EC_PARITY_{DIMS,FRAMES,Q,CLIP,SS,VF} -- all five, it unwraps the first missing one; prints one PARITY hash line"] | ||
| 22773 | fn probe_parity_point() { | 22819 | fn probe_parity_point() { |
| 22774 | let _knobs = crate::speed::knob_write(); | 22820 | let _knobs = crate::speed::knob_write(); |
| 22775 | let g = |k: &str| std::env::var(k).unwrap(); | 22821 | let g = |k: &str| std::env::var(k).unwrap(); |
crates/ec-av1/src/encoder.rsmodified+32 -9
| @@ -5568,7 +5568,7 @@ mod tests { | |||
| 5568 | /// at: 1920x1080, eight real pictures, two passes per cell (ABAB), wall | 5568 | /// at: 1920x1080, eight real pictures, two passes per cell (ABAB), wall |
| 5569 | /// per cell. Ignored by default (minutes). | 5569 | /// per cell. Ignored by default (minutes). |
| 5570 | #[test] | 5570 | #[test] |
| 5571 | - #[ignore = "1080p wall table: minutes, run it with --ignored"] | 5571 | + #[ignore = "wall table, 16 cells x 2 passes at 1080p: 27 min measured; needs a host with >=8 cores"] |
| 5572 | fn tile_wall_table_at_1080p() { | 5572 | fn tile_wall_table_at_1080p() { |
| 5573 | let _knobs = crate::speed::knob_write(); | 5573 | let _knobs = crate::speed::knob_write(); |
| 5574 | let _gate_lock = crate::stream::tests::lock_gate_counters(); | 5574 | let _gate_lock = crate::stream::tests::lock_gate_counters(); |
| @@ -5669,7 +5669,12 @@ mod tests { | |||
| 5669 | /// Measurement, not a pass/fail gate: it asserts only that every cell | 5669 | /// Measurement, not a pass/fail gate: it asserts only that every cell |
| 5670 | /// produced a stream. | 5670 | /// produced a stream. |
| 5671 | #[test] | 5671 | #[test] |
| 5672 | - #[ignore = "wall measurement: minutes, run it with --ignored --nocapture"] | 5672 | + // MEASURED 1243 s in release on a 12-core workstation. A 4-core server |
| 5673 | + // cannot finish it at all: the same run TIMED OUT at 2400 s there | ||
| 5674 | + // (12 frames x 2 passes x 12 cells), so the 8- and 12-thread rows are | ||
| 5675 | + // only meaningful on a host with the cores to run them. Do not schedule | ||
| 5676 | + // it on a 4-core fleet box. | ||
| 5677 | + #[ignore = "wall measurement: 20 min at 1080p and it TIMES OUT on a 4-core host -- run it on >=8 cores"] | ||
| 5673 | fn tile_search_wall_1080p() { | 5678 | fn tile_search_wall_1080p() { |
| 5674 | let _knobs = crate::speed::knob_write(); | 5679 | let _knobs = crate::speed::knob_write(); |
| 5675 | tile_search_wall( | 5680 | tile_search_wall( |
| @@ -5684,7 +5689,7 @@ mod tests { | |||
| 5684 | /// The same table at the 4K frame size the editor exports (3840x1608), | 5689 | /// The same table at the 4K frame size the editor exports (3840x1608), |
| 5685 | /// at the two layouts with enough tiles to fill this box. | 5690 | /// at the two layouts with enough tiles to fill this box. |
| 5686 | #[test] | 5691 | #[test] |
| 5687 | - #[ignore = "wall measurement: minutes, run it with --ignored --nocapture"] | 5692 | + #[ignore = "wall measurement: 12 min at 4K (732 s measured); run it with --ignored --nocapture"] |
| 5688 | fn tile_search_wall_4k() { | 5693 | fn tile_search_wall_4k() { |
| 5689 | let _knobs = crate::speed::knob_write(); | 5694 | let _knobs = crate::speed::knob_write(); |
| 5690 | tile_search_wall(3840, 1608, 6, &[(2, 1), (3, 2)], &[1, 8, 12]); | 5695 | tile_search_wall(3840, 1608, 6, &[(2, 1), (3, 2)], &[1, 8, 12]); |
| @@ -5827,14 +5832,14 @@ mod tests { | |||
| 5827 | /// decode the loop-restoration search rides on, and that search itself. | 5832 | /// decode the loop-restoration search rides on, and that search itself. |
| 5828 | /// Measurement, not a pass/fail gate. | 5833 | /// Measurement, not a pass/fail gate. |
| 5829 | #[test] | 5834 | #[test] |
| 5830 | - #[ignore = "wall measurement: minutes, run it with --ignored --nocapture"] | 5835 | + #[ignore = "wall measurement: 36 s at 1080p; run it with --ignored --nocapture"] |
| 5831 | fn filter_stage_wall_1080p() { | 5836 | fn filter_stage_wall_1080p() { |
| 5832 | let _knobs = crate::speed::knob_write(); | 5837 | let _knobs = crate::speed::knob_write(); |
| 5833 | filter_stage_wall(1920, 1080, 8, (2, 1), &[8]); | 5838 | filter_stage_wall(1920, 1080, 8, (2, 1), &[8]); |
| 5834 | } | 5839 | } |
| 5835 | 5840 | ||
| 5836 | #[test] | 5841 | #[test] |
| 5837 | - #[ignore = "wall measurement: minutes, run it with --ignored --nocapture"] | 5842 | + #[ignore = "wall measurement: 62 s at 4K; run it with --ignored --nocapture"] |
| 5838 | fn filter_stage_wall_4k() { | 5843 | fn filter_stage_wall_4k() { |
| 5839 | let _knobs = crate::speed::knob_write(); | 5844 | let _knobs = crate::speed::knob_write(); |
| 5840 | filter_stage_wall(3840, 1608, 4, (2, 1), &[8, 12]); | 5845 | filter_stage_wall(3840, 1608, 4, (2, 1), &[8, 12]); |
| @@ -5845,7 +5850,12 @@ mod tests { | |||
| 5845 | /// it unset it is the colour-bar fixture at the same size, which is what | 5850 | /// it unset it is the colour-bar fixture at the same size, which is what |
| 5846 | /// makes the pair a comparison rather than a number. | 5851 | /// makes the pair a comparison rather than a number. |
| 5847 | #[test] | 5852 | #[test] |
| 5848 | - #[ignore = "wall measurement: minutes, run it with --ignored --nocapture"] | 5853 | + // MEASURED 16 s WITHOUT `EC_AV1_WALL_CLIP`, and what it measures then is |
| 5854 | + // the COLOUR-BAR fixture, not a film: `h264_clip_frames` falls back to | ||
| 5855 | + // `fixtures/video/h264-1080p-23.976-8bit.mp4` when the var is unset. A | ||
| 5856 | + // reader who takes the name for the content reads a bars number as a | ||
| 5857 | + // film number, so the precondition belongs in the reason. | ||
| 5858 | + #[ignore = "wall measurement: 16 s; MEASURES THE BARS FIXTURE unless EC_AV1_WALL_CLIP names a real film window"] | ||
| 5849 | fn filter_stage_wall_film() { | 5859 | fn filter_stage_wall_film() { |
| 5850 | let _knobs = crate::speed::knob_write(); | 5860 | let _knobs = crate::speed::knob_write(); |
| 5851 | filter_stage_wall(1920, 768, 4, (2, 1), &[8]); | 5861 | filter_stage_wall(1920, 768, 4, (2, 1), &[8]); |
| @@ -6086,10 +6096,23 @@ mod tests { | |||
| 6086 | 6096 | ||
| 6087 | /// The same round trip at a real 1920x1080 crop of the gate's own clip | 6097 | /// The same round trip at a real 1920x1080 crop of the gate's own clip |
| 6088 | /// -- the size the editor's export actually runs at, where a tile grid | 6098 | /// -- the size the editor's export actually runs at, where a tile grid |
| 6089 | - /// is worth having. Ignored by default only for its wall (a 1080p | 6099 | + /// is worth having. |
| 6090 | - /// encode of three pictures), not for any weakness in the check. | 6100 | + /// |
| 6101 | + /// UN-IGNORED by lane-av1probes: it was `#[ignore]`d only for its wall | ||
| 6102 | + /// ("1080p encode: minutes"), and it is the only 1080p arm in the ignored | ||
| 6103 | + /// set that actually ASSERTS. Measured 30.6 s in release on the | ||
| 6104 | + /// workstation (12 cores) and 64 s on a 4-core server, so it is affordable | ||
| 6105 | + /// in the suite. Evidence for the un-ignore: the three tile grids 2x1, | ||
| 6106 | + /// 2x2 and 4x2 each decode sample-exact through BOTH our decoder and | ||
| 6107 | + /// ffmpeg (84488 / 84208 / 84685 bytes), and the check is a per-frame | ||
| 6108 | + /// first-differing-luma-sample comparison, not a length or non-empty | ||
| 6109 | + /// smoke. | ||
| 6110 | + /// | ||
| 6111 | + /// The two skippable halves both route through the crate's EXISTING | ||
| 6112 | + /// presence probes, not a new shape: `h264_clip_frames` (which itself | ||
| 6113 | + /// asks `have_ffmpeg()` and `clip.exists()`) and `have_ffmpeg()` for the | ||
| 6114 | + /// ffmpeg arm. No bare presence check was added. | ||
| 6091 | #[test] | 6115 | #[test] |
| 6092 | - #[ignore = "1080p encode: minutes, run it with --ignored"] | ||
| 6093 | fn a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders() { | 6116 | fn a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders() { |
| 6094 | let _knobs = crate::speed::knob_read(); | 6117 | let _knobs = crate::speed::knob_read(); |
| 6095 | let (width, height) = (1920usize, 1080usize); | 6118 | let (width, height) = (1920usize, 1080usize); |
crates/ec-av1/src/stream.rsmodified+27 -5
| @@ -28429,7 +28429,10 @@ pub(crate) mod tests { | |||
| 28429 | } | 28429 | } |
| 28430 | 28430 | ||
| 28431 | #[test] | 28431 | #[test] |
| 28432 | - #[ignore = "lane-rectx r3 scratch sweep"] | 28432 | + // The recipe SEARCH, not a lane's scratch any more: 9 sources x 7 cq x |
| 28433 | + // rtx on/off, 28 s measured, and it is the evidence that no aomenc rect-tx | ||
| 28434 | + // recipe mismatches -- which is what the un-ignored rect gates rest on. | ||
| 28435 | + #[ignore = "recipe search: 9 sources x 7 cq x rtx on/off, 28 s; establishes that no aomenc rect-tx recipe mismatches"] | ||
| 28433 | fn sweep_rectx_recipes() { | 28436 | fn sweep_rectx_recipes() { |
| 28434 | let _gate_lock = lock_gate_counters(); | 28437 | let _gate_lock = lock_gate_counters(); |
| 28435 | let srcs: Vec<String> = vec![ | 28438 | let srcs: Vec<String> = vec![ |
| @@ -31508,7 +31511,10 @@ pub(crate) mod tests { | |||
| 31508 | /// (`EC_TRACE_MODE_STEP=1`) against the exact same bytes fed to the | 31511 | /// (`EC_TRACE_MODE_STEP=1`) against the exact same bytes fed to the |
| 31509 | /// oracle aomdec, byte for byte. `#[ignore]`d diagnostic, no assertion. | 31512 | /// oracle aomdec, byte for byte. `#[ignore]`d diagnostic, no assertion. |
| 31510 | #[test] | 31513 | #[test] |
| 31511 | - #[ignore = "diagnostic, run manually with --nocapture and EC_TINY_FIXTURE_PATH set"] | 31514 | + // Panics with `set EC_TINY_FIXTURE_PATH to an .obu file: NotPresent` |
| 31515 | + // without the var -- it has no default and cannot run unattended. Prints | ||
| 31516 | + // `decoded N frame(s)` or `REFUSED: <err>`; asserts nothing. | ||
| 31517 | + #[ignore = "diagnostic: needs EC_TINY_FIXTURE_PATH naming an .obu; prints decode/REFUSED, asserts nothing"] | ||
| 31512 | fn probe_tiny_fixture_trace() { | 31518 | fn probe_tiny_fixture_trace() { |
| 31513 | let path = std::env::var("EC_TINY_FIXTURE_PATH") | 31519 | let path = std::env::var("EC_TINY_FIXTURE_PATH") |
| 31514 | .expect("set EC_TINY_FIXTURE_PATH to an .obu file"); | 31520 | .expect("set EC_TINY_FIXTURE_PATH to an .obu file"); |
| @@ -32187,7 +32193,10 @@ pub(crate) mod tests { | |||
| 32187 | /// bisect scratch: decode a pinned stream exactly once -- generic | 32193 | /// bisect scratch: decode a pinned stream exactly once -- generic |
| 32188 | /// pin-repro tool, kept for manual use. | 32194 | /// pin-repro tool, kept for manual use. |
| 32189 | #[test] | 32195 | #[test] |
| 32190 | - #[ignore] | 32196 | + // Panics with `set EC_AV1_PIN to the .obu path: NotPresent` without the |
| 32197 | + // var. Prints `OK: N frames` or `ERR: <err>` -- a one-line "does this pin | ||
| 32198 | + // decode at all" check, so it asserts nothing by design. | ||
| 32199 | + #[ignore = "scratch: decodes the .obu at EC_AV1_PIN and prints OK/ERR; asserts nothing"] | ||
| 32191 | fn scratch_decode_pinned_stream_once() { | 32200 | fn scratch_decode_pinned_stream_once() { |
| 32192 | let path = std::env::var("EC_AV1_PIN").expect("set EC_AV1_PIN to the .obu path"); | 32201 | let path = std::env::var("EC_AV1_PIN").expect("set EC_AV1_PIN to the .obu path"); |
| 32193 | let stream = std::fs::read(&path).expect("read pinned stream"); | 32202 | let stream = std::fs::read(&path).expect("read pinned stream"); |
| @@ -32199,7 +32208,13 @@ pub(crate) mod tests { | |||
| 32199 | 32208 | ||
| 32200 | /// scratch: isolate a pinned mismatching stream's first divergent pixel. | 32209 | /// scratch: isolate a pinned mismatching stream's first divergent pixel. |
| 32201 | #[test] | 32210 | #[test] |
| 32202 | - #[ignore] | 32211 | + // Panics with `set EC_AV1_PIN to the .obu path: NotPresent` without the |
| 32212 | + // var, AND the built-in geometry defaults (W=64, H=64, N=1) are wrong for | ||
| 32213 | + // every real pin: they are the 64x64 seed-42 pin's own numbers, so on any | ||
| 32214 | + // other pin the run dies inside the ffmpeg oracle with a frame-size | ||
| 32215 | + // assert (`expected 1 4:2:0 frames ... left 24576 right 6144`) instead of | ||
| 32216 | + // saying "you forgot the geometry". Set all four. | ||
| 32217 | + #[ignore = "scratch: needs EC_AV1_PIN plus EC_AV1_PIN_W/H/N at the pin's REAL geometry (defaults 64/64/1 are wrong for every other pin); prints the first divergent pixel per plane"] | ||
| 32203 | fn scratch_isolate_pinned_mismatch() { | 32218 | fn scratch_isolate_pinned_mismatch() { |
| 32204 | let path = std::env::var("EC_AV1_PIN").expect("set EC_AV1_PIN to the .obu path"); | 32219 | let path = std::env::var("EC_AV1_PIN").expect("set EC_AV1_PIN to the .obu path"); |
| 32205 | let stream = std::fs::read(&path).expect("read pinned stream"); | 32220 | let stream = std::fs::read(&path).expect("read pinned stream"); |
| @@ -39669,7 +39684,14 @@ pub(crate) mod tests { | |||
| 39669 | /// `a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact` | 39684 | /// `a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact` |
| 39670 | /// via `EC_AV1_GATE_DUMP`. Debug-only, `#[ignore]`d. | 39685 | /// via `EC_AV1_GATE_DUMP`. Debug-only, `#[ignore]`d. |
| 39671 | #[test] | 39686 | #[test] |
| 39672 | - #[ignore = "debug harness, run manually with EC_AV1_GATE_DUMP_PIN"] | 39687 | + // The geometry is HARD-CODED to the seed-42 pin (192x128, one frame): |
| 39688 | + // `ffmpeg_decode_sequence(&stream, 192, 128, 1)` plus the `width = 192` / | ||
| 39689 | + // `0..128` scan bounds below. Point it at any other pin and it does not | ||
| 39690 | + // say "wrong size" -- it dies inside the ffmpeg oracle with | ||
| 39691 | + // `expected 1 4:2:0 frames ... left 196162560 right 36864`. Measured | ||
| 39692 | + // against `fixtures/sbpart/seed42.obu` (the 192x128 pin it was written | ||
| 39693 | + // for): `total luma mismatches: 0`. | ||
| 39694 | + #[ignore = "debug harness: needs EC_AV1_GATE_DUMP_PIN at a 192x128 pin (the geometry is hard-coded; any other size dies in the ffmpeg oracle)"] | ||
| 39673 | fn debug_part32_r2_sbpart_pin_mismatch_geometry() { | 39695 | fn debug_part32_r2_sbpart_pin_mismatch_geometry() { |
| 39674 | let path = std::env::var("EC_AV1_GATE_DUMP_PIN").expect("set EC_AV1_GATE_DUMP_PIN"); | 39696 | let path = std::env::var("EC_AV1_GATE_DUMP_PIN").expect("set EC_AV1_GATE_DUMP_PIN"); |
| 39675 | let stream = std::fs::read(&path).expect("read pinned stream"); | 39697 | let stream = std::fs::read(&path).expect("read pinned stream"); |
crates/ec-av1/src/transform.rsmodified+10 -2
| @@ -2249,7 +2249,11 @@ mod tests { | |||
| 2249 | } | 2249 | } |
| 2250 | 2250 | ||
| 2251 | #[test] | 2251 | #[test] |
| 2252 | - #[ignore] | 2252 | + // The orthonormal-ness table: one alpha per transform pair per size |
| 2253 | + // (measured 0.977-1.031 across 4x4..32x32). It is the only place a | ||
| 2254 | + // mis-scaled basis shows up, and it prints rather than asserts, so a | ||
| 2255 | + // drifted alpha is read off the table, not off a failure. | ||
| 2256 | + #[ignore = "scratch: prints the per-tx-pair orthonormal-ness alpha for 4x4..32x32; the reference table, asserts nothing"] | ||
| 2253 | fn txrd_gain_probe() { | 2257 | fn txrd_gain_probe() { |
| 2254 | for side in [4usize, 8, 16, 32] { | 2258 | for side in [4usize, 8, 16, 32] { |
| 2255 | let residual: Vec<i32> = noise(side * side, 7 + side as u64) | 2259 | let residual: Vec<i32> = noise(side * side, 7 + side as u64) |
| @@ -2381,7 +2385,11 @@ mod tests { | |||
| 2381 | } | 2385 | } |
| 2382 | 2386 | ||
| 2383 | #[test] | 2387 | #[test] |
| 2384 | - #[ignore] | 2388 | + // Prints the 32x32 dequant of a hand-built level vector (DC-only row |
| 2389 | + // against the single-sum and combined shapes) -- the smallest | ||
| 2390 | + // reproducible view of dequant scale while that path is being changed. | ||
| 2391 | + // Prints, asserts nothing. | ||
| 2392 | + #[ignore = "scratch: prints the 32x32 dequant rows for one hand-built level vector; asserts nothing"] | ||
| 2385 | fn scratch_probe_32x32_dequant() { | 2393 | fn scratch_probe_32x32_dequant() { |
| 2386 | let mut levels = vec![0i32; 32 * 32]; | 2394 | let mut levels = vec![0i32; 32 * 32]; |
| 2387 | levels[0] = -2; | 2395 | levels[0] = -2; |
lanes/av1probes.report.mdadded+256 -0
| @@ -0,0 +1,256 @@ | |||
| 1 | +# lane-av1probes — classification of the ignored PROBES/BENCHMARKS | ||
| 2 | + | ||
| 3 | +Branch `lane-av1probes`, base `745c60e7`. Measurements were taken on `298f75c4` (staged to | ||
| 4 | +`~/gates/repo-probes` on server-2 `host-a`, and to `~/.cache/av1probes/stage` locally); the | ||
| 5 | +edits below are on the branch. Release profile, one cargo invocation per test name, | ||
| 6 | +`EC_AV1_REQUIRE_FFMPEG=1 EC_AV1_REQUIRE_AOMENC=1 EC_REQUIRE_FIXTURES=1`, `TMPDIR` off the tmpfs | ||
| 7 | +(`~/gates/tmp` / `~/.cache/tmp`). Library-class items ran on the workstation (the only host with | ||
| 8 | +`~/Music`, `~/Videos`, `~/Downloads`). | ||
| 9 | + | ||
| 10 | +## How the list was re-derived | ||
| 11 | + | ||
| 12 | +`#[ignore]` sites in `crates/ec-av1/src/{encode,encoder,stream,transform}.rs` at the base commit: | ||
| 13 | +**51** attributes on **51** test fns. 13 carry `#[ignore = "sets the process-global …"]` and are the | ||
| 14 | +*real gates* the release triage already dispositioned (18/22 pass, 4 gate-blind, 0 decoder defects) — | ||
| 15 | +out of scope here. The remaining **38** are the probe/benchmark/scratch set this lane classifies. | ||
| 16 | +(On the older `298f75c4` tree the same scan returned 46: the wave that landed between the two commits | ||
| 17 | +un-ignored `pinned_golden3/4/7`, `pinned_lr_sgr`, `pinned_sbpart` and the three gate-blind | ||
| 18 | +`a_real_aomenc_*` recipe gates. Those are already re-verified green on `6c1d78a6` — the SKIPs this lane | ||
| 19 | +saw were staging artifacts of an older commit, not missing fixtures. See "already un-ignored by the | ||
| 20 | +wave" below.) | ||
| 21 | + | ||
| 22 | +After this branch's un-ignore the set is **50 attributes / 37 probes**. | ||
| 23 | + | ||
| 24 | +**Real-media-library readers** (cannot run on a fleet host; `manifest.tsv` paths point at | ||
| 25 | +`/home/user/...`, and `~/Music` is empty so the mp3/m4a rows would decode no frames anyway): | ||
| 26 | +`probe_intrabc_key_frame`, `pricer_error_census_on_clips`, `probe_screen_detect`, | ||
| 27 | +`probe_screen_library`, `last2_census`, `arf_pred_census`, `bd_rate_vs_libaom_and_rav1e` (screen row | ||
| 28 | +only), `bd_rate_screen_native` (film rows), `bd_rate_film_long_gop`, `probe_parity_point` (if pointed | ||
| 29 | +at a library clip), `prune_k_quality_sweep`, `prune_k_quality_sweep_inter` (hard-coded | ||
| 30 | +`/home/user/...` paths). These are **not** reported red when they SKIP on a server — the SKIP is the | ||
| 31 | +correct behaviour off the library host, and each was re-run on the workstation to get its number. | ||
| 32 | + | ||
| 33 | +## Wall / BD / 1080p benchmark items (9) | ||
| 34 | + | ||
| 35 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 36 | +|---|---|---|---|---|---| | ||
| 37 | +| `tile_wall_table_at_1080p` | wall/1080p benchmark | yes (server, 1630 s) | 16-row table: 1x1 57.9 s → 4x2/8thr 35.1 s; bytes 209 107→212 050 (tiles cost +1.4 % rate) | REAL DIAGNOSTIC VALUE (the tile/thread scaling curve; only source of the 1-thread baseline) | keep `#[ignore]`; reason already correct | | ||
| 38 | +| `tile_search_wall_1080p` | wall benchmark | yes (local, 1243 s; **server timed out at 2400 s** — 12 frames × 2 passes × 12 cells does not fit a 4-core server hour) | 1920x1080, 12 frames: 1x1/1thr 44.35 s → 2x2/8thr 26.44 s = 1.68x; rav1e same layout 7.65 s | REAL DIAGNOSTIC VALUE | keep; note in the reason that a 4-core server cannot finish it (it was the only timeout in the batch) | | ||
| 39 | +| `tile_search_wall_4k` | wall benchmark | yes (server, 732 s) | 3840x1608: 4x2/8thr 1.69x, 8x4/12thr 1.77x, idle share 79–85 % | REAL DIAGNOSTIC VALUE (names the parallel-efficiency ceiling) | keep | | ||
| 40 | +| `filter_stage_wall_1080p` | wall benchmark | yes (server, 36 s) | 8 frames: wall 35.54 s, tile search 94.7 %, filter search 3.6 %, accounted 98.9 % | REAL DIAGNOSTIC VALUE | keep | | ||
| 41 | +| `filter_stage_wall_4k` | wall benchmark | yes (server, 62 s) | 4 frames: wall 30.48 s, tile search 92.8 %, accounted 98.9 % | REAL DIAGNOSTIC VALUE | keep | | ||
| 42 | +| `filter_stage_wall_film` | wall benchmark | yes (server, 16 s) | 1920x768 crop of the bars fixture: tile search 93.3 % | REAL DIAGNOSTIC VALUE, but **the "film" name is a lie off the library host** — `h264_clip_frames` falls back to `fixtures/video/h264-1080p-…mp4` (colour bars) unless `EC_AV1_WALL_CLIP` is set | keep; reason rewrite: `#[ignore = "wall measurement: minutes; the 'film' crop needs EC_AV1_WALL_CLIP, unset it measures the bars fixture"]` | | ||
| 43 | +| `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders` | 1080p encode **gate** | yes (server 64 s, local 31 s) | 2x1 84 488 B, 2x2 84 208 B, 4x2 84 685 B, all sample-exact | REAL DIAGNOSTIC VALUE — and it is a *gate*, not a probe: it costs 31 s and asserts. The only 1080p arm in the set that does | **candidate to un-ignore** (merge owner): 31 s is affordable in the suite | | ||
| 44 | +| `bd_rate_vs_libaom_and_rav1e` | BD baseline | yes (local, 86 s) | 3 rows (bars 1080p +33.3 %/−4.1 %, bars 2160p +34.8 %/−3.2 %, screen +11.1 %/−25.6 %); film rows are in the native arm | REAL DIAGNOSTIC VALUE (the encoder's headline number) | keep; note it needs the manifest for the screen row | | ||
| 45 | +| `bd_rate_screen_native` | native BD arm | yes (local, 858 s) | 5 rows: bars 1080p −3.3 %/−19.0 %, bars 2160p +8.4 %/−13.9 %, film A +17.9 %/−6.3 %, film B +22.6 %/−3.8 %, screen +13.7 %/−33.6 % | REAL DIAGNOSTIC VALUE | keep | | ||
| 46 | + | ||
| 47 | +## `a sweep, not a gate` (4) | ||
| 48 | + | ||
| 49 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 50 | +|---|---|---|---|---|---| | ||
| 51 | +| `probe_lambda` | mode-search sweep | yes (server, 0.3 s) | test card −14.8 % rate vs DC alone, stripes −56.4 % | REAL DIAGNOSTIC VALUE (the rate weight of the search) | keep | | ||
| 52 | +| `probe_ladder` | RD ladder dump | yes (server, 2.2 s) | per-picture `bytes@dB` triples for card/stripes/diagonal | REAL DIAGNOSTIC VALUE (the cross-build comparison baseline) | keep | | ||
| 53 | +| `probe_split` | split sweep | yes (server, **FAILED**) | printed `split test card: -4.27% rate` then panicked: `the two ladders have to overlap in PSNR: [(inf, 1.8260748027008264) ×3] vs [(inf, 1.8260748027008264) ×3]` — the *stripes* picture codes losslessly at q110/90/70, so both ladders are `(inf, same)` and the trapezoid is empty | **ROBUST-RED**: a real signal, and it is in the *measure*, not the decoder — `bd_rate` cannot integrate two identical all-`inf` points. Any tree whose `stripes()` is lossless at those quantizers red-flags | merge owner: the probe needs a lossy picture (or a q ladder that is not lossless) for its second/third row; the first row's number is still valid | | ||
| 54 | +| `probe_directional` | directional sweep | yes (server, 4.1 s) | card −0.87 % vs the seven / −15.53 % vs DC, stripes +0.00 % / −56.41 %, diagonal −82.63 % (35 of 36 blocks directional) | REAL DIAGNOSTIC VALUE | keep | | ||
| 55 | + | ||
| 56 | +## `a perf probe, not a gate` (3) + calibration (1) | ||
| 57 | + | ||
| 58 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 59 | +|---|---|---|---|---|---| | ||
| 60 | +| `stage_timing_breakdown` | perf probe | yes (server, 83 s) | key 1080p: DC 2.89 s / 7-mode 5.20 s / 13-mode 7.66 s; 4K 11.46/19.65/30.78 s; per-call 32x32: predict 2.41 µs, fwd+quant 10.28, dequant+inv 10.22, coeff_bits 21.49 | REAL DIAGNOSTIC VALUE — the per-call table is the only place the transform/pricer split is measured | keep | | ||
| 61 | +| `stage_timing_breakdown_inter` | perf probe | yes (server, 4.2 s) | one 1280x720 inter frame: total 594.89 ms, tx+quant 214.19, coeff_bits 4.26, motion search 17.82 (of which interpolation 148.63) | REAL DIAGNOSTIC VALUE, with a caveat: `motion search 17.82 ms (of which interpolation 148.63 ms)` is self-contradictory — the interpolation sub-timer is larger than its parent, so the "everything else 358.62 ms" bucket absorbs a stage that was already counted. The *total* and the tx/pricer split are sound | keep; the sub-stage arithmetic in the print is wrong, not the timer | | ||
| 62 | +| `sequence_bench_sanity` | perf probe | yes (server, 22 s) | `24 frames @ 1280x720: 21.60 s total, 900.11 ms/frame, 18097 bytes` | REAL DIAGNOSTIC VALUE (single smoke number; asserts only that it runs) | keep | | ||
| 63 | +| `calibration_sweep_base_q_idx` | calibration probe | yes (server, 160 s) | two fixtures × 8 quantizers, bytes/px 0.0318→0.0010, PSNR 55.1→37.3 dB — the curve that fixes the `base_q_idx` ↔ bits/px contract | REAL DIAGNOSTIC VALUE | keep | | ||
| 64 | + | ||
| 65 | +## Stream diagnostics (5) | ||
| 66 | + | ||
| 67 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 68 | +|---|---|---|---|---|---| | ||
| 69 | +| `probe_tiny_32x32_trace` | aomenc recipe trace | yes (server, 0.5 s) | `mismatched=false` on one 32x32 mandelbrot key frame; needs `EC_TRACE_MODE_STEP` for anything more | REAL DIAGNOSTIC VALUE, but it only reports a boolean it never asserts, and `a_real_aomenc_tiny_frame_size_sweep` already gates the same content un-ignored | keep as a manual trace; the un-ignored sweep is the gate | | ||
| 70 | +| `probe_tiny_fixture_trace` | pin trace | yes, **only with `EC_TINY_FIXTURE_PATH`** | unset → panic `set EC_TINY_FIXTURE_PATH to an .obu file: NotPresent`; set to `fixtures/golden4-pin.obu` → `decoded 4 frame(s)` | STAGING (needs an operator-supplied `.obu`; no assertion) | keep; reason already names the env var — add "prints, asserts nothing" | | ||
| 71 | +| `debug_part32_r2_sbpart_pin_mismatch_geometry` | debug harness | yes, with `EC_AV1_GATE_DUMP_PIN` | unset → panic `set EC_AV1_GATE_DUMP_PIN`; pointed at `fixtures/part32/reelc-extract.obu` → panic in the ffmpeg oracle (`expected 1 4:2:0 frames … left 196162560 right 36864` — the hardcoded 192x128 does not match that pin); pointed at `fixtures/sbpart/seed42.obu` (192x128) → `total luma mismatches: 0 bbox x=[192,0] y=[128,0]` | STAGING (needs the exact 192x128 pin the harness was written for) → once fed that pin it is REAL DIAGNOSTIC VALUE: it is the mismatch-geometry printer, and it reports **zero** mismatches today | keep; reason rewrite should name the 192x128 requirement, since a wrong pin dies in the oracle rather than saying "wrong size" | | ||
| 72 | +| `sb128_r2_control_sb64` | lane diagnostic | yes (server, 1.2 s) | `control sb64: 9 frames exact (1 hidden)` — the sb64 control arm | REAL DIAGNOSTIC VALUE: it is the negative control for the sb128 story, and it is the only arm that proves sb64 is unaffected | keep | | ||
| 73 | +| `sweep_rectx_recipes` | recipe sweep | yes (server, 28 s) | 100+ aomenc recipe rows, every one `mismatched=0`; fires the rect-tx arm 2–13 times per recipe | REAL DIAGNOSTIC VALUE: it is the recipe *search* that established no rect-tx mismatch exists, which is what un-ignored the rect gates | keep; the reason `lane-rectx r3 scratch sweep` is a lane label, not a reason — rewrite to `#[ignore = "recipe search: 100+ aomenc rect-tx recipes, 28 s; establishes that no recipe mismatches"]` | | ||
| 74 | + | ||
| 75 | +## Bare `#[ignore]` scratch in `stream.rs` (2) and `transform.rs` (2) | ||
| 76 | + | ||
| 77 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 78 | +|---|---|---|---|---|---| | ||
| 79 | +| `scratch_decode_pinned_stream_once` | scratch | yes, with `EC_AV1_PIN` | unset → panic; with `fixtures/golden7-forwarding-mismatch.obu` → `OK: 4 frames` | STAGING as a *gate* (prints, asserts nothing); REAL DIAGNOSTIC VALUE as a one-line "does this pin decode" check | reason rewrite: `#[ignore = "scratch: decodes the .obu at EC_AV1_PIN and prints OK/ERR, asserts nothing"]` | | ||
| 80 | +| `scratch_isolate_pinned_mismatch` | scratch | yes, with `EC_AV1_PIN` (+`EC_AV1_PIN_W/H/N`) | unset → panic; with golden7 and the *wrong* W/H/N → `expected 1 4:2:0 frames … left 24576 right 6144`; with `W=64 H=64 N=4` → per-frame per-plane `MATCH` for all 4 frames | STAGING (needs a pin **and** its dimensions); the default W/H=64 N=1 is wrong for every real pin, so the first run always dies in the oracle | reason rewrite must state "set `EC_AV1_PIN` *and* `EC_AV1_PIN_W/H/N` to the pin's real geometry"; the print itself is the useful artifact (first divergent pixel per plane) | | ||
| 81 | +| `txrd_gain_probe` | scratch | yes (server, 0.0 s) | per-tx-type gain table 4x4→32x32: `alpha` 0.977–1.031, e.g. 32x32 DctDct 0.9964, Idtx 1.0004 | REAL DIAGNOSTIC VALUE — it is the orthonormal-ness check for every transform pair and size, and it is the only place a mis-scaled basis shows up | keep; reason rewrite (currently a bare `#[ignore]`, which the repo convention forbids) | | ||
| 82 | +| `scratch_probe_32x32_dequant` | scratch | yes (server, 0.0 s) | `dq[0..4]=[-57,-67,-67,0]`, row0 8× the DC then −1s, `single_sum` vs `combined` differ in length 8 vs 32 | REAL DIAGNOSTIC VALUE while the dequant path is being changed; it is the smallest reproducible view of dequant scale | keep; reason rewrite (bare `#[ignore]`) | | ||
| 83 | + | ||
| 84 | +## Real-library / real-film probes (4) + calibration-by-library | ||
| 85 | + | ||
| 86 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 87 | +|---|---|---|---|---|---| | ||
| 88 | +| `probe_intrabc_key_frame` | real-library probe | **no on server** (`SKIP probe_intrabc_key_frame: no OBS recording`); **yes locally**, 134 s | 4 quantizers × intrabc on/off at 1280x768 from the OBS capture: q5 on = 112 339 B / 63.31 dB with 232 blocks and 4800/3174/820 searches/found/won; q45 on finds 91 searches, 0 wins | REAL DIAGNOSTIC VALUE (it is the measurement that priced IntraBC) | keep; it is a **local-run** item: the manifest paths do not exist on a server | | ||
| 89 | +| `pricer_error_census_on_clips` | real-library census | no on server (2 rows, bars only); yes locally, 8.9 s | per-coefficient-set priced-vs-written error, e.g. `Chroma16 nz=0 +83.3 %`, `Chroma4 nz=0 −25.4 %`, `Luma8Inter nz=0 +54.6 %`, `ALL +10.2 %` | REAL DIAGNOSTIC VALUE — the largest mis-pricing rows are named | keep; **local-run** | | ||
| 90 | +| `probe_screen_detect` | real-library census | no on server (bars rows only, 3 SKIPs); yes locally, 15 s | 5 clips × 2 crops: share of 16x16 blocks with 2..=N colours and per-pixel var > V, e.g. bars 1080p 1920x1024 N=64/V=0 → 9.5 %; film B 640x384 N=128/V=0 → 27.7 % | REAL DIAGNOSTIC VALUE (the detector's operating point) | keep; **local-run** for the film/screen rows | | ||
| 91 | +| `probe_screen_library` | real-library sweep | no on server (135/142 rows `SKIP: file is gone`); yes locally, 169 s | every manifest VIDEO row at 10/50/90 % + the 2 bars anchors; widest split `4 colours, var>128, gap -0.3 points`, threshold `0.2 % = EC_AV1_SCREEN_PCT 541` | REAL DIAGNOSTIC VALUE — this is the number that *set* the screen threshold | keep; **local-run**, and it is the one item that is meaningless off the library (it degenerates to 4 surviving rows) | | ||
| 92 | +| `tpl_intra_denominator_histogram` | fixture census | yes (server, 0.9 s) | bars 1080p 1920x1024: 61 440 cells over 8 frames, mean intra MAD 420, **89.4 % of cells below 0.25× the mean**; bars 2160p 90.8 %; p99 = 19.6–25.5× | REAL DIAGNOSTIC VALUE — it confirms the "flat filtered cells give a tiny denominator" worry is *expected*, not a bug | keep; the reason says "needs the film fixtures" but it reads only `fixtures/video/*` bars — reason rewrite | | ||
| 93 | +| `probe_parity_point` | parity diagnostic | yes, with all 5 env vars | unset → `Result::unwrap() on Err(NotPresent)` at `encode.rs:22802`; with `EC_PARITY_{DIMS,FRAMES,Q,CLIP,SS,VF}` → `PARITY q=100 bytes=17075 fnv1a=0b505c758993965a speed=0 pyramid Some(mini_gop 8 …)` | STAGING (needs 5 env vars, and it is meant to be diffed against `examples/enc_probe`) but it produces the hash it promises | keep; reason rewrite should name the five variables instead of "a clip" | | ||
| 94 | +| `last2_census` | real-film census | no on server (3 SKIPs, **empty table**); yes locally, 7 s | film A leaf: 57 600 blocks, far wins 38.7 % (>10 % on 19.0 %), energy removed 6.99 %; film A ARF 37.8 %/10.31 %; film B leaf 38.1 %/7.25 %; film B ARF 44.3 %/8.38 % | REAL DIAGNOSTIC VALUE — it is the pricing of the shipped `EC_AV1_LAST2` lever | keep; **local-run**; on a server it prints a header and no rows, which reads as green-but-empty (a silent-skip worth a guard) | | ||
| 95 | +| `arf_pred_census` | real-film census | no on server (empty table); yes locally, 9 s | film A: 5 ARFs, lag8 SAD/px 2.484 → lag4 2.369 → tf lag8 2.315, tf removes 6.8 %, ceiling 47.74 dB; film B: 1.199/1.114/1.028, removes 14.3 %, ceiling 49.54 dB | REAL DIAGNOSTIC VALUE | keep; **local-run**; same empty-table-off-library caveat | | ||
| 96 | + | ||
| 97 | +## `prune_k` sweeps (2) | ||
| 98 | + | ||
| 99 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 100 | +|---|---|---|---|---|---| | ||
| 101 | +| `prune_k_quality_sweep` | real-clip sweep | no on server (3 hard-coded `/home/user/...` paths, all SKIP); yes locally, 23 s | 3 clips × 2 quantizers × K∈{3,4,6}: `dark/flat q=60 baseline 2863 B 54.71 dB → K=6 2879 B 54.77 dB (+0.060 dB)`, `detailed q=150 baseline 2859 B 39.73 dB → K=3 2828 B (−0.061 dB)`, `film q=150 7570 B 36.74 dB → K=3 7526 B (−0.015 dB)` | REAL DIAGNOSTIC VALUE — the K-pruning decision table; the deltas are ≤0.06 dB everywhere | keep; **local-run only**; reason rewrite: the paths are hard-coded absolutes, so name that | | ||
| 102 | +| `prune_k_quality_sweep_inter` | real-clip sweep | no on server (3 SKIPs); yes locally, 53 s | inter arms: `dark/flat q=150 baseline 504 B 49.82 dB`, K=3/4/6 all 504 B / +0.000 dB; `film q=60 33440 B 45.71 dB → K=3 33147 B (−0.012 dB)` | REAL DIAGNOSTIC VALUE (it is the evidence that K pruning is free on inter) | keep; **local-run only** | | ||
| 103 | + | ||
| 104 | +## Already un-ignored by the wave (were in scope on `298f75c4`) | ||
| 105 | + | ||
| 106 | +These six were `#[ignore]`d on the tree this lane measured first and are **not** in the base commit's | ||
| 107 | +ignored set any more. Re-verified on `6c1d78a6`, un-ignored and green: | ||
| 108 | + | ||
| 109 | +| name | class | ran? | observed result | verdict bucket | disposition | | ||
| 110 | +|---|---|---|---|---|---| | ||
| 111 | +| `pinned_golden3_stream_decodes_pixel_exact` | pinned gate | yes | `pinned_golden3_stream_decodes_pixel_exact: 4 frame(s) byte-exact vs ffmpeg from …/crates/ec-av1/fixtures/golden3-pin.obu` (0.10 s) | REAL DIAGNOSTIC VALUE | already un-ignored; the SKIP seen on the older tree was a staging artifact | | ||
| 112 | +| `pinned_sbpart_stream_decodes_pixel_exact` | pinned gate | yes | `ok` (0.10 s) | REAL DIAGNOSTIC VALUE | already un-ignored | | ||
| 113 | +| `pinned_golden4_stream_decodes_pixel_exact` | pinned gate | yes, 0.1 s | `non_last_ref_hits before=0 after=1` | REAL DIAGNOSTIC VALUE | already un-ignored | | ||
| 114 | +| `pinned_golden7_stream_decodes_pixel_exact` | pinned gate | yes, 0.1 s | `non_last_ref_hits before=0 after=2`, pixel-exact vs ffmpeg on all 4 frames | REAL DIAGNOSTIC VALUE | already un-ignored | | ||
| 115 | +| `pinned_lr_sgr_stream_call_unique_dump` | pinned dump | yes, 0.1 s | `frame 0: y_mismatch=false u_mismatch=false v_mismatch=false` | REAL DIAGNOSTIC VALUE | already un-ignored | | ||
| 116 | +| `a_real_aomenc_*` recipe gates (3) | recipe gates, gate-blind | yes, 6/15/16 s | each FAILS by its own non-vacuity guard: `zero rect64 dequant calls ever observed CURRENT_Q_IDX != base_q_idx (40 matches, 0 refusals out of 40)`; `no 32-level intra 1:4 strip (32x8/8x32) fired over 40 compared streams` | ROBUST-RED (correct reds — the gate refuses to pass vacuously) | un-ignored by the wave, which means they now run in the suite and red on the feature not firing; that is the gate's stated contract, flagged here for the merge owner | | ||
| 117 | + | ||
| 118 | +`pinned_warp_stream_decodes_pixel_exact` is still `#[ignore]`d at the base commit and is in the | ||
| 119 | +measured set below (11 pins walked, `warp_selected_hits` 0→1→5→6→8…, all pixel-exact, 1.2 s). | ||
| 120 | + | ||
| 121 | +## Summary of buckets | ||
| 122 | + | ||
| 123 | +- **REAL DIAGNOSTIC VALUE (32 of the 38)** — every wall/BD/timing/sweep/census item that produced its | ||
| 124 | + table on the tree, plus the 2 transform scratch probes and the `pinned_warp` gate. The wall/BD set | ||
| 125 | + is the expensive half: `tile_search_wall_4k` 732 s, `bd_rate_screen_native` 858 s, | ||
| 126 | + `bd_rate_film_long_gop` 1318 s, `tile_search_wall_1080p` 1243 s (and it does not fit a 4-core server | ||
| 127 | + at all), `tile_wall_table_at_1080p` 1630 s. | ||
| 128 | +- **STAGING (5)** — `probe_tiny_fixture_trace`, `debug_part32_r2_sbpart_pin_mismatch_geometry`, | ||
| 129 | + `scratch_decode_pinned_stream_once`, `scratch_isolate_pinned_mismatch`, `probe_parity_point`: all | ||
| 130 | + need operator-supplied env vars, and three of them die inside the ffmpeg oracle with a | ||
| 131 | + frame-size assert rather than a "you forgot the variable" message. | ||
| 132 | +- **ROBUST-RED (1 of the 38)** — `probe_split`: a real signal, in `bd_rate`, not in the decoder. | ||
| 133 | + (The three `a_real_aomenc_*` recipe gates were ROBUST-RED too, but the wave un-ignored them, so | ||
| 134 | + they are no longer part of the ignored set — see the table above.) **0 decoder defects.** | ||
| 135 | +- **DEAD WEIGHT (0)** — nothing in the set is dead: every item produced a number or a verdict on some | ||
| 136 | + tree. What *is* dead is the reason text: **11 items carried a reason that misdescribed them** | ||
| 137 | + (4 bare `#[ignore]`, `filter_stage_wall_film` naming a film it does not read off the library, | ||
| 138 | + `tpl_intra_denominator_histogram` naming "film fixtures" it never opens, `sweep_rectx_recipes` | ||
| 139 | + carrying a lane label instead of a reason, `probe_parity_point` saying "a clip" when it needs five | ||
| 140 | + env vars, `scratch_isolate_pinned_mismatch` with no reason and a wrong default geometry, and the | ||
| 141 | + two library sweeps whose hard-coded `/home/user/...` paths are the real precondition). Rewrites | ||
| 142 | + proposed above; **deletion left to the merge owner**, nothing deleted, no decoder logic touched. | ||
| 143 | + | ||
| 144 | +## Local-run class (cannot run on a fleet host) | ||
| 145 | + | ||
| 146 | +`probe_intrabc_key_frame`, `pricer_error_census_on_clips`, `probe_screen_detect`, | ||
| 147 | +`probe_screen_library`, `last2_census`, `arf_pred_census`, `prune_k_quality_sweep`, | ||
| 148 | +`prune_k_quality_sweep_inter`, `bd_rate_film_long_gop` (films-only arm), | ||
| 149 | +`bd_rate_screen_native` (film rows), `bd_rate_vs_libaom_and_rav1e` (screen row), | ||
| 150 | +`probe_parity_point` (if pointed at a library clip). All twelve were run on the workstation and | ||
| 151 | +produced their numbers above; their server behaviour is a correct `SKIP`, not a red. | ||
| 152 | + | ||
| 153 | +## Staging notes for the merge owner | ||
| 154 | + | ||
| 155 | +- `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders` is a gate that costs 31 s | ||
| 156 | + and is the only 1080p arm in the ignored set — the strongest un-ignore candidate. | ||
| 157 | +- `last2_census` and `arf_pred_census` print a table header and zero rows when the library is absent, | ||
| 158 | + then exit 0. Off the library that is indistinguishable from "measured, found nothing"; a | ||
| 159 | + `rows == 0 → panic` guard would make the skip loud. | ||
| 160 | +- The `pinned_golden3` / `pinned_sbpart` SKIPs came from a tree whose `crates/ec-av1/fixtures/` | ||
| 161 | + lacked the pins; both pins are now tracked (`git ls-files` lists them, `.gitignore` negates | ||
| 162 | +- Both pins (`golden3-pin.obu`, `sbpart-pin.obu`) are tracked at `crates/ec-av1/fixtures/` and both | ||
| 163 | + tests were un-ignored by the wave that landed after this lane staged its tree — re-verified green | ||
| 164 | + on `6c1d78a6`. The `SKIP` observed here was a staging artifact, not a missing fixture. | ||
| 165 | + | ||
| 166 | +## What this branch changed | ||
| 167 | + | ||
| 168 | +Base `745c60e7`, branch `lane-av1probes`. No decoder logic touched. | ||
| 169 | + | ||
| 170 | +### 1. Un-ignored: `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders` | ||
| 171 | + | ||
| 172 | +Evidence, plain (non-`--ignored`) release run on this tree: | ||
| 173 | + | ||
| 174 | +``` | ||
| 175 | +test encoder::tests::a_1080p_multi_tile_... ... 1080p 2x1 tiles: 84488 bytes, sample-exact | ||
| 176 | +1080p 2x2 tiles: 84208 bytes, sample-exact | ||
| 177 | +1080p 4x2 tiles: 84685 bytes, sample-exact | ||
| 178 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 748 filtered out; finished in 27.39s | ||
| 179 | +``` | ||
| 180 | + | ||
| 181 | +Assertion content: for each of the three tile grids (2x1, 2x2, 4x2) it encodes three 1920x1080 | ||
| 182 | +pictures, decodes the stream with our decoder and with ffmpeg, asserts both produce the same frame | ||
| 183 | +count, and then compares the luma plane frame by frame, panicking with the **first differing sample's | ||
| 184 | +(x, y)** and asserting the plane lengths match. It is a first-differing-sample comparison, not a | ||
| 185 | +length or non-empty smoke. | ||
| 186 | + | ||
| 187 | +The two skippable halves route through the crate's **existing** presence probes — `h264_clip_frames` | ||
| 188 | +(which itself asks `have_ffmpeg()` and `clip.exists()`) and `have_ffmpeg()` for the ffmpeg arm. No new | ||
| 189 | +presence-check shape was introduced. | ||
| 190 | + | ||
| 191 | +Ignore count on the branch: **50** (was 51). | ||
| 192 | + | ||
| 193 | +### 2. Reason rewrites — before / after | ||
| 194 | + | ||
| 195 | +| item | before | after | | ||
| 196 | +|---|---|---| | ||
| 197 | +| `txrd_gain_probe` | `#[ignore]` (bare) | `scratch: prints the per-tx-pair orthonormal-ness alpha for 4x4..32x32; the reference table, asserts nothing` | | ||
| 198 | +| `scratch_probe_32x32_dequant` | `#[ignore]` (bare) | `scratch: prints the 32x32 dequant rows for one hand-built level vector; asserts nothing` | | ||
| 199 | +| `scratch_decode_pinned_stream_once` | `#[ignore]` (bare) | `scratch: decodes the .obu at EC_AV1_PIN and prints OK/ERR; asserts nothing` | | ||
| 200 | +| `scratch_isolate_pinned_mismatch` | `#[ignore]` (bare) | `scratch: needs EC_AV1_PIN plus EC_AV1_PIN_W/H/N at the pin's REAL geometry (defaults 64/64/1 are wrong for every other pin); prints the first divergent pixel per plane` | | ||
| 201 | +| `probe_tiny_fixture_trace` | `diagnostic, run manually with --nocapture and EC_TINY_FIXTURE_PATH set` | `diagnostic: needs EC_TINY_FIXTURE_PATH naming an .obu; prints decode/REFUSED, asserts nothing` | | ||
| 202 | +| `debug_part32_r2_sbpart_pin_mismatch_geometry` | `debug harness, run manually with EC_AV1_GATE_DUMP_PIN` | `debug harness: needs EC_AV1_GATE_DUMP_PIN at a 192x128 pin (the geometry is hard-coded; any other size dies in the ffmpeg oracle)` | | ||
| 203 | +| `sweep_rectx_recipes` | `lane-rectx r3 scratch sweep` (a lane label) | `recipe search: 9 sources x 7 cq x rtx on/off, 28 s; establishes that no aomenc rect-tx recipe mismatches` | | ||
| 204 | +| `probe_split` | `a sweep, not a gate` | `a sweep, not a gate; PANICS on its own lossless synthetic rows (stripes is lossless at q110/90/70, so bd_rate has no PSNR overlap) -- point EC_AV1_CLIPS at a lossy clip` | | ||
| 205 | +| `filter_stage_wall_film` | `wall measurement: minutes, run it with --ignored --nocapture` | `wall measurement: 16 s; MEASURES THE BARS FIXTURE unless EC_AV1_WALL_CLIP names a real film window` | | ||
| 206 | +| `tile_search_wall_1080p` | `wall measurement: minutes, run it with --ignored --nocapture` | `wall measurement: 20 min at 1080p and it TIMES OUT on a 4-core host -- run it on >=8 cores` | | ||
| 207 | +| `prune_k_quality_sweep` / `_inter` | `needs real clips and ffmpeg; prints numbers for the lane report to judge` | `local-run only: the three clips are hard-coded /home/user paths, so off this workstation it SKIPs every row and prints nothing` | | ||
| 208 | +| `tpl_intra_denominator_histogram` | `needs ffmpeg and the film fixtures` | `0.9 s; reads only the fixtures/video COLOUR-BARS clips (not the films) and prints the per-cell intra-MAD distribution` | | ||
| 209 | +| `probe_parity_point` | `diagnostic: needs ffmpeg and a clip` | `diagnostic: needs EC_PARITY_{DIMS,FRAMES,Q,CLIP,SS,VF} -- all five, it unwraps the first missing one; prints one PARITY hash line` | | ||
| 210 | +| `tile_wall_table_at_1080p` / `tile_search_wall_4k` / `filter_stage_wall_1080p` / `filter_stage_wall_4k` | `…: minutes, run it with --ignored [--nocapture]` | the measured wall each one actually costs (27 min / 12 min / 36 s / 62 s) | | ||
| 211 | + | ||
| 212 | +### 3. `stage_timing_breakdown_inter`: the print lied about its own arithmetic | ||
| 213 | + | ||
| 214 | +Before: | ||
| 215 | + | ||
| 216 | +``` | ||
| 217 | +total: 594.89ms (151 bytes) | ||
| 218 | +motion search (NEWMV): 17.82ms (of which interpolation 148.63ms) | ||
| 219 | +transform + quantize: 214.19ms | ||
| 220 | +``` | ||
| 221 | + | ||
| 222 | +`of which 148.63` under a parent of `17.82` is not a breakdown, it is a contradiction. The timers are | ||
| 223 | +fine; the **print's attribution** was wrong, in two ways: | ||
| 224 | + | ||
| 225 | +- Bucket 0 is not "the motion search". `stage_since(0, ..)` fires only after `find_best_new_mv` and | ||
| 226 | + the global-MV search (`encode.rs:11959`, `:12080`), so it times the NEWMV/GLOBAL sub-search alone. | ||
| 227 | +- Bucket 1 is EVERY `crate::mc::predict` call — from the search's candidates *and* from a committed | ||
| 228 | + inter block's final prediction, and that final prediction runs outside any bucket-0 region. So | ||
| 229 | + bucket 1 is neither a subset of bucket 0 nor smaller than it, and the residual was absorbing the | ||
| 230 | + committed block's own interpolation while its label claimed to be the 13-mode intra loop. | ||
| 231 | + | ||
| 232 | +After (measured on this tree, total 264.82 ms): | ||
| 233 | + | ||
| 234 | +``` | ||
| 235 | +total: 264.82ms (151 bytes) | ||
| 236 | +NEWMV/GLOBAL sub-search (bucket 0): 8.57ms | ||
| 237 | +transform + quantize (bucket 2): 96.30ms | ||
| 238 | +coeff_bits, entropy pricing (bucket 3): 2.40ms | ||
| 239 | +buckets 0+2+3 accounted: 107.27ms | ||
| 240 | + | ||
| 241 | +OVERLAPPING, not additive: every mc::predict call (bucket 1) 70.54ms | ||
| 242 | + -- of which 61.97ms is OUTSIDE bucket 0 (a committed | ||
| 243 | + inter block's final prediction, which no bucket above times) | ||
| 244 | + and the rest is the search candidates' interpolation, already | ||
| 245 | + inside bucket 0. It is deliberately NOT added to the total. | ||
| 246 | + | ||
| 247 | +residual (13-mode intra candidate loop, the committed block's | ||
| 248 | + interpolation above, NEARESTMV's own predict, RD glue): 157.56ms | ||
| 249 | +``` | ||
| 250 | + | ||
| 251 | +**Which number is real:** both timers were always real — the wall, bucket 0, bucket 2 and bucket 3. | ||
| 252 | +The old line was wrong in its arithmetic, not its measurement. Bucket 1 is now a top-level row with | ||
| 253 | +the overlap quantified (70.54 − 8.57 = 61.97 ms sits outside bucket 0), it is deliberately not added | ||
| 254 | +to `accounted` because adding it would double-count the shared candidates, and the residual is | ||
| 255 | +labelled for what it now demonstrably contains. The accounting closes: 107.27 + 157.56 = 264.83 ms | ||
| 256 | +against a 264.82 ms wall. | ||