forge
Explore
Log in

Don't you dare go Hollow

lane-av1422warp: fix the EC_SYMR cdf slot -- it was printing the phase

Browse files at this commit

a384eeb625ce384a2bb4a1176a02515cb3905497Ahmet Kaan GümüşParent: b0307c7
Instrument bug, found by the round-28 check that flagged it. The format
is `ph={} cdf={} ...` but the second argument was `SYMR_PHASE` again, not
`SYMR_CDF` -- an off-by-one from inserting the phase argument in round 27
and the cdf one in round 28. So every read reported the PHASE in the cdf
field, which is exactly the `inter8` round 28 saw where no code path ever
sets that value, and why this lane could not label its own half of the
window.

With it fixed the tag is live and verified against three distinct tables
on a1.obu: interintra 72533, compound_idx 33655, comp_group_idx 13744.
No behaviour change -- the print only. Identity re-proved: 4:2:0 control
byte-identical to aomdec --rawvideo, 4:4:4 witness byte-identical to the
pre-lane build, both pinned 422 witnesses pixel-exact.
crates/ec-av1/src/msac.rsmodified+1 -1
@@ -467,7 +467,7 @@ impl<'a> SymbolDecoder<'a> {
467 eprintln!(467 eprintln!(
468 "EC_SYMR ph={} cdf={} mi=({},{}) pre=({},{},{}) cdf0={} n={} s={} post_rng={}",468 "EC_SYMR ph={} cdf={} mi=({},{}) pre=({},{},{}) cdf0={} n={} s={} post_rng={}",
469 SYMR_PHASE.with(std::cell::Cell::get),469 SYMR_PHASE.with(std::cell::Cell::get),
470- SYMR_PHASE.with(std::cell::Cell::get),470+ SYMR_CDF.with(std::cell::Cell::get),
471 SYMR_MI.with(std::cell::Cell::get).0,471 SYMR_MI.with(std::cell::Cell::get).0,
472 SYMR_MI.with(std::cell::Cell::get).1,472 SYMR_MI.with(std::cell::Cell::get).1,
473 pre_value,473 pre_value,