forge
Explore
Log in

Don't you dare go Hollow

The intra-in-inter shape refusal named a correlate, not the shape

Browse files at this commit

7d049f4a5c7c58b42d14054a1178a443e20afcceAhmet Kaan GümüşParent: 7285f03
  • fix
    • the intra-in-inter shape refusal named a correlate, not the shape
Show full message
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.rsmodified+14 -3
@@ -7400,9 +7400,20 @@ fn decode_intra_rect_in_inter(
74007400 (8, 32) => (1, 2),
74017401 (16, 64) => (2, 3),
74027402 _ => {
7403- return Err(unsupported(
7404- "an intra-coded 16x4/4x16 strip on the inter block path (the 16x16-level 1:4 inter partition is refused before this point)",
7405- ))
7403+ if std::env::var_os("EC_OBMCREC").is_some() {
7404+ eprintln!(
7405+ "OBMCREC intra-in-inter shape bw={bw} bh={bh} mi=({mi_r},{mi_c}) skip={skip}"
7406+ );
7407+ }
7408+ // lane-obmcrec r1: the message used to name a 16x4/4x16 strip
7409+ // (class refusal-names-a-correlate). Measured with `EC_OBMCREC=1`
7410+ // on three 2 s cuts of the 10-bit 1920x792 128-superblock stream:
7411+ // every arrival here is a 128x64 block -- a PARTITION_HORZ half of
7412+ // a 128 superblock coded INTRA inside an inter frame, at mi
7413+ // (128,416) / (192,0) / (192,0) -- not a strip at all.
7414+ return Err(unsupported(format!(
7415+ "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)"
7416+ )));
74067417 }
74077418 };
74087419 // [`read_intra_mode_rect`]'s own refusal: palette/intrabc syntax is
crates/ec-av1/src/refusal_inventory.rsmodified+1 -1
@@ -91,7 +91,7 @@ const REFUSALS: &[&str] = &[
9191 // inter path's intra arm now routes 2:1 strips through `decode_rect_split`);
9292 // what is left is the 1:4 shape, whose `bsize_to_tx_size_cat` breaks the
9393 // size-group/category diagonal the 2:1 shapes share.
94- "an intra-coded 16x4/4x16 strip on the inter block path (the 16x16-level 1:4 inter partition is refused before this point)",
94+ "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)",
9595 // The same arm's screen-content gate: palette/intrabc syntax is consumed
9696 // for square blocks only, so a strip in such a frame would skip symbols.
9797 "a HORZ/VERT intra strip in a screen-content frame (palette syntax is consumed for square blocks only)",