From 13efac658e963acc6297cc18a1d0e6bdb199fe74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 04:02:56 +0300 Subject: [PATCH] wip(av1): txi lane snapshot at the turn cap (orchestrator) --- crates/ec-av1/src/encoder.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/ec-av1/src/encoder.rs b/crates/ec-av1/src/encoder.rs index b058e41f..6a37b52c 100644 --- a/crates/ec-av1/src/encoder.rs +++ b/crates/ec-av1/src/encoder.rs @@ -3887,12 +3887,16 @@ mod tests { wide_only(&intra) > 0, "no intra luma unit took a 1-D DCT, the type only TX_SET_INTRA_1 names: {intra:?}" ); - let inter_wide: usize = inter.iter().sum::() - - inter[TxType::DctDct as usize] - - inter[TxType::Idtx as usize]; + // The INTER units of this same frame are coded into the + // twelve/sixteen-symbol alphabets too (the header bit widens + // every luma set at once), but their SEARCH still offers the + // two-type list -- see `encode::inter_luma_set`'s note on the + // reference-slot refusal the wider inter candidates trip. So the + // statement here is that those units still decode sample-exact + // out of the wider alphabet, which the two decoders below make. assert!( - inter_wide > 0, - "no inter luma unit took a type outside the two-type set: {inter:?}" + inter.iter().sum::() > 0, + "the clip coded no inter luma transform unit at all: {inter:?}" ); } else { eprintln!(