edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-t900 r13 report -- the four 4K whole-frame desyncs were already cured by r12; the 1-3 B residue is inside the OBMC blend, not the base MC
Tip 7a111b9d on lane-t900 (base main 2b65cb8e; r12 tip 66d88cfe was already
a fast-forward of main, no merge needed this round).
STEP 0 -- suite
systemd-run --user --unit=t900-suite-r13-... cargo test -p ec-av1 --lib -j3
(EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1, log $HOME/.cache/t900-suite-r13.log):
test result: ok. 429 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out
No red from r11/r12. A confirmation run on the r13 tip is armed
($HOME/.cache/t900-suite-r13b.log); the one test whose code changed
(a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact)
was run alone on the r13 tree and passes -- see STEP 1.
STEP 1 -- witness for r12's mi-granular uv_mode grid (DONE, no new fixture)
decode_probe now prints uv_mode_grid_override. Measured over the existing witnesses:
| fixture | uv_mode_grid_override |
|---|---|
gm_small_side_witness.obu |
138 |
reelc_sb128_inter_witness.obu |
24 |
reelb_head_mvclamp_witness.obu |
0 |
reelb_arf_witness.obu |
0 |
reelb_intra14_witness.obu |
0 |
reelb_rect64_intra16x4_witness.obu |
0 |
So no new fixture was pinned (charter's fallback): the small-side GLOBALMV gate now hard-asserts the counter.
EVIDENCE: $HOME/.cache/t900-uvgate.log | cargo test -p ec-av1 --lib small_side_globalmv -- --nocapture | 33 shown frames pixel-exact on every plane; gm_nontrans_small_side=1 tr_reach_longer_side=2295 uv_mode_grid_override=138, 1 passed; 0 failed
STEP 2 -- the four 4K offsets: ALL EXACT, the charter's premise was stale
Every cut extracted twice, identical sha256 both times; both decoders compared with
EC_AV1_FINAL_DUMP per decode-order frame (~/.cache/t900-tmp/cmp13.sh).
| offset (10-bit 3840x1608 HDR film) | charter premise (pre-r12) | measured on r13 tip |
|---|---|---|
| 2700 s, 2 s | f73 first differing, 15.8 MB (whole frame) | 107 decode frames, 0 differing |
| 3000 s, 2 s | f43 first differing | 193 frames, 0 differing |
| 1500 s, 2 s | Golomb / own desync | 244 frames, 0 differing |
| 5400 s, 2 s | Golomb / own desync | 160 frames, 0 differing |
r12's chroma edge-filter fix (uv_mode_grid) cured all four; there was no frame-73
ladder to run. No EC_MODE ladder was needed and none was run.
EVIDENCE: ~/.cache/t900-tmp/d_h2700, d_h3000, d_h1500, d_h5400 | cmp13.sh per offset (aomdec EC_AV1_FINAL_DUMP vs decode_probe, byte compare per decode frame) | 107/193/244/160 frames, 0 differing each
STEP 3 -- the 1-3 B bottom-edge residue: localised to the OBMC BLEND (open)
10-bit 1920x792 cut at 900 s (~/.cache/t900-tmp/cut_900.obu, 267 decode frames):
36 differing frames, first f41 (1 B), worst 13 B -- unchanged by r12.
Sample census (final dump): every differing sample is CHROMA, in chroma rows 390-395 (the bottom 12 luma rows), and off by +-1 (rarely +-2). Luma is bit-exact everywhere.
New rungs this round:
- aomdec (private build, additive, env-gated):
EC_MCB="<plane>:<px>:<py>[:<frame>]"indec_build_inter_predictorsprints the block whose plane-pixel span COVERS that pixel (frame counterec_t900_frame, bumped whereEC_AV1_FINAL_DUMPwrites). - ours:
OUR_MCBindecode.rsobmc_blend, same env spelling, prints the chroma prediction rows on entry and on exit of the blend.
Frame 41, the block that owns the differing sample: chroma mi_x=704 mi_y=768 bw=16 bh=16
(32x32 luma at mi(192,176), which OVERHANGS the frame bottom: mi_rows=198), mm=1 (OBMC),
skip=1, mv0=(-4,14), ref0=5, prew=960 preh=396.
- PRE-blend chroma prediction: all 16 rows bit-identical to aomdec.
- Post-blend: our recon differs at exactly one sample,
U(353,395)= row 11, col 1 (prefilter dump: aom 492, ours 493; the loop filter then spreads it toU(354,395)in the final dump). - Col 1 is inside the LEFT pass's overlap strip (8 chroma columns) and outside the ABOVE pass's (4 rows), and row 11 is the block's LAST valid chroma row -- so the residue is in the LEFT-pass OBMC neighbour prediction/blend of a bottom-overhanging block, NOT in the base motion compensation and NOT (r8's premise) a bottom-edge tap clamp of the block's own MC.
EVIDENCE: ~/.cache/t900-tmp/aom_mcb41.txt, our_mcb41.txt, pf13/{aom,ours}.f41 | EC_MCB=1:354:395:41 on both decoders over c900_62.obu + EC_AV1_PREFILT_DUMP16 compare | 16/16 pre-blend rows identical; prefilter f41 diffs=1 at U(353,395) 492vs493
Dead end measured and recorded in the code (decode.rs obmc_blend): libaom's min-4
clamp (dec_build_prediction_by_above_pred: clamp(block_size_high[bsize] >> (ss_y+1), 4, ...))
sizes only the OBMC PREDICTION buffer -- the blend length stays the plain half
(build_obmc_inter_pred_above: overlap >> ss_y). Flooring the chroma blend at 4 took
cut_900 from 36 differing frames to 266 and the worst frame from 13 B to 11007 B; reverted.
Also read and ruled out by source on both sides (no code change): build_mc_border /
update_extend_mc_border_params clamp to pre_buf->width/height = uv_crop_* = 960x396,
identical to our true_width/true_height; clamp_mv_to_umv_border_sb is result-equivalent
to tap clamping wherever the geometry it is given is the block's own.
Residue disposition: deferred(next round) -- the next rung is aomdec's EC_MCB with
obmc=1 (it already prints the neighbour prediction from the tmp buffer) against our
ec_obmc_trace/OUR_MCB for the LEFT pass of that block: compare the neighbour list
(position, span, mv, ref, filter) and then the tmp rows at row 11.
STEP 4 -- re-probe
The four 4K offsets above are the re-probe (all exact). The 4K 10 s head was measured 0 of 241 differing on this code in r12 and is unchanged here (no decode-path change this round -- the only non-comment edits are trace/gate code). The 1080p 0-10 s head re-probe and the census8 24-offset sweep are deferred(turn cap).
Files changed
crates/ec-av1/src/stream.rs-- the small-side GLOBALMV gate asserts and reportsuv_mode_grid_override > 0(witness for r12's fix).crates/ec-av1/examples/decode_probe.rs-- printsuv_mode_grid_override.crates/ec-av1/src/decode.rs--OUR_MCBrung inobmc_blend; a comment recording the measured OBMC min-4 dead end.