From 7d049f4a5c7c58b42d14054a1178a443e20afcce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 19:33:17 +0300 Subject: [PATCH] fix(av1): the intra-in-inter shape refusal named a correlate, not the shape EC_OBMCREC=1 on the three 2 s cuts of the 10-bit 1920x792 128-superblock stream shows every arrival at this site is a 128x64 block (a PARTITION_HORZ half of a 128 superblock coded INTRA inside an inter frame) at mi (128,416) / (192,0) / (192,0) -- never the 16x4/4x16 strip the message named (class refusal-names-a-correlate). The message now carries the measured shape; refusal_inventory follows it. --- crates/ec-av1/src/decode.rs | 17 ++++++++++++++--- crates/ec-av1/src/refusal_inventory.rs | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index d64ae82d..0554728b 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -7400,9 +7400,20 @@ fn decode_intra_rect_in_inter( (8, 32) => (1, 2), (16, 64) => (2, 3), _ => { - return Err(unsupported( - "an intra-coded 16x4/4x16 strip on the inter block path (the 16x16-level 1:4 inter partition is refused before this point)", - )) + if std::env::var_os("EC_OBMCREC").is_some() { + eprintln!( + "OBMCREC intra-in-inter shape bw={bw} bh={bh} mi=({mi_r},{mi_c}) skip={skip}" + ); + } + // lane-obmcrec r1: the message used to name a 16x4/4x16 strip + // (class refusal-names-a-correlate). Measured with `EC_OBMCREC=1` + // on three 2 s cuts of the 10-bit 1920x792 128-superblock stream: + // every arrival here is a 128x64 block -- a PARTITION_HORZ half of + // a 128 superblock coded INTRA inside an inter frame, at mi + // (128,416) / (192,0) / (192,0) -- not a strip at all. + return Err(unsupported(format!( + "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)" + ))); } }; // [`read_intra_mode_rect`]'s own refusal: palette/intrabc syntax is diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index cf39edbf..89f27916 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -91,7 +91,7 @@ const REFUSALS: &[&str] = &[ // inter path's intra arm now routes 2:1 strips through `decode_rect_split`); // what is left is the 1:4 shape, whose `bsize_to_tx_size_cat` breaks the // size-group/category diagonal the 2:1 shapes share. - "an intra-coded 16x4/4x16 strip on the inter block path (the 16x16-level 1:4 inter partition is refused before this point)", + "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)", // The same arm's screen-content gate: palette/intrabc syntax is consumed // for square blocks only, so a strip in such a frame would skip symbols. "a HORZ/VERT intra strip in a screen-content frame (palette syntax is consumed for square blocks only)",