lanes: record merge-side follow-ups for av1hdr (merge e03f7173)
Browse files at this commit1aa3a9904c73a6cfd48862016c836fe71ac1807cParent: d4ee5341 changed file +73 -0
- lanes/av1hdr.report.md +73 -0
lanes/av1hdr.report.mdmodified+73 -0
| @@ -265,3 +265,76 @@ CARGO_TARGET_DIR=$HOME/.cache/cargo-target-av1hdr \ | ||
| 265 | 265 | |
| 266 | 266 | - `lane-av1-hdr` off `0cfb9af5`: the witness gate, the enumeration test, the |
| 267 | 267 | disposition comments, this report. |
| 268 | + | |
| 269 | +## 10. MERGE-SIDE FOLLOW-UPS | |
| 270 | + | |
| 271 | +**Merge.** `e03f7173` (`ec-av1: merge lane-av1-hdr`), parents | |
| 272 | +`c8ac9f46 5bb35ca3` — a real merge, not a fast-forward: `main` had advanced | |
| 273 | +past the base with the sibling `lane-av1-mono` (`7806fd0d`, follow-ups | |
| 274 | +`c8ac9f46`). Resolution was an **auto-merge with no conflicts**; the two sides | |
| 275 | +of `stream.rs` were disjoint (mono rewrote the `SeqFlags`/`set_mono` region and | |
| 276 | +replaced the pilot's monochrome pin with its pixel-exact witness; this lane | |
| 277 | +added comments and its own witness at the end of the test module). **Both | |
| 278 | +sides were kept**: mono's pin stays dropped and its | |
| 279 | +`a_real_libaom_monochrome_key_frame_decodes_pixel_exact` is present; this | |
| 280 | +lane's comments and `a_real_aomenc_mixed_lossless_segment_frame_is_refused_by_name` | |
| 281 | +are present. | |
| 282 | + | |
| 283 | +**Lane P3 fixes (commit `5bb35ca3`, on the lane before the merge).** | |
| 284 | + | |
| 285 | +- `refusal_inventory.rs`: `a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol` | |
| 286 | + silently skipped the square-delegate guard arm (`_ if bw == bh => | |
| 287 | + filter_intra_size_class(bw),`). The parser now recognises that arm and the | |
| 288 | + test additionally drives `filter_intra_size_class(32)` / `filter_intra_size_class(64)` | |
| 289 | + directly, so a widening of the delegate turns the gate red. Doc comment | |
| 290 | + updated to say what it enumerates. | |
| 291 | +- `lanes/av1hdr.report.md` §3: `compute_image_size` is AV1-spec pseudocode, not | |
| 292 | + a libaom v3.13.3 symbol; the mi-grid derivation is now cited as | |
| 293 | + `dec_set_mb_mi` (`decoder.c:57-58`; cf. `av1_get_MBs`, `alloccommon.c:32-33`). | |
| 294 | +- **The reviewer's third finding was withdrawn** (author retraction, verified): | |
| 295 | + it claimed the 12-bit warp `reduce_bits_horiz` is 4, not 5. With | |
| 296 | + `FILTER_BITS = 7` (`aom_dsp/aom_filter.h`, the only definition), | |
| 297 | + `intbufrange = 12 + 7 - 3 + 2 = 18 > 16` → `round_0 = 3 + 2 = 5`, and | |
| 298 | + `warped_motion.c:310`'s assert gives `round_0 >= 5`. §4.2's "= 5 at bd 12" | |
| 299 | + stands; **no edit made**. | |
| 300 | + | |
| 301 | +**Create-list audit.** Exactly four paths: `decode.rs` (+12, comments only), | |
| 302 | +`refusal_inventory.rs` (the enumeration test), `stream.rs` (comments + the | |
| 303 | +witness), and `lanes/av1hdr.report.md` (new). No junk/duplicate file. The | |
| 304 | +`decode.rs`/`stream.rs` edits add **no decoder behavior**. | |
| 305 | + | |
| 306 | +**Merged-tree gates** (`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-av1hdrmerge`, | |
| 307 | +worktree `fixtures/` symlink in place): | |
| 308 | + | |
| 309 | +- `cargo check -p ec-av1 --all-targets` — **0 warnings**. | |
| 310 | +- `cargo test -p ec-av1 --lib refusal_inventory` — **14 passed / 0 failed / | |
| 311 | + 0 ignored** (640 filtered out). | |
| 312 | +- The new gates, run together: `1..3 passed / 0 failed` — | |
| 313 | + `refusal_inventory::tests::a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol` ok; | |
| 314 | + `stream::tests::a_real_aomenc_mixed_lossless_segment_frame_is_refused_by_name` ok | |
| 315 | + (each of the 3 arms carried **1 mixed frame, refused by name**); | |
| 316 | + `stream::tests::a_real_libaom_monochrome_key_frame_decodes_pixel_exact` ok | |
| 317 | + (4:2:0 twin and monochrome **60 frames each, byte-exact vs ffmpeg**) — mono's | |
| 318 | + witness, re-run on the merged tree. | |
| 319 | +- **decode_probe 10-bit sha-parity** (`fixtures/hbd-r5/reelb.obu`, 3840x1608, | |
| 320 | + 72 shown frames, `EC_PROBE_OUT16`): lane `5bb35ca3` and merged `e03f7173` | |
| 321 | + both produce `sha256 | |
| 322 | + d7214bb733b4a6ca2d946d0fcb4849691191b694164383db110a4d9183436784` | |
| 323 | + (1,333,739,520 B of yuv420p10le); `cmp` reports IDENTICAL. The merge is | |
| 324 | + behavior-identical on the high-bit-depth path. | |
| 325 | + | |
| 326 | +**Full merged-tree suite NOT re-run**: the verifier already completed it on the | |
| 327 | +lane (594 passed / 0 failed / 60 ignored, 8083 s); the merge resolution touched | |
| 328 | +no decoder code (comments + tests only), and the 10-bit sha-parity above is the | |
| 329 | +behavior-identity proof. | |
| 330 | + | |
| 331 | +**Cleanup.** Worktree `edith_codecs-av1hdr` removed (branch `lane-av1-hdr` | |
| 332 | +kept at `5bb35ca3`); private target dirs | |
| 333 | +`$HOME/.cache/cargo-target-av1hdrmerge*` and the `$HOME/.cache/tmp-av1hdrmerge` | |
| 334 | +TMPDIR removed. | |
| 335 | + | |
| 336 | +**Tripwire for the next lane.** `a_real_aomenc_mixed_lossless_segment_frame_is_refused_by_name` | |
| 337 | +pins today's refusal of a frame mixing lossless and lossy segments (the | |
| 338 | +per-segment lossless / `TX_4X4` block-decoder path is not lifted here). The lane | |
| 339 | +that lands that lift MUST flip this pin to a witness, or it merges a stale | |
| 340 | +refusal pin. (`lane-av1-mono` already flipped its monochrome pin.) |