R4 report and handoff -- six merges, the film witness pinned, one sibling refusal from a live gate
Browse files at this commit05708e1cab7412ed014178b63f44ea1d1029a925Parent: 4554875- docs
- r4 report and handoff -- six merges, the film witness pinned, one sibling refusal from a live gate
2 changed files +165 -0
- lanes/intra14-r4.handoff.md +41 -0
- lanes/intra14-r4.report.md +124 -0
lanes/intra14-r4.handoff.mdadded+41 -0
| @@ -0,0 +1,41 @@ | |||
| 1 | +# lane-intra14 r4 handoff | ||
| 2 | + | ||
| 3 | +TIP: see `git log --oneline -1` on branch `lane-intra14` (r4 tip carries six | ||
| 4 | +merges + the witness fixture + the report). | ||
| 5 | + | ||
| 6 | +MERGED THIS ROUND: main 1176a16, lane-intersub8 a5b9770, lane-uv8 7f372b9 | ||
| 7 | +(carries lane-interp3 10b801a), lane-inter16ab 2e711e1, lane-rectchroma2 | ||
| 8 | +48216c2, lane-sb128c fedb7fe. The non-textual resolutions are tabulated in | ||
| 9 | +`lanes/intra14-r4.report.md` section 1; the one that is a real defect if | ||
| 10 | +re-resolved wrongly: intersub8's `if write_w != write_h -> unsupported | ||
| 11 | +COMPOUND_WEDGE` MUST be deleted, it shadows inter16ab's rect wedge codebook. | ||
| 12 | + | ||
| 13 | +STATE OF THE GOAL: the witness exists and is pinned. | ||
| 14 | +`crates/ec-av1/fixtures/reelb_intra14_witness.obu` (163057 B, sha256 | ||
| 15 | +0eff603bf1608e47faf5e6729670c4c77cf5c674dbad3a1533ac6660151fd90e) = the film's | ||
| 16 | +ss=90 segment truncated to 2 decode-order frames. Its frame 1 codes 3 intra | ||
| 17 | +16x64 strips (`intra_rect4_in_inter` 16x64=3; truncated to 1 frame the counter | ||
| 18 | +is 0, so attribution is pinned). The gate | ||
| 19 | +`a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact` | ||
| 20 | +(crates/ec-av1/src/stream.rs, above `intra_rect4_in_inter_gate`) decodes it, | ||
| 21 | +hard-asserts the counter moved and compares every plane of every frame vs | ||
| 22 | +`ffmpeg_decode_sequence_10bit`. | ||
| 23 | + | ||
| 24 | +THE ONE BLOCKER: that frame refuses with "a split intra strip whose transform | ||
| 25 | +unit is 64x32 (no luma coefficient tables for that shape here)". Land | ||
| 26 | +TX_64X32/TX_32X64 luma coefficient tables, delete the `#[ignore]`, done. | ||
| 27 | +Verify with: | ||
| 28 | +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-intra14 EC_NOMEMGUARD=1 nice -n 10 cargo test -p ec-av1 --lib -j3 -- a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact --include-ignored --nocapture` | ||
| 29 | +(today: refuses at that string, 27.98s). | ||
| 30 | + | ||
| 31 | +DO NOT REPEAT: the aomenc recipe hunt (r3 burned 6 x 40-attempt sweeps) and the | ||
| 32 | +film sweep (r4, 27 segments at ss 0..6000: only ss=0/2/5/10 decode more than | ||
| 33 | +one frame -- 33 -- and those code the shape ZERO times; every segment that | ||
| 34 | +codes it stops at its first inter frame). | ||
| 35 | + | ||
| 36 | +SUITE: 404 passed / 2 failed / 36 ignored ($HOME/.cache/intra14-suite-r4.log). | ||
| 37 | +Both failures arrived with the merges and are other lanes' shapes: | ||
| 38 | +`a_frame_edge_straddling_band_decodes_pixel_exact` (192x68 cq61 frame 1 Y row 0 | ||
| 39 | +col 64, 6859 px) and | ||
| 40 | +`a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact` | ||
| 41 | +(seed 54 frame 4 Y (48,16), 2341 samples). | ||
lanes/intra14-r4.report.mdadded+124 -0
| @@ -0,0 +1,124 @@ | |||
| 1 | +# lane-intra14 r4 -- six merges, the film witness located and pinned, blocked by a sibling refusal | ||
| 2 | + | ||
| 3 | +Branch `lane-intra14`. The r3 blocker ("no aomenc source codes an intra block | ||
| 4 | +on a 1:4 partition inside an inter frame") is **closed as a search**: the shape | ||
| 5 | +IS carried by the user's 2160p 10-bit film, it is now pinned as a tracked | ||
| 6 | +fixture with the counter attributed to a single decode-order frame, and the | ||
| 7 | +gate that decodes it is written. It stays `#[ignore]`d for one measured reason | ||
| 8 | +that belongs to another lane: that frame stops at "a split intra strip whose | ||
| 9 | +transform unit is 64x32". | ||
| 10 | + | ||
| 11 | +## 1. Merges (bc41417, 5d685f2, d8967dd, 4a449fd, d7ce5b3, e6284fd) | ||
| 12 | + | ||
| 13 | +`main` 1176a16 then, in order, `lane-intersub8 a5b9770`, `lane-uv8 7f372b9` | ||
| 14 | +(carries `lane-interp3 10b801a` -- "Already up to date" for interp3 itself), | ||
| 15 | +`lane-inter16ab 2e711e1`, `lane-rectchroma2 48216c2`, `lane-sb128c fedb7fe`. | ||
| 16 | +Resolutions that were decisions, not text: | ||
| 17 | + | ||
| 18 | +| conflict | resolution | | ||
| 19 | +|---|---| | ||
| 20 | +| `read_intra_mode_rect` (decode.rs:5853) | main's `read_intrabc_info` read placed AFTER this lane's `skip` passthrough, then this lane's inter-vs-kf `y_mode` split | | ||
| 21 | +| OBMC sentinel refusal wording | kept lane-uv8/interp3's ("no switchable symbol for that block"), inventory string moved with it | | ||
| 22 | +| `masked_compound_used_wh` vs `is_any_masked_compound_used_here`, `bsize_index`+`wedge_used_wh` vs `bsize_all_index`+`wedge_used_bsize` | kept lane-inter16ab's pair -- it is the branch that landed the RECT wedge codebooks | | ||
| 23 | +| the auto-merged `if write_w != write_h { return Err("a COMPOUND_WEDGE mask on a non-square inter block") }` | DELETED: it sat in front of lane-inter16ab's rect codebook lookup and would have made it dead code (class refusal-short-circuits-its-own-code) | | ||
| 24 | +| `TxbSet::LumaRect8x4Inter` defined by BOTH intersub8 and inter16ab | one copy kept, both `*Set1`/`*1` siblings kept | | ||
| 25 | +| 16x16-level AB `inter_leaf8!` macro vs sb128c's `if sb128_none` 128-root arm | both kept, macro first, one added closing brace | | ||
| 26 | +| `vartx_leaves` LF fill | sb128c's `skip_inter_128` suppression prelude with lane-golomb's luma-only leaf comment inside | | ||
| 27 | + | ||
| 28 | +Three refusal strings were deleted because the merged tree no longer contains | ||
| 29 | +them (the inventory test names each one): "an inter partition below 8x8", | ||
| 30 | +"a COMPOUND_WEDGE mask on a non-square inter block", "a 1:4 rect strip that | ||
| 31 | +actually uses a palette". | ||
| 32 | + | ||
| 33 | +## 2. Film sweep -- 27 segments, where the shape actually lives | ||
| 34 | + | ||
| 35 | +`ffmpeg -ss <t> -t 2 -c:v copy -f obu` of the 3840x1608 10-bit AV1 HDR10 film, | ||
| 36 | +each decoded by `decode_probe` under a 6G scope with `EC_AV1_FINAL_DUMP` | ||
| 37 | +(frames = completed frames actually dumped, hits = `intra_rect4_in_inter`): | ||
| 38 | + | ||
| 39 | +| ss | frames | intra 1:4 in inter | stop | | ||
| 40 | +|---|---|---|---| | ||
| 41 | +| 0, 2, 5, 10 | **33** | 0 | split intra strip TU 64x32 | | ||
| 42 | +| 20, 60, 600, 2700, 6000 | 1 | 0 | split intra strip TU 64x32 / 32x64 | | ||
| 43 | +| 30, 150 | 1 | 0 | intra 8x4/4x8 in a sub-8x8 inter partition | | ||
| 44 | +| 45, 240, 900, 1200, 1800, 2100, 3300, 3600, 4200 | 1 | 0 | split (nonzero tx_depth) transform on an intra HORZ/VERT strip in an inter frame | | ||
| 45 | +| 1500, 2400, 5400 | 1 | 0 | non-skip rectangular strip needs rectangular residual coding | | ||
| 46 | +| 300 | 1 | 0 | split intra strip TU 32x64 | | ||
| 47 | +| **90** | 1 | **16x64=3** | split intra strip TU 64x32 | | ||
| 48 | +| 3000, 4500 | 1 | **16x64=4** | split intra strip TU 32x64 / 64x32 | | ||
| 49 | + | ||
| 50 | +The charter's premise that the `-ss 0` extract decodes 30 frames REPRODUCES | ||
| 51 | +(33 frames here) -- and that prefix codes the shape zero times. Every segment | ||
| 52 | +that DOES code the shape stops at its first inter frame. | ||
| 53 | + | ||
| 54 | +Attribution at ss=90, by truncation (`census4/trunc.py`, frames=1/2/3): | ||
| 55 | +`n=1` decodes OK with hits 0/0/0/0; `n=2` and `n=3` both refuse with | ||
| 56 | +`16x64=3`. So the three intra 16x64 strips are inside decode-order frame 1, | ||
| 57 | +which is exactly the frame that refuses -- no completed frame in the whole | ||
| 58 | +sweep contains the shape. | ||
| 59 | + | ||
| 60 | +EVIDENCE: /tmp/claude-1000/-home-user-Documents-Code-Rust-edith-codecs/b6d8a07f-96a4-4bbb-b378-af9ae25cf7c9/scratchpad/r4/probe*.log | 27 x (ffmpeg -ss N -t 2 -c:v copy -f obu, decode_probe under systemd-run --scope MemoryMax=6G, EC_AV1_FINAL_DUMP frame count) + a 3-point truncation ladder at ss=90 | 33 frames decode at the head with 0 hits; ss=90/3000/4500 fire 16x64=3/4/4 and every one of them is inside the first refusing inter frame | ||
| 61 | + | ||
| 62 | +## 3. The witness fixture and its gate (e04736b) | ||
| 63 | + | ||
| 64 | +`crates/ec-av1/fixtures/reelb_intra14_witness.obu`, 163057 bytes, sha256 | ||
| 65 | +`0eff603bf1608e47faf5e6729670c4c77cf5c674dbad3a1533ac6660151fd90e` -- the ss=90 | ||
| 66 | +extract truncated to its first two decode-order frames. Extracted TWICE from | ||
| 67 | +independent `ffmpeg` runs; both hashed identically (class | ||
| 68 | +seeded-fixture-not-reproducible). | ||
| 69 | + | ||
| 70 | +Gate `a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact` | ||
| 71 | +(stream.rs, next to `intra_rect4_in_inter_gate`): decodes the fixture, HARD- | ||
| 72 | +asserts `intra_rect4_in_inter_counters()` moved, asserts 2 frames, and compares | ||
| 73 | +EVERY plane of EVERY frame against `ffmpeg_decode_sequence_10bit` -- the same | ||
| 74 | +helper `the_reelb_ss300_key_frame_skipped_cfl_decodes_pixel_exact` uses. | ||
| 75 | +It is `#[ignore]`d with the blocking refusal quoted in the attribute: the | ||
| 76 | +fixture's inter frame stops at "a split intra strip whose transform unit is | ||
| 77 | +64x32 (no luma coefficient tables for that shape here)", a SIBLING lane's | ||
| 78 | +surface (TX_64X32/TX_32X64 luma coefficient tables), not this lane's shape. | ||
| 79 | +Un-ignoring is a one-line change once those tables land. | ||
| 80 | + | ||
| 81 | +Forced run of the ignored gate (`--include-ignored --nocapture`) -- the wiring | ||
| 82 | +proof that the fixture reaches the reader and stops on the named sibling | ||
| 83 | +surface, not on anything of this lane's: | ||
| 84 | + | ||
| 85 | +``` | ||
| 86 | +a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact: decode_stream refused: | ||
| 87 | + unsupported: AV1 tile (a split intra strip whose transform unit is 64x32 | ||
| 88 | + (no luma coefficient tables for that shape here)) | ||
| 89 | +test result: FAILED. 0 passed; 1 failed; 0 ignored; 442 filtered out; finished in 27.98s | ||
| 90 | +``` | ||
| 91 | + | ||
| 92 | +EVIDENCE: crates/ec-av1/fixtures/reelb_intra14_witness.obu (163057 B, sha256 0eff603bf1608e47faf5e6729670c4c77cf5c674dbad3a1533ac6660151fd90e) | two independent ffmpeg -ss 90 -t 2 extracts truncated to 2 frames, hashed identically; cargo test -p ec-av1 --lib -- a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact --include-ignored --nocapture | forced run stops at the sibling refusal "split intra strip whose transform unit is 64x32"; the 3 intra 16x64 strips are in the same (refusing) frame | ||
| 93 | + | ||
| 94 | +## 4. Suite -- RED, 2 failures, both inherited with the merges | ||
| 95 | + | ||
| 96 | +`cargo test -p ec-av1 --lib` as a user systemd unit (MemoryMax=10G): | ||
| 97 | +**404 passed; 2 failed; 36 ignored**; 1049.20s (r3 was 382/0/35 on a tree with | ||
| 98 | +none of these six merges). | ||
| 99 | + | ||
| 100 | +| failing test | first sample | owner | | ||
| 101 | +|---|---|---| | ||
| 102 | +| `a_frame_edge_straddling_band_decodes_pixel_exact` | 192x68 cq61 frame 1 Y row 0 col 64, ours 56 vs ffmpeg 178, 6859 px | lane-tile2's known 192x68 tile_cols=1 regression (ledger dead-end: cross-tile temporal MV reads already exonerated) | | ||
| 103 | +| `a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact` | seed 54 frame 4 Y (48,16) 109 vs 303, 2341 samples; split intra-in-inter 16x16=5 | a merged sibling's surface (16x16 split-transform intra-in-inter), not the 1:4 shape -- this lane's reader fires 0 here | | ||
| 104 | + | ||
| 105 | +Neither failure touches the 1:4 shape (`intra_rect4_in_inter` is 0 in both) and | ||
| 106 | +neither is reachable from this round's diff other than by having merged the | ||
| 107 | +branch that carries it. Not fixed here -- outside this lane's shape and not | ||
| 108 | +small. | ||
| 109 | + | ||
| 110 | +EVIDENCE: $HOME/.cache/intra14-suite-r4.log | systemd-run --user --unit=intra14-suite-1788348669 -p MemoryMax=10G, EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1, nice -n 10 -j3 | test result: FAILED. 404 passed; 2 failed; 36 ignored; 1049.20s | ||
| 111 | + | ||
| 112 | +## Residue | ||
| 113 | + | ||
| 114 | +* deferred(TX_64X32/TX_32X64 luma coefficient tables for a split intra strip): | ||
| 115 | + un-ignore `a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact`. | ||
| 116 | + That single refusal is all that stands between this lane and a live, | ||
| 117 | + pixel-compared, counter-asserted witness -- the fixture is pinned and the | ||
| 118 | + gate is written. | ||
| 119 | +* deferred(lane-tile2 / the split-transform intra-in-inter lane): the two suite | ||
| 120 | + failures above, inherited from the six merges, each reproduced with its first | ||
| 121 | + differing sample recorded. | ||
| 122 | +* accepted: no aomenc recipe was hunted this round -- 27 film segments settled | ||
| 123 | + the question the recipe sweep was proxying for (the shape exists only in the | ||
| 124 | + film's inter frames, and every such frame refuses earlier). | ||