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 {
1529 ] {1529 ] {
1530 let mut first = None;1530 let mut first = None;
1531 let mut count = 0;1531 let mut count = 0;
1532+ let mut worst = 0i32;
1532 for (i, (x, y)) in a.iter().zip(b.iter()).enumerate() {1533 for (i, (x, y)) in a.iter().zip(b.iter()).enumerate() {
1533 if x != y {1534 if x != y {
1534 count += 1;1535 count += 1;
1535 if first.is_none() {1536 if first.is_none() {
1536 first = Some(i);1537 first = Some(i);
1537 }1538 }
1539+ worst = worst.max((*x as i32 - *y as i32).abs());
1538 }1540 }
1539 }1541 }
1540 if let Some(i) = first {1542 if let Some(i) = first {
1541 eprintln!(1543 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={}",
1543 i / w,1545 i / w,
1544 i % w,1546 i % w,
1545 a[i],1547 a[i],