Lane-realworld r7 charter -- merge main, then scope high bit depth
Browse files at this commit776aab425645112267cd021f698731e1ce4281d9Parent: c4df0cd- docs
- lane-realworld r7 charter -- merge main, then scope high bit depth
1 changed file +49 -0
lanes/realworld-r7.charter.mdadded+49 -0
| @@ -0,0 +1,49 @@ | |||
| 1 | +# lane-realworld r7 — merge main, then start high bit depth | ||
| 2 | + | ||
| 3 | +At 48562d6. Read `lanes/realworld-r6.report.md`. | ||
| 4 | + | ||
| 5 | +## Job 1 — merge `main` into this branch and resolve it yourself | ||
| 6 | +`git merge main` from this worktree. Main is at 92d8beb and has landed a lot | ||
| 7 | +since this branch forked: multi-tile decode (gated), CDEF index reads, chroma | ||
| 8 | +smooth/paeth/directional, a `bit_depth != 8` refusal, three reworded partition | ||
| 9 | +refusals, dead-binding cleanup in `decode_stream`, and three guard tests. The | ||
| 10 | +merge conflicts in nine places — eight in `stream.rs` (mostly gate bodies) and | ||
| 11 | +one in `decode.rs`'s inter tile function, where main's per-tile loop meets your | ||
| 12 | +`DeltaParams` threading. **You** resolve it: a wrong resolution there is a | ||
| 13 | +silent decode bug, and you know which side owns each hunk. Suite green, then | ||
| 14 | +COMMIT. Your delta_q/delta_lf work is finished and gated (40/40 pixel-exact, | ||
| 15 | +`delta_q_hits`/`delta_lf_hits` = 1920 each), so this is the last thing standing | ||
| 16 | +between it and main. | ||
| 17 | + | ||
| 18 | +Keep, while resolving: main's `refusal_inventory.rs` entry | ||
| 19 | +`"a stream whose bit depth is not 8 (this decoder reconstructs into 8-bit planes)"`, | ||
| 20 | +and the reworded partition refusals — do not reintroduce any string claiming an | ||
| 21 | +encoder never writes a case. | ||
| 22 | + | ||
| 23 | +## Job 2, if turns remain — high bit depth | ||
| 24 | +This is the critical path to the user's own files. Both AV1 files in this box's | ||
| 25 | +library (`~/Downloads/reelb.mkv` and | ||
| 26 | +`~/Videos/Films/reelc.mkv`) are `yuv420p10le`, and both now stop on | ||
| 27 | +that bit-depth refusal. `Picture`'s `y`/`u`/`v` are `Vec<u8>`; nothing in | ||
| 28 | +`decode.rs` reads `bit_depth` at all, though `transform.rs` already takes and | ||
| 29 | +uses it (`row_clamp = bit_depth + 8`, `col_clamp = max(bit_depth + 6, 16)`). | ||
| 30 | + | ||
| 31 | +Scope for this round is the SHAPE, not the whole feature: work out what widening | ||
| 32 | +the planes costs — `Picture` and `PlaneBuf` sample type, the prediction and | ||
| 33 | +filter paths that assume `u8`, and what `ffmpeg_decode_sequence` must do to | ||
| 34 | +produce a 10-bit reference for a gate. Write it down as a typing plan the way | ||
| 35 | +`lanes/realworld-r3.report.md` did for delta_q; that report is why r5 could | ||
| 36 | +implement both halves in one round. Land nothing half-wired. | ||
| 37 | + | ||
| 38 | +The two films are the eventual gate: probe them with | ||
| 39 | +`cargo run -p ec-av1 --example decode_probe -- <stream.obu>`, extracting with | ||
| 40 | +`ffmpeg -i <file> -t 3 -c:v copy -f obu` (note `-f obu` — an IVF decodes as zero | ||
| 41 | +frames rather than as an error). Expect a new refusal to appear behind the | ||
| 42 | +bit-depth one; that is progress, and its name is the next lane's charter. | ||
| 43 | + | ||
| 44 | +Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-realworld`; foreground | ||
| 45 | +`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms. Sibling | ||
| 46 | +worktrees have live agents — never build in or edit them. Never push, never | ||
| 47 | +merge into `main` (merging main INTO this branch is job 1 and is fine). 75-turn | ||
| 48 | +cap, does not reset: COMMIT AT EVERY GREEN STEP. End with | ||
| 49 | +`lanes/realworld-r7.report.md`, VERDICT on line 1. | ||