The intra-in-inter shape refusal named a correlate, not the shape
Browse files at this commit7d049f4a5c7c58b42d14054a1178a443e20afcceParent: 7285f03- fix
- the intra-in-inter shape refusal named a correlate, not the shape
2 changed files +15 -4
crates/ec-av1/src/decode.rsmodified+14 -3
| @@ -7400,9 +7400,20 @@ fn decode_intra_rect_in_inter( | |||
| 7400 | (8, 32) => (1, 2), | 7400 | (8, 32) => (1, 2), |
| 7401 | (16, 64) => (2, 3), | 7401 | (16, 64) => (2, 3), |
| 7402 | _ => { | 7402 | _ => { |
| 7403 | - return Err(unsupported( | 7403 | + if std::env::var_os("EC_OBMCREC").is_some() { |
| 7404 | - "an intra-coded 16x4/4x16 strip on the inter block path (the 16x16-level 1:4 inter partition is refused before this point)", | 7404 | + eprintln!( |
| 7405 | - )) | 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 | + ))); | ||
| 7406 | } | 7417 | } |
| 7407 | }; | 7418 | }; |
| 7408 | // [`read_intra_mode_rect`]'s own refusal: palette/intrabc syntax is | 7419 | // [`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] = &[ | |||
| 91 | // inter path's intra arm now routes 2:1 strips through `decode_rect_split`); | 91 | // inter path's intra arm now routes 2:1 strips through `decode_rect_split`); |
| 92 | // what is left is the 1:4 shape, whose `bsize_to_tx_size_cat` breaks the | 92 | // what is left is the 1:4 shape, whose `bsize_to_tx_size_cat` breaks the |
| 93 | // size-group/category diagonal the 2:1 shapes share. | 93 | // 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)", |
| 95 | // The same arm's screen-content gate: palette/intrabc syntax is consumed | 95 | // The same arm's screen-content gate: palette/intrabc syntax is consumed |
| 96 | // for square blocks only, so a strip in such a frame would skip symbols. | 96 | // for square blocks only, so a strip in such a frame would skip symbols. |
| 97 | "a HORZ/VERT intra strip in a screen-content frame (palette syntax is consumed for square blocks only)", | 97 | "a HORZ/VERT intra strip in a screen-content frame (palette syntax is consumed for square blocks only)", |