diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 415ad419..42bbfea1 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -85,6 +85,27 @@ pub(crate) fn intra_in_inter_filter_intra_hits() -> usize { INTRA_IN_INTER_FILTER_INTRA_HITS.with(|c| c.get()) } +// lane-angleinter r1: how many INTRA blocks inside an INTER frame carried a +// nonzero `angle_delta_y` / `angle_delta_uv` (`read_intra_angle_info`). Both +// arms refused a nonzero luma delta before this round, and no inter gate +// enabled `--enable-angle-delta` (aomenc's own default is 1). +thread_local! { + static INTRA_IN_INTER_ANGLE_DELTA_Y_HITS: std::cell::Cell = + const { std::cell::Cell::new(0) }; + static INTRA_IN_INTER_ANGLE_DELTA_UV_HITS: std::cell::Cell = + const { std::cell::Cell::new(0) }; +} + +/// Current value of [`INTRA_IN_INTER_ANGLE_DELTA_Y_HITS`]. +pub(crate) fn intra_in_inter_angle_delta_y_hits() -> usize { + INTRA_IN_INTER_ANGLE_DELTA_Y_HITS.with(|c| c.get()) +} + +/// Current value of [`INTRA_IN_INTER_ANGLE_DELTA_UV_HITS`]. +pub(crate) fn intra_in_inter_angle_delta_uv_hits() -> usize { + INTRA_IN_INTER_ANGLE_DELTA_UV_HITS.with(|c| c.get()) +} + // lane-realworld r1: this frame's `cdef.bits` (spec 5.9.19), threaded into // [`maybe_read_cdef_idx`] the same way [`ENABLE_EDGE_FILTER`] threads a // frame-level flag through the recursive block decode -- `0` (the default) @@ -16081,14 +16102,29 @@ fn decode_inter_block( "an intra mode this decoder does not code (round 2)", )); } - if (V_PRED..=D67_PRED).contains(&mode) { - let angle = dec.symbol(&mut cdfs.angle_delta[mode - V_PRED]); - if angle != ANGLE_DELTA_ZERO { - return Err(unsupported( - "a nonzero angle delta (this encoder never writes one)", - )); - } - } + // lane-angleinter r1: `read_intra_angle_info` (libaom `decodemv.c`, + // inside `read_intra_block_mode_info`) -- an intra block in an inter + // frame reads `angle_delta_y` off the same + // `angle_delta_cdf[mode - V_PRED]` row a key-frame block does, and + // the delta feeds the directional predictor (and the edge + // filter/upsample decision derived from the delta'd angle) unchanged. + // The symbol was read and then refused before this round even though + // aomenc enables `--enable-angle-delta` by default. + let angle_delta_y = if (V_PRED..=D67_PRED).contains(&mode) { + read_angle_delta(dec, &mut cdfs.angle_delta[mode - V_PRED]) + } else { + 0 + }; + if angle_delta_y != 0 { + INTRA_IN_INTER_ANGLE_DELTA_Y_HITS.with(|c| c.set(c.get() + 1)); + } + // The delta'd angle decides whether the intra edge filter runs at + // all, so this block needs the same luma edge-filter-type neighbour + // check a key-frame block does (`get_intra_edge_filter_type`, spec + // 7.11.2) -- this arm passed a hardcoded `false` while every + // directional intra-in-inter block was refused above. + let (nb_above_mode, nb_left_mode) = neighbours.modes_above_left(r, c); + let smooth_neighbor = is_smooth_mode(nb_above_mode) || is_smooth_mode(nb_left_mode); let uv_mode = dec.symbol(&mut cdfs.uv_mode_cfl[mode]); if (9..=12).contains(&uv_mode) { SMOOTH_UV_HITS.with(|c| c.set(c.get() + 1)); @@ -16112,6 +16148,7 @@ fn decode_inter_block( }; if angle_delta_uv != 0 { UV_ANGLE_DELTA_HITS.with(|c| c.set(c.get() + 1)); + INTRA_IN_INTER_ANGLE_DELTA_UV_HITS.with(|c| c.set(c.get() + 1)); } uv_predict_mode = if uv_mode == UV_CFL_PRED { DC_PRED @@ -16223,12 +16260,12 @@ fn decode_inter_block( tu_py, tx_px, mode, - 0, + angle_delta_y, tu_reach, &vec![0i32; tx_px * tx_px], None, filter_intra, - false, + smooth_neighbor, ); vec![0i32; tx_px * tx_px] } else { @@ -16245,7 +16282,7 @@ fn decode_inter_block( neighbours.around_mi(tu_mi, tx_px)[0], mode, mode, - 0, + angle_delta_y, tu_reach, y, tu_px, @@ -16256,7 +16293,7 @@ fn decode_inter_block( None, filter_intra, Some(tu_skip_ctx), - false, + smooth_neighbor, )? }; neighbours.record_mi_luma(tu_mi, tx_px, &tu_grid); @@ -16269,12 +16306,12 @@ fn decode_inter_block( py, side, mode, - 0, + angle_delta_y, reach, &vec![0i32; side * side], None, filter_intra, - false, + smooth_neighbor, ); } let ac = alpha.map(|_| cfl_ac_q3(y, px, py, side)); @@ -16322,7 +16359,7 @@ fn decode_inter_block( around[0], mode, mode, - 0, + angle_delta_y, reach, y, px, @@ -16333,7 +16370,7 @@ fn decode_inter_block( None, filter_intra, None, - false, + smooth_neighbor, )? }; let ac = alpha.map(|_| cfl_ac_q3(y, px, py, side)); @@ -17722,13 +17759,33 @@ fn decode_inter_block8( "an intra mode this decoder does not code (round 2)", )); } - if (V_PRED..=D67_PRED).contains(&mode) { - let angle = dec.symbol(&mut cdfs.angle_delta[mode - V_PRED]); - if angle != ANGLE_DELTA_ZERO { - return Err(unsupported( - "a nonzero angle delta (this encoder never writes one)", - )); - } + // lane-angleinter r1: `read_intra_angle_info` (libaom `decodemv.c`, + // inside `read_intra_block_mode_info`) -- an intra block in an inter + // frame reads `angle_delta_y` off the same + // `angle_delta_cdf[mode - V_PRED]` row a key-frame block does, and + // the delta feeds the directional predictor (and the edge + // filter/upsample decision derived from the delta'd angle) unchanged. + // The symbol was read and then refused before this round even though + // aomenc enables `--enable-angle-delta` by default. + let angle_delta_y = if (V_PRED..=D67_PRED).contains(&mode) { + read_angle_delta(dec, &mut cdfs.angle_delta[mode - V_PRED]) + } else { + 0 + }; + if angle_delta_y != 0 { + INTRA_IN_INTER_ANGLE_DELTA_Y_HITS.with(|c| c.set(c.get() + 1)); + // lane-angleinter r1: the >=16x16 arm's lift is gated by a real + // aomenc stream; this leaf's is NOT -- 80 attempts across two + // sizes and five quantisers never produced an 8x8 intra leaf with + // a nonzero delta (the leaf's own sibling refusals -- non-DC + // chroma, the TX_4X4 split, sub-16 rect inter leaves -- fire + // first). The prediction below would handle it; refusing keeps + // the rule that no lift ships ungated. Note the claim is about + // THIS DECODER's gate coverage, not about what an encoder writes. + return Err(unsupported( + "a nonzero angle delta on an 8x8 intra leaf in an inter frame (no gate reaches \ + this leaf with one; the >=16x16 arm decodes deltas)", + )); } let uv_mode = dec.symbol(&mut cdfs.uv_mode_cfl[mode]); if uv_mode != DC_PRED { @@ -17823,7 +17880,7 @@ fn decode_inter_block8( py, SIDE, mode, - 0, + angle_delta_y, reach, &vec![0i32; SIDE * SIDE], None, @@ -17868,7 +17925,7 @@ fn decode_inter_block8( around[0], mode, mode, - 0, + angle_delta_y, reach, y, px, diff --git a/crates/ec-av1/src/gate_coverage.rs b/crates/ec-av1/src/gate_coverage.rs index 925d5718..fa70da12 100644 --- a/crates/ec-av1/src/gate_coverage.rs +++ b/crates/ec-av1/src/gate_coverage.rs @@ -148,10 +148,6 @@ const ALIASES: &[(&str, &str)] = &[("superres-mode", "enable-superres")]; /// depth retires the entry, and this test fails until it is deleted. #[cfg(test)] const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[ - ( - "enable-angle-delta", - "off in 36 gates, on in none: the directional-intra gates pin it off to isolate the base modes", - ), ( "enable-cfl-intra", "off in 41 gates, on in none: chroma-from-luma prediction is unimplemented", @@ -214,10 +210,6 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[ // lane-cwarp's 10-bit comp // gate passes `=1` for both. `enable-1to4-partitions` left it on 2026-09-02: // lane-tx64x16 r4's 32-level 1:4 gate has a 10-bit arm that asserts both // orientations and coded strips inside pixel-exact attempts. - ( - "enable-angle-delta", - "hole at both depths, see the 8-bit list", - ), ( "enable-cfl-intra", "hole at both depths, see the 8-bit list", diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 958dd46d..6c1d840f 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -26,11 +26,11 @@ const CAPABILITY_CLAIMS: &[&str] = &[ "filter intra on a superblock-level HORZ/VERT strip (never expected -- av1_filter_intra_allowed_bsize caps at 32x32)", "a non-DC chroma mode on an 8x8 inter-frame leaf (this encoder never writes one)", - "a nonzero angle delta (this encoder never writes one)", ]; #[cfg(test)] const REFUSALS: &[&str] = &[ + "a nonzero angle delta on an 8x8 intra leaf in an inter frame (no gate reaches this leaf with one; the >=16x16 arm decodes deltas)", "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here", "a split intra strip whose transform unit is {tx_w}x{tx_h} (no luma coefficient tables for that shape here)", "an inter partition below 8x8 (this decoder codes no inter leaf smaller than 8x8; lane-sub8 scoped to intra)", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 070b728a..8ff585aa 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -4686,6 +4686,273 @@ mod tests { ); } + /// lane-angleinter r1 (class [[refusal-strings-are-claims]] + + /// [[tool-disabled-in-every-gate]]): a real aomenc inter sequence with + /// `--enable-angle-delta=1` and `--enable-directional-intra=1` (aomenc's + /// own defaults; every inter gate before this one pinned BOTH off) in + /// which the RD gives an INTRA block inside an inter frame a directional + /// luma mode with a nonzero `angle_delta_y`. Both intra-in-inter arms + /// read that symbol and then REFUSED it as "this encoder never writes + /// one" -- the claim is false, `read_intra_angle_info` writes it exactly + /// as a key frame does. Hard-asserts + /// [`decode::intra_in_inter_angle_delta_y_hits`]; an attempt that never + /// produced one proves nothing, and exhausting every attempt is a + /// FAILURE, not a SKIP. + #[test] + fn a_real_aomenc_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact() + { + angle_delta_in_inter_gate(8, "--min-partition-size=16"); + } + + /// The 10-bit arm (both of the user's films are `yuv420p10le`). + #[test] + fn a_real_aomenc_10bit_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact() + { + angle_delta_in_inter_gate(10, "--min-partition-size=16"); + } + + fn angle_delta_in_inter_gate(bit_depth: u32, min_partition: &str) { + let name = format!("angle_delta_in_inter_gate({bit_depth}, min={min_partition})"); + let leaf8 = min_partition.ends_with('8'); + assert!(!leaf8, "the 8x8-leaf arm keeps its refusal; see the module note"); + if !have_ffmpeg() { + eprintln!("SKIP {name}: no ffmpeg"); + return; + } + if !have_aomenc() { + eprintln!("SKIP {name}: no aomenc at {}", aomenc_path().display()); + return; + } + let (width, height, frame_count) = (64usize, 64usize, 8usize); + let mut refusals = Vec::new(); + let mut uncounted_exact = 0u32; + for attempt in 0..40u32 { + let seed = 42 + attempt; + // A zooming fractal: every frame moves (so the sequence is + // genuinely inter-coded) and keeps sharp new detail entering at + // the borders, which is what makes aomenc's RD choose an INTRA + // block inside an inter frame -- and then split its transform. + // A zooming fractal with a hard CUT halfway (`overlay` switching + // a second, unrelated fractal on at frame 4): after the cut every + // block is unpredictable from the reference, which is what makes + // aomenc code INTRA blocks inside an inter frame -- and at this + // cq the RD then splits their transforms. + let source = format!( + "mandelbrot=size={width}x{height}:start_scale={}:rate=25[a];\ + mandelbrot=size={width}x{height}:start_scale={}:rate=25[b];\ + [a][b]overlay=enable='gte(n,4)'", + 5.0 - f64::from(attempt) * 0.06, + 0.9 + f64::from(attempt) * 0.11 + ); + let y4m = Command::new("ffmpeg") + .args([ + "-v", + "error", + "-f", + "lavfi", + "-i", + &source, + // Desaturated chroma keeps `uv_mode` on DC_PRED, so the + // still-refused directional-chroma gaps never fire and + // luma detail alone drives the transform split. + "-vf", + "hue=s=0", + "-pix_fmt", + if bit_depth == 10 { "yuv420p10le" } else { "yuv420p" }, + "-strict", + "-1", + "-t", + "0.32", + "-f", + "yuv4mpegpipe", + "-strict", + "-1", + "-", + ]) + .stdin(Stdio::null()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .output() + .expect("ffmpeg failed to run"); + assert!( + y4m.status.success(), + "ffmpeg fixture: {}", + String::from_utf8_lossy(&y4m.stderr) + ); + // The 8x8-leaf arm is fenced by three sibling refusals (non-DC + // chroma on an 8x8 leaf, its TX_4X4 split, sub-16 rect inter + // leaves), so it sweeps the quantiser as well as the source: a + // coarser q is what pushes the RD to directional intra at 8x8. + let cq = if leaf8 { + format!("--cq-level={}", 20 + (attempt % 5) * 10) + } else { + "--cq-level=30".to_string() + }; + let depth_args: &[&str] = if bit_depth == 10 { + &["-b", "10", "--input-bit-depth=10"] + } else { + &[] + }; + let mut child = Command::new(aomenc_path()) + .args(depth_args) + .args([ + "--codec=av1", + "--passes=1", + "--end-usage=q", + &cq, + "--cpu-used=0", + "--lag-in-frames=0", + "--auto-alt-ref=0", + // One key frame only: every later frame is an inter frame, + // which is where this gate's intra blocks must sit. The + // MIN distance is what stops aomenc's scene-cut detector + // from inserting a second key frame at the cut this gate's + // source deliberately contains. + "--kf-max-dist=1000", + "--kf-min-dist=1000", + "--threads=1", + "--row-mt=0", + "--enable-order-hint=0", + "--enable-warped-motion=0", + "--enable-obmc=0", + "--enable-masked-comp=0", + "--enable-interintra-comp=0", + "--enable-dist-wtd-comp=0", + "--enable-diff-wtd-comp=0", + "--enable-onesided-comp=0", + "--enable-interintra-wedge=0", + "--enable-smooth-interintra=0", + "--enable-ab-partitions=0", + "--enable-1to4-partitions=0", + "--enable-smooth-intra=0", + "--enable-paeth-intra=0", + "--enable-directional-intra=1", + "--enable-angle-delta=1", + "--enable-cdef=0", + "--enable-restoration=0", + "--enable-palette=0", + "--enable-intrabc=0", + "--enable-cfl-intra=0", + "--enable-ref-frame-mvs=0", + // Per-arm overrides go LAST (aomenc keeps the last + // occurrence of a repeated --enable-* flag): the intra + // tx_depth symbol only exists under TX_MODE_SELECT, and + // rect partitions are a separate named refusal. + "--enable-filter-intra=1", + "--enable-tx-size-search=1", + "--enable-rect-partitions=0", + "--max-partition-size=32", + // Sub-16 inter partitions are a separate named refusal, + // as is the 8x8 intra leaf's own TX_4X4 split. + min_partition, + "--obu", + "-o", + "-", + "-", + ]) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .spawn() + .expect("aomenc failed to start"); + child + .stdin + .take() + .expect("aomenc stdin") + .write_all(&y4m.stdout) + .expect("writing y4m to aomenc"); + let out = child.wait_with_output().expect("aomenc failed to run"); + assert!( + out.status.success(), + "aomenc refused the fixture: {}", + String::from_utf8_lossy(&out.stderr) + ); + let stream = out.stdout; + let before = decode::intra_in_inter_angle_delta_y_hits(); + let before_uv = decode::intra_in_inter_angle_delta_uv_hits(); + let frames = match decode_stream(&stream) { + Ok(frames) => frames, + Err(e) => { + let msg = e.to_string(); + assert!( + msg.contains("unsupported"), + "{name} decode failed outright (seed {seed}): {msg}" + ); + refusals.push(format!("seed {seed}: {msg}")); + continue; + } + }; + let fired = decode::intra_in_inter_angle_delta_y_hits() - before; + let fired_uv = decode::intra_in_inter_angle_delta_uv_hits() - before_uv; + // class [[gate-skips-on-its-own-failure]]: a decode that + // succeeded is ALWAYS pixel-compared below; the counter only + // decides whether the attempt counts as firing. + let counted = fired != 0; + if !counted { + uncounted_exact += 1; + refusals.push(format!( + "seed {seed}: decoded and pixel-compared, but no intra block in an inter \ + frame carried a nonzero angle_delta_y" + )); + } + let ffmpeg_frames = if bit_depth == 10 { + ffmpeg_decode_sequence_10bit(&stream, width, height, frame_count) + } else { + ffmpeg_decode_sequence(&stream, width, height, frame_count) + }; + assert_eq!(frames.len(), frame_count); + eprintln!( + "{name} seed={seed}: intra-in-inter blocks with a nonzero angle_delta_y = \ + {fired}, angle_delta_uv = {fired_uv}" + ); + for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() { + for (plane, (g, w)) in [ + ("Y", (&got.y, &want.y)), + ("U", (&got.u, &want.u)), + ("V", (&got.v, &want.v)), + ] { + let stride = if plane == "Y" { width } else { width / 2 }; + if let Some(at) = g.iter().zip(w.iter()).position(|(a, b)| a != b) { + eprintln!( + "{name} seed={seed}: frame {i} {plane} first diff at ({}, {}) got {} \ + want {} ({} samples differ)", + at % stride, + at / stride, + g[at], + w[at], + g.iter().zip(w.iter()).filter(|(a, b)| a != b).count(), + ); + } + } + } + for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() { + assert_eq!(got.y, want.y, "frame {i} luma vs ffmpeg (seed {seed})"); + assert_eq!(got.u, want.u, "frame {i} U vs ffmpeg (seed {seed})"); + assert_eq!(got.v, want.v, "frame {i} V vs ffmpeg (seed {seed})"); + } + if counted { + gate_buckets( + &name, + 1, + uncounted_exact, + refusals.len() - uncounted_exact as usize, + ); + return; + } + } + gate_buckets( + &name, + 0, + uncounted_exact, + refusals.len() - uncounted_exact as usize, + ); + panic!( + "{name} never observed a nonzero angle delta on an intra block in an inter \ + frame:\n{}", + refusals.join("\n") + ); + } + /// lane-chroma r2 stage 1: a real aomenc key frame with /// `--enable-smooth-intra=1` (opposite of every sibling recipe's `=0`) /// and `--enable-paeth-intra=0` -- paeth chroma stays off so the still- diff --git a/lanes/angleinter-r1.report.md b/lanes/angleinter-r1.report.md new file mode 100644 index 00000000..c41f937e --- /dev/null +++ b/lanes/angleinter-r1.report.md @@ -0,0 +1,105 @@ +# lane-angleinter r1 — a nonzero angle delta on an intra block inside an inter frame + +Branch `lane-angleinter` off `lane-fiinter` 6b82994. Class: +[[refusal-strings-are-claims]] + [[tool-disabled-in-every-gate]]. + +## The claim, tested + +Both intra-in-inter arms read `angle_delta_y` and then refused it as +"a nonzero angle delta (this encoder never writes one)". The claim is FALSE: +aomenc's `--enable-angle-delta` defaults to 1 and libaom's +`read_intra_angle_info` (inside `read_intra_block_mode_info`, decodemv.c) +writes the symbol for any directional `y_mode` at bsize >= 8x8 exactly as a +key frame does. A real default-settings inter stream desynced there. + +Confirmed by the gate below on the FIRST attempt (seed 42, 8-bit): 4 intra +blocks inside inter frames carry a nonzero `angle_delta_y`. + +## What changed + +- `crates/ec-av1/src/decode.rs:15542` (`decode_inter_block`, >=16x16 arm): + refusal replaced by `read_angle_delta`; the delta is threaded into every + luma prediction of the block — the split-transform per-TU + `reconstruct`/`read_plane` pair and the block-level pair — where a literal + `0` used to go. +- `crates/ec-av1/src/decode.rs:15555`: the same arm derived + `smooth_neighbor` (`get_intra_edge_filter_type`, spec 7.11.2) via the + existing `Neighbours::modes_above_left` helper; it passed a hardcoded + `false` before, which was unobservable while every directional + intra-in-inter block was refused, and decides the intra edge filter's + strength once a delta'd angle reaches it. +- `crates/ec-av1/src/decode.rs:82` (+ around): counters + `intra_in_inter_angle_delta_y_hits` / `intra_in_inter_angle_delta_uv_hits`. +- `crates/ec-av1/src/decode.rs:17191` (`decode_inter_block8`, 8x8 leaf): + the refusal STAYS, reworded to a claim about this decoder's gate coverage + instead of about the encoder — see "Not lifted" below. +- `crates/ec-av1/src/stream.rs`: gate `angle_delta_in_inter_gate` + its 8-bit + and 10-bit tests. +- `refusal_inventory.rs`: the capability claim is gone; the 8x8-leaf refusal + is listed as a decoder-scoped refusal. `gate_coverage.rs`: + `enable-angle-delta` deleted from `NEVER_EXERCISED_8BIT` and `_10BIT`. + +## Gate + +`a_real_aomenc_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact` +(+ `..._10bit_...`). Recipe = the intrainter/fiinter one (64x64 mandelbrot +zoom with a hard overlay cut at frame 4, `--cq-level=30`, `--kf-min-dist=1000` +`--kf-max-dist=1000`, `--min-partition-size=16`) with +`--enable-directional-intra=1` and `--enable-angle-delta=1` — each flag +spelled ONCE in the arg list (the base recipe's `=0` entries were edited in +place, so flag precedence cannot silently invert the arm). Every frame's Y, U +and V are compared against ffmpeg; a decode error or mismatch is a FAILURE, +never a SKIP; the hit counter is a hard assert. + +``` +cargo test -p ec-av1 --lib with_a_directional_intra_block_with_angle_delta -- --nocapture +``` + +EVIDENCE: $HOME/.cache/angleinter-suite.log | aomenc --enable-angle-delta=1 --enable-directional-intra=1, 8 frames decoded and Y/U/V-compared vs ffmpeg | 8-bit seed 42: 4 nonzero-angle_delta_y intra-in-inter blocks, 0 sample mismatches; 10-bit seed 47: 4 blocks, 0 mismatches (buckets counted-exact=1 uncounted-exact=0) + +EVIDENCE: negative control (scratchpad decode.rs.bak diff) | re-inserted `return Err(unsupported("NEGATIVE CONTROL: a nonzero angle delta"))` at decode.rs:15549, reran both gates | 2 passed -> 2 FAILED, all 40 attempts refused with that string; lift reverted afterwards + +## Mutation sweep (task 3) + +All 56 `--enable-angle-delta=0` spellings in `stream.rs` flipped to `=1`, then +the 17 `inter_sequence` gates rerun: **17 passed / 0 failed** — no hidden +defect behind the flag. stream.rs restored from the scratchpad copy +afterwards (only the new gate's own two spellings are `=1` on the branch). + +EVIDENCE: mutation run | sed -i 's/--enable-angle-delta=0/=1/g' + `cargo test -p ec-av1 --lib inter_sequence` | test result: ok. 17 passed; 0 failed; 2 ignored + +## Not lifted (disposition) + +`deferred: the 8x8-leaf arm's nonzero-delta case (decode.rs:17205) — 80 +attempts (64x64 and 128x128 sources, cq 20/30/40/50/60, seeds 42..81) never +produced an 8x8 intra leaf with a nonzero angle_delta_y, nor even one with a +directional luma mode: the leaf's three sibling refusals ("a non-DC chroma +mode on an 8x8 inter-frame leaf", "an 8x8 intra leaf ... whose tx_depth +splits it into 4x4 transform units", "an inter partition below 16x16 other +than SPLIT") fire first on 37/40 attempts. Lifting it would ship an ungated +capability claim (class refusal-lifted-without-a-gate), so the refusal stays, +reworded to be about this decoder. — unblocked by: lifting the non-DC-chroma +and TX_4X4-split refusals on that leaf, which then makes a directional 8x8 +intra leaf reachable.` + +`accepted: angle_delta_uv fired 0 times in every passing attempt — the +recipe's `hue=s=0` desaturation is what keeps uv_mode on DC and the transform +split luma-driven. The uv delta path was already read AND already threaded +into both chroma predictions before this round (decode.rs:15556 ff.), so the +lift did not touch it; the counter is in place for a future chroma gate.` + +`accepted: decode_inter_block8 still passes a hardcoded `false` for its luma +edge-filter neighbour type. Unobservable while its directional-mode +population is empty (see above); reverted rather than shipped ungated.` + +## Suite + film + +`cargo test -p ec-av1 --lib` (systemd unit, log `$HOME/.cache/angleinter-suite.log`): +**348 passed / 0 failed / 32 ignored**, 384 s. + +Film probe (`hg-head.obu`, 0.4 s of the ReelB 2160p10 film, 18 frame +headers): now stops at `filter intra on a HORZ/VERT strip (this decoder +predicts square-only)` — a different, rect-prediction refusal; the angle-delta +refusal is no longer on its path. + +EVIDENCE: $HOME/.cache/angleinter-suite.log | `cargo test -p ec-av1 --lib` under a systemd unit + `cargo run --example decode_probe -- hg-head.obu` | 348 passed / 0 failed; film refusal string = "filter intra on a HORZ/VERT strip"