wip(sub8): gate compiles + enable-rect-partitions=0; RED -- real desync found
Browse files at this commit4940cb1378ad153863d047b19684f04eec8cb7b6Parent: 224ed161 changed file +24 -0
- crates/ec-av1/src/stream.rs +24 -0
crates/ec-av1/src/stream.rsmodified+24 -0
| @@ -7200,6 +7200,23 @@ mod tests { | |||
| 7200 | eprintln!("SKIP a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact: {msg}"); | 7200 | eprintln!("SKIP a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact: {msg}"); |
| 7201 | return; | 7201 | return; |
| 7202 | } | 7202 | } |
| 7203 | + // round 2: `--enable-rect-partitions=0` was added below to keep | ||
| 7204 | + // aomenc off HORZ/VERT-below-8x8 elsewhere in the same tile, but it | ||
| 7205 | + // is NOT sufficient alone -- see the round-2 report | ||
| 7206 | + // (lanes/sub8-r1.report.md) for the live finding: 0/160 attempts | ||
| 7207 | + // across both 64x64 and a spatially-isolated single-16x16-leaf | ||
| 7208 | + // fixture passed, and every SPLIT that fires is immediately | ||
| 7209 | + // followed by a spurious HORZ/VERT read on the very next sibling | ||
| 7210 | + // 8x8 leaf, which reads as a real desync left behind by | ||
| 7211 | + // `decode_leaf_split4`/`read_intra_mode_sub8`, not an encoder | ||
| 7212 | + // choice this recipe can dodge. Tried and rejected: shrinking the | ||
| 7213 | + // frame to 16x16 (single 16x16 leaf, at most 4 candidate 8x8s) -- | ||
| 7214 | + // that surfaces an UNRELATED pre-existing tiny-frame edge-straddle | ||
| 7215 | + // defect (reproduces with zero sub8 code involved, `--min-partition | ||
| 7216 | + // -size`/`--max-partition-size` absent entirely), so it is not a | ||
| 7217 | + // safe way to isolate the leaf count. Left red; do not "fix" this | ||
| 7218 | + // gate by picking fixture parameters that dodge the desync without | ||
| 7219 | + // finding it. | ||
| 7203 | let (width, height) = (64usize, 64usize); | 7220 | let (width, height) = (64usize, 64usize); |
| 7204 | let mut refusals = Vec::new(); | 7221 | let mut refusals = Vec::new(); |
| 7205 | let mut fired_runs = 0u32; | 7222 | let mut fired_runs = 0u32; |
| @@ -7244,6 +7261,13 @@ mod tests { | |||
| 7244 | "--sb-size=64", | 7261 | "--sb-size=64", |
| 7245 | "--min-partition-size=4", | 7262 | "--min-partition-size=4", |
| 7246 | "--max-partition-size=8", | 7263 | "--max-partition-size=8", |
| 7264 | + // Below 8x8 only PARTITION_NONE/SPLIT are decodable (HORZ/VERT | ||
| 7265 | + // need a real rectangular transform, see the module doc above); | ||
| 7266 | + // disabling rect partitions entirely -- not just AB -- keeps | ||
| 7267 | + // aomenc from picking the still-refused HORZ/VERT arms almost | ||
| 7268 | + // every attempt (round 2 measured ~90% HORZ/VERT-below-8x8 | ||
| 7269 | + // refusals with --enable-ab-partitions=0 alone). | ||
| 7270 | + "--enable-rect-partitions=0", | ||
| 7247 | "--enable-ab-partitions=0", | 7271 | "--enable-ab-partitions=0", |
| 7248 | "--enable-1to4-partitions=1", | 7272 | "--enable-1to4-partitions=1", |
| 7249 | "--enable-palette=0", | 7273 | "--enable-palette=0", |