Lane-chroma r4 report
Browse files at this commitbf250678ed1f61535b8bd55a6204cdd19929ead5Parent: c3a0a18- docs
- lane-chroma r4 report
1 changed file +66 -0
- lanes/chroma-r4.report.md +66 -0
lanes/chroma-r4.report.mdadded+66 -0
| @@ -0,0 +1,66 @@ | |||
| 1 | +VERDICT: GREEN | ||
| 2 | + | ||
| 3 | +## Step 1 -- verify HEAD | ||
| 4 | +`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4`: **234 passed; 0 failed; 17 | ||
| 5 | +ignored** (vs the charter's 232/0 baseline -- 2 extra tests are r3's own new | ||
| 6 | +smooth-intra/smooth-paeth-chroma gates, already in HEAD). Tree was clean at | ||
| 7 | +start (nothing to commit for this step); r3's cap-rescued work is genuinely | ||
| 8 | +green, contrary to the "no suite run has ever been seen" warning. | ||
| 9 | + | ||
| 10 | +## Step 2 -- chroma UV-mode neighbour tracking + smooth/paeth chroma refusal | ||
| 11 | +Already done in HEAD (r3's commit `47da0be`): `Neighbours::above_uv_mode`/ | ||
| 12 | +`left_uv_mode` exist, `decode.rs`'s two `read_intra_mode`/`read_intra_mode_rect` | ||
| 13 | +sites (keyframe callers) removed the `9..=12` uv_mode refusal, and | ||
| 14 | +`lanes/chroma-r1-attempt.diff`'s gate | ||
| 15 | +(`a_real_aomenc_stream_with_smooth_paeth_chroma_decodes_pixel_exact`) is | ||
| 16 | +present in `stream.rs` and passes on its own | ||
| 17 | +(`cargo test ... smooth_paeth_chroma` -- 1 passed). No new commit needed. | ||
| 18 | + | ||
| 19 | +## Step 3 -- gate_coverage.rs | ||
| 20 | +`crates/ec-av1/src/gate_coverage.rs` **does not exist in this tree** | ||
| 21 | +(confirmed via `find`). Per the charter, the merge must delete the | ||
| 22 | +`enable-smooth-intra`/`enable-paeth-intra` entries from `NEVER_EXERCISED` | ||
| 23 | +on `main`'s copy. | ||
| 24 | + | ||
| 25 | +## Step 4 -- directional-chroma sibling (turns remained) | ||
| 26 | +Charter's line number (`decode.rs:7786`) had drifted from r3's +99 lines; | ||
| 27 | +the real sibling was `decode_inter_block`'s intra-in-inter branch (the | ||
| 28 | +`else` arm handling an intra block coded inside an inter frame), which read | ||
| 29 | +`uv_mode` and refused outright with `"a directional chroma mode (round 2)"` | ||
| 30 | +for anything past DC/CFL, and never read `angle_delta_uv` at all. | ||
| 31 | + | ||
| 32 | +Fixed by mirroring `read_intra_mode`'s already-proven pattern in that one | ||
| 33 | +function (`crates/ec-av1/src/decode.rs`, `decode_inter_block`): | ||
| 34 | +- `uv_predict_mode` (CFL predicts as DC for the reconstruct call, same as | ||
| 35 | + the keyframe path) threaded through both `u`/`v.reconstruct` calls (skip | ||
| 36 | + path) and both chroma `read_plane` calls (non-skip path), replacing the | ||
| 37 | + hardcoded `DC_PRED`. | ||
| 38 | +- `angle_delta_uv` computed via `read_angle_delta` when `uv_mode` is | ||
| 39 | + directional (`V_PRED..=D67_PRED`), replacing the hardcoded `0`. | ||
| 40 | +- `smooth_neighbor_uv` computed from the chroma neighbour's own `uv_mode` | ||
| 41 | + (`is_smooth_mode(above_uv_mode/left_uv_mode)`), replacing the hardcoded | ||
| 42 | + `false`, threaded into the same reconstruct/read_plane calls. | ||
| 43 | +- `SMOOTH_UV_HITS`/`DIRECTIONAL_UV_HITS` counted here too (shared | ||
| 44 | + thread-locals with the keyframe path). | ||
| 45 | +- `neighbours.record_rect`'s uv-mode arg (previously hardcoded `DC_PRED`) | ||
| 46 | + now carries the real `uv_predict_mode` so a following block's own | ||
| 47 | + smooth-neighbour check sees it. | ||
| 48 | +- The luma-mode side of this branch (`mode`, its own angle_delta refusal at | ||
| 49 | + the top) is **untouched** -- out of this charter step's chroma-only scope. | ||
| 50 | + | ||
| 51 | +`cargo check -p ec-av1 --lib`: clean (no new warnings/errors). Full lib | ||
| 52 | +suite re-run after the change: still **234 passed; 0 failed; 17 ignored** -- | ||
| 53 | +no regression. | ||
| 54 | + | ||
| 55 | +**Gap, disclosed per "refusal strings are claims":** no dedicated gate | ||
| 56 | +proves a real aomenc stream ever actually exercises this specific path (an | ||
| 57 | +intra block, directional/smooth/paeth `uv_mode`, coded *inside an inter | ||
| 58 | +frame*) end to end against ffmpeg. The change is a direct structural mirror | ||
| 59 | +of the already-gated keyframe fix (identical CDF tables, identical | ||
| 60 | +`get_uv_mode`/angle-delta semantics per spec 9.3), and the full suite stays | ||
| 61 | +green, but it is **code-verified by mirroring, not gate-verified by firing**. | ||
| 62 | +`deferred: dedicated a_real_aomenc_stream_with_directional_chroma_in_inter_frame_intra gate -- next round, no seat left this round -- unblocks by writing a stream.rs gate that forces an inter-frame key/delta pair whose delta frame codes an intra 8x8+ leaf with directional/smooth/paeth uv_mode (drop --enable-tx-size-search=0 constraint if it starves the recipe) and asserts on decode::smooth_uv_hits()/directional_uv_hits() firing plus pixel-exact vs ffmpeg`. | ||
| 63 | + | ||
| 64 | +## Commit | ||
| 65 | +`c806bd6` -- directional/smooth/paeth chroma in inter-frame intra blocks. | ||
| 66 | +Nothing else uncommitted; `git status` clean. | ||