edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-t900 r9 handoff -- two root causes landed (sub-8x8 GLOBALMV interp, warp TR reach); the 4K head is element-exact, frame 49 of the 1080p cut still desyncs
Tip 5c8ab7f2 on lane-t900. cargo check -p ec-av1 --tests --examples clean.
No suite this round (coordinator: no suite).
STEP 0 -- consolidation (DONE, commits cdf54852, a0b69fe6)
git merge main= no-op (branch already carried main76b33796).git merge 434ac12c(lane-midcut r3 tip): ONE conflict block in decode.rs (8 hunks), resolved to ourwarp_plane_allowed(w, h)call sites; midcut's equivalentwarp_luma_ok/warp_chroma_okbindings deleted (same rule, same libaom sourceav1_init_warp_params). Kept midcut'sintra_rect_in_inter_txctx_override_hitscounter, its interintra RECT ARM gate and itsrect_beforescaffold --interintra_rect_hits()already exists in this tree (decode.rs:2141), so the arm compiled unchanged.- Cherry-picked lane-frame80
c5b1020eMINUS its twotx_size_context*delegations (frame80 r2 measured them redundant, dropped ind79559ab): kept theEC_TRACE_COEFF_FRAMErung +decode_key_frame_tile_with_cdfsclearingTX_SELECT_INTER. NOT7ab8915b, NOT the delegations. - Named tests at
a0b69fe6:128sb_film interintra hidden_arf rect64_corner_tus sub8 refusal_inventory gate_coverage-> 26 passed, 0 failed (96.8 s,$HOME/.cache/t900-named-r9.log).
STEP 1 -- ROOT CAUSE CLOSED (c13d51df): 4-px-sided GLOBALMV blocks must read interp
libaom is_nontrans_global_motion returns 0 at
AOMMIN(mi_size_wide, mi_size_high) < 2 BEFORE testing any model. Our two sub-8x8
readers (decode_inter_sub8_split4 ~23649, decode_inter_sub8_rect2 ~24575) and the
COMPOUND arm of decode_inter_block (~20280) lacked that guard and suppressed the
interp-filter symbol. Sub-8x8 sites are now gm_nontrans = false outright (their side
is always 4 px); the compound arm gained bw4.min(bh4) >= 2. The single-ref arm
(~21508) already had it; decode_inter_block8 cannot hit it.
Counter gm_nontrans_small_side_hits() (printed by decode_probe) counts only flips.
Verified on the 4K head (~/.cache/frame80-tmp/t265.obu, 170 decode frames,
EC_INTRA16X4_DECODE=1 EC_INTRA128_IN_INTER=1): coefficient ladder vs a265.f
(lad5.py, tags all_zero/eob/after_bases + rng) -- frame 99 was DIFF at 11933,
now OK (69065 elements), and frames 100..169 are all OK, zero DIFF (70/70).
Counter fires 109 times on that cut. Our decode reports OK: 176 frames decoded.
So the frame80 stream has NO known entropy divergence left in its 170 frames; the
remaining work there is the pixel compare of shown frames + a witness fixture.
STEP 2 -- frame 49 of ~/.cache/t900-tmp/cut_900.obu (PARTIAL)
Header facts (EC_PROBE_HDR=1, new rung): decode frame 49 is a hidden ALTREF --
type=Inter show=false refresh=0x01 base_q=38 primary_ref=0 order_hint=51 ref_idx=[2,0,3,2,2,1,4] allow_warp=TRUE cdef=3 lr=[Wiener,Wiener,Wiener] tiles=1x1.
It is the 4th allow_warp=true ARF (they run at decode 1,17,33,49,65,...; 1/17/33
decode exactly), so "ARF + warp" alone is not the trigger.
First diverging element (EC_MODE ladder lad.py a900.mode o900.mode, mode traces of
both decoders): decode frame 49, block mi(64,144), 64x128, NEWMV ref0=1.
Both decoders reach rng 47868 after the mv. aomdec then reads motion_mode to
45539 and interp to 42041; we read motion_mode to 41629 and interp to 38479.
4786831014/32768 = 45303 (the BLOCK_64X128 obmc row) vs 4786828898/32768 = 42217
(the motion_mode row) -- aomdec read the 2-symbol alphabet, we read the 3-symbol
one. EC_MM showed elig=1 ab=1 lf=1, EC_MM2 showed row=14 warp_elig=1, and
EC_PROJ_MI=64,144 showed the deciding sample was the top-right cell (a 64x16
neighbour, ref=1 single).
Fix shipped (5c8ab7f2): av1_findSamples probes with
AOMMAX(xd->width, xd->height) (mvref_common.c:1235), we passed bw4; now
bw4.max(bh4). Counter tr_reach_longer_side_hits() = 1942 on that cut.
STATE AFTER THE FIX -- READ THIS BEFORE BUILDING ON IT
- The fix is SOURCE-PROVEN but NOT gate-verified: the named gates were run BEFORE it
(at
a0b69fe6) and NOT re-run after. Re-run them first thing. If they red,git revert 5c8ab7f2is a clean single-hunk revert (plus its counter). - Pixel compare
cmp.sh r9_900 cut_900.obuat the tip: first differing frame still 41 (the known 1 U sample), frame 49 now 2264240 bytes (was 1.78 M) and the cliff still never recovers; 218 of 267 dumped frames differ. - The EC_MODE ladder at the tip moves the first divergence to
mi(0,384) (aomdec rng 63728, ours 56480,
side=64), last match mi(24,376) rng 33292 -- i.e. EARLIER inside frame 49 than mi(64,144) (mi(0,384) is in the same frame; the alphabet fix changed earlier rect blocks' reads). So frame 49 has at least one more defect ahead of the one that was fixed, and mi(64,144) is no longer reachable in the trace (its rng-35860 line is gone). - NEXT STEP, exactly: rebuild the mode traces at the tip
(
o900d.stepalready exists at the tip:EC_MODE|EC_ISTEP|EC_IF|EC_MMfiltered), findEC_MODE mi_row=0 mi_col=384in frame 49 ofa900.stepvso900d.step, and read theEC_MM/EC_MM2pair for the LAST MATCHING block mi(24,376) -- the divergence is again in the symbols between the mv and the interp filter.
Instruments added this round (all env-gated, additive)
EC_PROBE_HDR=1-> oneEC_HDRline per decode-order frame (stream.rs, next toset_coeff_trace_frame).EC_TRACE_MODE_STEPnow also printsEC_MM(motion_mode eligibility terms:elig/ab/lf/sw/skipmode/ii/gmb+ rng) andEC_MM2(row=cdf row,warp_elig/scaled/fimv/obmc/warped+ rng after the read) -- a SUPPRESSED symbol prints nothing, which is why this defect was invisible for a round.EC_PROJ_MI=<mi_row>,<mi_col>->EC_PROJ cand ...per warp-sample candidate in libaom's order (above, left, top-left, top-right).- decode_probe prints
gm_nontrans_small_sideandtr_reach_longer_side.
Artifacts
~/.cache/t900-tmp/: a900.mode o900.mode (pre-TR-fix) o900d.mode/o900d.step
(tip), a900.step (aomdec EC_MODE+EC_ISTEP), hdr900.txt (EC_HDR per frame),
proj2.txt (candidates at mi(64,144)), d_r9_900/ (pixel dumps at the tip),
oall265.f (our 4K coefficient trace, all frames), lad265.out (frames 100..169 OK).
cmp.sh now points at $HOME/.cache/cargo-target-t900 (was -t900-b).
NOT done this round (turn cap)
STEP 3 (midcut 126-sample rect-intra edge residue), STEP 4 (f41 chroma MC bottom-row clamp, t6300 f11 2 V samples), STEP 5 (witness gate asserts for the two new counters, 4K prefix fixture, suite, reelc/hg re-probe), and the film table refresh for t5400/t8100. Nothing about them was measured this round.