edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-t900 r14 report -- the last 1080p residue class: OBMC neighbour prediction size
Branch lane-t900, base a870796b (main, merged fast-forward at round start).
Root cause (one, all of TARGET A)
overlappable_above / overlappable_left (crates/ec-av1/src/decode.rs) clamped the
neighbour span to end_col/end_row, i.e. to mi_cols/mi_rows. libaom's
foreach_overlappable_nb_above/_left (av1/common/obmc.h:52,83) pass
op_mi_size = AOMMIN(xd->width|height, mi_step) -- the block's OWN side, never the
frame-edge clamp; end_col/end_row bound only the WALK. build_obmc_inter_pred_*
(reconinter.c:891) then predicts a strip op_mi_size * MI_SIZE >> ss tall/wide, and
the destination write runs off into the frame buffer's own padding.
Because our span shrank at the frame edge, the neighbour PREDICTION shrank with it, and
at 4 chroma rows mc::predict_with_filters picks the 4-tap narrow vertical kernel
(mc.rs:418, class narrow-block-sharp-kernel) where libaom used the 8-tap one.
Result: a 1-off on the last valid chroma row of the OBMC blend -- 1-13 B on 36 of 267
frames of the 900 s 1080p cut and similar counts on every other 1080p cut.
Fix (a6c408b7): span is step.min(bw4) / step.min(bh4); the prediction is built at
that full size (kernel choice included) and only the WRITE into this block's own
prediction buffer is clipped (obmc_blend_v gained the tmp stride, obmc_blend_h
takes the clipped row count).
Witness (52a11095): obmc_edge_span_hits counts neighbour strips running past
mi_rows/mi_cols; the 128-SB inter witness gate hard-asserts it (fires 33x).
Ladder that produced it (one run each, both decoders)
- aomdec
EC_MCB=1:353:395:41onc900_62.obu: base pred (obmc=0) 16 rows identical to ours; ONEobmc=1left-neighbour entry covers row 11,mi_y=784 bw=8 bh=8, its row3 =494 491 490 491 494 492 488 486. - ours (
OUR_MCB left, new tmp dump): same neighbour,cbh=4(not 8), row3494 492 490 491 ...-- col 1 is 492 vs libaom's 491. - Blend arithmetic confirms the sign:
obmc_mask_8[1] = 42,(42*493 + 22*491 + 32) >> 6 = 492(aom) vs(42*493 + 22*492 + 32) >> 6 = 493(ours).
1080p table (10-bit 1920x792, cmp13.sh, aomdec EC_AV1_FINAL_DUMP vs ours, all planes)
| stream | frames | differing | before r14 |
|---|---|---|---|
| head 0-10 s | 241 | 0 | 78 differing (r11) |
| 300 s | 186 | 0 | - |
| 900 s (cut_900) | 267 | 0 | 36 differing, first f41, worst 13 B |
| 1200 s | 199 | 0 | - |
| 1800 s | 193 | 0 | 26 B on f1 (charter) |
| 2100 s | 169 | 0 | - |
| 3000 s | 135 | 0 | - |
| 3900 s | 291 | 0 | - |
| 4800 s | 89 | 0 | - |
| 5400 s | 275 | 0 | 5 differing |
| 5700 s | 134 | 0 | - |
| 6300 s | 125 | 0 | differing |
| 6600 s | 110 | 0 | - |
| 7500 s | 89 | 0 | - |
| 8100 s | 96 | 0 | differing |
| 8400 s | 135 | 0 | - |
| 9300 s | 81 | 0 | - |
| 9900 s | 176 | 0 | charter target |
| 10200 s | 144 | 0 | - |
Every 1080p offset probed this round is byte-exact on every plane. No 1080p residue left in this lane's reach.
4K regression check (no 1080p-only fix regressed the 4K path)
| stream | frames | differing |
|---|---|---|
3840x1608 10-bit, 2700 s cut (h2700.obu) |
107 | 0 |
3840x1608 10-bit, 1500 s cut (h1500.obu) |
244 | 0 |
Gates / suite
a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact:EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-t900b cargo test -p ec-av1 --lib -j3 a_10bit_128sb_film_frames_with_warp_cdef_and_interintra -- --nocapture->ok. 1 passed, counters... tr_reach_longer_side=600 obmc_edge_span=33.- Full suite (r14 fix, unit
t900-suite-r14-1788394487):test result: ok. 429 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out; finished in 861.07s--$HOME/.cache/t900-suite-r14.log. - Full suite on the FINAL tip (unit
t900-suite-r14b-1788395402, log$HOME/.cache/t900-suite-r14b.log):test result: ok. 429 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out; finished in 820.42s.
EVIDENCE
EVIDENCE: ~/.cache/t900-tmp/aom_mcb41b.txt + ~/.cache/t900-tmp/our_mcb41.txt | aomdec and ours with EC_MCB=1:353:395:41 on c900_62.obu | left-neighbour tmp row3 col1 = 491 (aom, bh=8) vs 492 (ours, cbh=4) -> post-blend U(353,395) 492 vs 493 EVIDENCE: ~/.cache/t900-tmp/d_cut900_r14/ | cmp13.sh cut900_r14 cut_900.obu (aomdec EC_AV1_FINAL_DUMP vs our decode_probe, all planes) | frames=267 differing=0 (was 36 differing, worst 13 B) EVIDENCE: ~/.cache/t900-tmp/sweep14.log | 12 x 2 s 1080p cuts (300..10200 s) + 2 4K cuts, same compare | every offset differing=0 EVIDENCE: $HOME/.cache/t900-suite-r14.log | full ec-av1 lib suite as a systemd unit | 429 passed; 0 failed; 38 ignored
Residue
- 4K census8's remaining not-exact offsets: not swept this round -- deferred(a 4K census run costs ~20 min per offset pair on this box while a suite runs); the two 4K cuts I did re-probe are exact.
- No 1080p residue known: fix-now list empty for this lane's 1080p target.