forge
Explore
Log in

Don't you dare go Hollow

diag(av1): report worst pixel delta in the pinned-mismatch scratch probe

Browse files at this commit

ddd8c16605a667caccfbcc6d40845d4547c22dbcAhmet Kaan GümüşParent: 0c92312
Re-measured the cdf-forwarding gate's flake on HEAD (4/30, ~13%, matches
the prior ~17% sample -- not stale). Pinned a failing stream and used
scratch_isolate_pinned_mismatch to triage it: frame 2 is small (+-1,
MC-rounding shape); frame 3's much larger mismatch is downstream
propagation through frame 3's own inter reference to frame 2's
already-wrong pixels, not a second independent defect. Added worst-delta
to the probe's report so this triage doesn't need a manual pass next
time. Root cause not fixed this round -- see ledger for the numeric
reproduction (a 16x16 chroma block, mv=(7,15) eighth-pel, subpel
xfrac=15/yfrac=7) that lands outside the previously-fixed leaf8 4-tap
case, still open.
crates/ec-av1/src/stream.rsmodified+3 -1
@@ -1529,17 +1529,19 @@ mod tests {
15291529 ] {
15301530 let mut first = None;
15311531 let mut count = 0;
1532+ let mut worst = 0i32;
15321533 for (i, (x, y)) in a.iter().zip(b.iter()).enumerate() {
15331534 if x != y {
15341535 count += 1;
15351536 if first.is_none() {
15361537 first = Some(i);
15371538 }
1539+ worst = worst.max((*x as i32 - *y as i32).abs());
15381540 }
15391541 }
15401542 if let Some(i) = first {
15411543 eprintln!(
1542- "frame {f} plane {plane_name}: {count} mismatches, first at offset {i} (row {}, col {}) ours={} theirs={}",
1544+ "frame {f} plane {plane_name}: {count} mismatches (worst delta {worst}), first at offset {i} (row {}, col {}) ours={} theirs={}",
15431545 i / w,
15441546 i % w,
15451547 a[i],