From 37631b389d19e230bf6ddd0099f33f8927812a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 14:09:11 +0300 Subject: [PATCH] ec-av1: tag the EC_SYMR reads in read_eob and read_coeffs' tx_type `set_symr_cdf` (msac.rs:428) existed and had 24 call sites, but nothing tagged the two reads the 4:4:4 partition-walk work pairs against the oracle's per-read `site=`: `read_eob`'s EOB_PT read and `read_coeffs`' tx_type read. Both printed `cdf=` empty, so a CDF width could not be attributed to a read FUNCTION -- n=7 reads identically as "width 8 = TX_SET_INTRA_1" and as "the 64-CLASS EOB_PT width", and that ambiguity is exactly what a tag settles. Two lines, behaviour-free: `SYMR_CDF` is a `Cell<&'static str>` thread-local reset after each symbol (msac.rs:491) and is read only by the EC_SYMR eprintln, and the placement matches the 24 existing `y_mode`/`uv_mode` tags. Report section 16 of the branch is NOT landed with it: it depends on rounds 2-7, which main does not carry, and its headline (a transform-CLASS fork at read 41976) is retracted by `lanes/av1tilerows.report.md` 17 on merged main. --- crates/ec-av1/src/decode.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 9a6974fa..713ecf0a 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -8029,6 +8029,7 @@ fn read_eob(dec: &mut SymbolDecoder, coding: &mut TxbTables, class: TxClass) -> let (range, value) = dec.debug_state(); eprintln!("EC_AV1_EOBPT_CDF {eob_pt:?} range={range} value={value}"); } + crate::msac::SymbolDecoder::set_symr_cdf("eob_pt"); let group = dec.symbol(eob_pt) + 1; if trace { eprintln!("TRACE eob_pt value={group} rng={}", dec.debug_state().0); @@ -8277,6 +8278,7 @@ fn read_coeffs( if crate::envflags::env_flag!("EC_AV1_EOBPT_CDF") && len == 3 { eprintln!("EC_AV1_TXTYPE32_CDF {tx_type_cdf:?}"); } + crate::msac::SymbolDecoder::set_symr_cdf("tx_type"); let t = dec.symbol(tx_type_cdf); crate::census::tx_type(len, t); if coeff_trace_on() {