forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

r14-r4.report.md6.0 KiBHistoryRawDownload

lane-r14 round 4 — merge main, and the parked firing assert turned back on

1. Merge main (18bf7dc) — commit 523c17d

git merge --no-commit main auto-merged with NO conflicts (diffstat: decode.rs +1117, stream.rs +1100, mvstack.rs +114, encode.rs +47, refusal_inventory.rs, cdf.rs, cdf_state.rs, decode_probe.rs, 9 lane reports). Checks run before committing:

  • git diff main -- crates/ec-av1/src/cdf.rs → 0 lines: cdf.rs (NZ_MAP / FILTER_INTRA rows included) is byte-identical to main on the merged tree, so no table was rebound by the merge.
  • git diff main -- crates/ec-av1/src/refusal_inventory.rs shows only THIS lane's deletion ("a split transform on a 1:4 inter strip with a 64-px axis"); every refusal main deleted (lane-oddh's 128x128 line, lane-intrarect's) stays deleted.
  • grep -rn '<<<<<<<|>>>>>>>' crates/ → nothing. No hand-resolved function, so no rebound-name re-read was needed (class merge-resolution-shadows-a-name did not apply this round).

2. The firing assert is back on — and it is a hard assert

Gate renamed a_real_aomenc_inter_1to4_recipe_decodes_pixel_exact_or_refuses_by_name → real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal (crates/ec-av1/src/stream.rs:6752), which is what it now asserts.

r4 recipe hunt on the merged tree, ~70 real aomenc runs (testsrc2, life, mandelbrot, banded-motion lavfi with per-band and per-column speeds, 64x64 / 128x64 / 64x128 / 256x64 / 384x64 / 64x384 / 192x128 / 384x256, cq 20..58, --min-partition-size 16 and 32, 8- and 10-bit) found the recipe r3 could not: 384x256, per-16-column band motion, at cq=38 and cq=32.

EVIDENCE: $HOME/.cache/r14-r4-gate.log (gate run, quoted below) | cargo test -p ec-av1 --lib -- --test-threads=1 --nocapture real_aomenc_1to4_streams on 0b49322 | 8-bit: attempt 17 refusal (rect var-tx leaves decoded before it: 32x16=4, 16x32=0), attempt 16 ... (32x16=0, 16x32=1), summary 2 named refusals, leaves decoded anywhere in the sweep 32x16=4 16x32=1, 16 attempts carried none (0 of them mismatched) — test result: ok, 1 passed

What the gate asserts now:

  • oos_mismatch == 0 — every attempt that decodes to the end is compared to ffmpeg on Y/U/V, 8- AND 10-bit, and a mismatch is a failure, never a SKIP (16/16 banded attempts per depth decode fully and match; the recipe's --min-partition-size moved 32 → 16, so those 16 attempts now also exercise the 16-level path).
  • compared + out_of_scope > 0 — the gate is not vacuous.
  • 8-bit: fired_32x16 > 0 && fired_16x32 > 0 — both orientations of sub_tx_size_map[TX_64X16] == TX_32X16 / [TX_16X64] == TX_16X32 decoded out of a real aomenc stream. These two streams stop LATER on another lane's refusal (a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding at cq 32, an inter 16x16-level AB or 1:4 partition at cq 38 — decode.rs:21305, genuinely unimplemented on the inter path), so the leaves are proved decoded, not proved pixel-exact. The counters are per-attempt deltas kept in a separate pair of variables from the pixel-compared ones (class counter-from-refused-stream), and the distinction is printed and commented.
  • 10-bit: the same sweep fires ZERO leaves (measured: cq 32/35/38 pick other shapes), so the firing assert is 8-bit-only, with the measurement written at the assert.

3. Suite

systemd-run --user --unit=r14-suite-r4-1788325638 -p MemoryMax=10G ... cargo test -p ec-av1 --lib -j3 → $HOME/.cache/r14-suite-r4.log. Suite result (r4 tip 0b49322): 372 passed; 0 failed; 32 ignored, 1487.04s — GREEN. (r3 tip was 367/0/31; +5 passed and +1 ignored come from main's three merged lanes.)

4. Film probes on the merged tree — and a regression that is main's, not this lane's

EVIDENCE: /tmp/.../scratchpad/r14/seg{300,3000,4500}.obu (2 s HG 2160p10 extracts, reused from r3) | decode_probe under systemd-run --user --scope -p MemoryMax=6G, EC_AV1_FINAL_DUMP file count = frames completed | merged tree 0b49322:

segment stop string frames completed
-ss 300 a split intra strip whose transform unit is 32x64 (no luma coefficient tables for that shape here) 1
-ss 3000 same 1
-ss 4500 an intra-coded 1:4 (or other non-2:1) rect strip on the inter block path 1

That is shallower than the r3 tip, where seg4500 decoded 14 rectangular var-tx leaves and 16 16x64 strips before stopping. Attribution measured, not guessed:

EVIDENCE: same three segments | decode_probe built from a detached worktree at main 18bf7dc (CARGO_TARGET_DIR=$HOME/.cache/cargo-target-r14-main, worktree + target dir removed after) | main alone gives the IDENTICAL stop strings and frames=1 on all three

So the films now stop in decode-order frame 2 on lane-intrarect's two NARROWER successor refusals; the merge with lane-r14 changes nothing about it. flagged, not mine: main 18bf7dc is a film-depth regression against this lane's r3 tip — a broad refusal was replaced by narrower ones that fire EARLIER in the stream (or our decode desyncs into them; class refusal-from-own-desync is untested here). Owner: lane-intrarect / a fresh lane.

Residue

  • deferred(needs the 16x16-level inter 1:4 lane, or the non-skip HORZ_B rect residual lane) — a PIXEL-EXACT aomenc stream carrying a rectangular var-tx leaf. Both firing streams are one refusal short of running to the end; the assert to strengthen is the if bit_depth == 8 block.
  • deferred(needs an aomenc recipe that fires the arm at 10 bits) — the 10-bit firing assert. Measured absent over the 18-attempt sweep at cq 32/35/38.
  • flagged, not mine — the film-depth regression above.
  • accepted — --enable-ab-partitions=0 streams still reach an inter SB-level AB partition and --min-partition-size=16 streams reach an inter partition below 8x8 (both re-observed this round, r3 flagged them first): a refusal naming a disabled tool is usually our own desync, and deserves its own lane.