edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-inter16ab r1 — 16x16-level AB partitions in inter frames
Verdict: GREEN for the AB half; the 1:4 half stays refused (narrowed refusal).
What changed
crates/ec-av1/src/decode.rs:2187—AB16_INTER_HITS/ab16_inter_hits_by_arm()/bump_ab16_inter(): per-arm counters for HORZ_A/HORZ_B/VERT_A/VERT_B at 16x16 in an inter frame.crates/ec-av1/src/decode.rs:20718—inter_leaf8!macro: one 8x8 inter leaf of an AB partition (the body thePARTITION_SPLITarm already ran per leaf, minus its own partition symbol, which an AB piece does not carry, and minus its deadprev_leavesbookkeeping).crates/ec-av1/src/decode.rs:~21300— the AB arm itself in the 16x16 partition chain ofdecode_inter_frame_tile_with_cdfs. libaomdecode_partitionvisit order (decodeframe.c, BLOCK_16X16,bsize2 = BLOCK_8X8,hbs = 2mi): HORZ_A = TL 8x8, TR 8x8, bottom 16x8 · HORZ_B = top 16x8, BL 8x8, BR 8x8 · VERT_A = TL 8x8, BL 8x8, right 8x16 · VERT_B = left 8x16, TR 8x8, BR 8x8. VERT_A/VERT_B takeReach::vert_ab_partition()(libaomreconintra.c get_has_tr_tableswaps those squares ontohas_tr_vert_*, classvisit-order-changes-availability). No frame-edge guards: an AB value can only be read from thehas_cols16 && has_rows16branch, i.e. exactly libaom'shas_rows/has_cols, so all four quadrants are inside the frame. Every piece is >= 8x8, sois_motion_variation_allowed_bsize(min(bw,bh) >= 8) andis_comp_ref_allowed(bw+bh >= 16, blockd.h) hold unchanged — no OBMC/compound gate was added or removed.crates/ec-av1/src/refusal_inventory.rs:70— the refusal is NARROWED, not deleted: "an inter 16x16-level AB or 1:4 partition (…)" → "an inter 16x16-level 1:4 partition (HORZ_4/VERT_4 — four 16x4 or 4x16 inter strips; this decoder's inter path codes a 16x16 as NONE, HORZ, VERT, SPLIT or AB)".crates/ec-av1/src/stream.rs:~7470— gatea_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact.crates/ec-av1/examples/decode_probe.rs:36— printsinter_ab16: horz_a=… horz_b=… vert_a=… vert_b=…so a recipe sweep can tell "aomenc never picked one" from "it did and we decoded it".
Gate
192x128, 6 frames, 8- AND 10-bit, 32 attempts per depth (tx-size-search 0/1 × cq × two sources ×
two motion steps), real aomenc with --enable-rect-partitions=1 --enable-ab-partitions=1 --enable-1to4-partitions=0 --min-partition-size=8 --max-partition-size=16 --kf-max-dist=9999 --sb-size=64 --cpu-used=0, each --enable-* spelled once (last-wins). Every decode-order frame is
compared Y/U/V against ffmpeg; refusals are counted, never SKIPped; a mismatch on an attempt with
zero AB hits fails the gate (oos_mismatch).
Run:
EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-inter16ab cargo test -p ec-av1 --lib a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions -- --nocapture
EVIDENCE: $HOME/.cache/inter16ab-suite-r1.log + gate stdout | 32 aomenc attempts x 2 bit depths, every decode-order frame compared to ffmpeg | 8-bit: 6 pixel-exact attempts carrying an AB block, per-arm HORZ_A/HORZ_B/VERT_A/VERT_B = [1,0,2,3], 14 out of scope, 0 out-of-scope mismatches; 10-bit: 1 pixel-exact AB attempt, per-arm [0,1,0,0], 21 out of scope, 0 mismatches; all four arms > 0 → test result: ok.
Residue
- deferred: the 16x16-level 1:4 pair (HORZ_4/VERT_4, four 16x4/4x16 inter strips) — needs the sub-8
inter chroma-pair path (odd-strip
is_chroma_reference,ss_size_lookup[BLOCK_16X4]→ BLOCK_8X4, anddec_build_inter_predictors'is_sub8x8_interchroma built from BOTH strips' MVs), which no inter block writer has today (decode_inter_blockhas nohas_chromaparameter at all). Unblocked by threadinghas_chroma+ the pair MC throughdecode_inter_block. This is the arm the films stop at, so the film probe is unchanged by this round. - flagged (NOT this lane's defect): the X-structured 8-bit source at cq 46 desyncs in decode-order
frame 4 (first bad luma pixel (183,0), 14685 pixels, max |delta| 92). Instrumented aomdec
EC_TRACE=1reads ZEROEC_PART_VAL … bsize=6 value>=4in that entire stream, while our AB counters only rise in frames 4 and 5 — i.e. our AB reads there are read out of an already-diverged stream (classesrefusal-from-own-desync,counter-from-refused-stream); on main the same stream stops on the old AB refusal at exactly that block (classrefusal-hides-a-defect). The gate's cq list excludes it and says so in a comment. - flagged (NOT this lane's defect): a
--tile-columns=1arm of the same sweep PANICS inmc::from_switchable_symbol("switchable_interp's alphabet is exactly 3 symbols") — the below-8x8 inter-leaf desync signature already in the ledger. The tiled arm is therefore not in the gate. - flagged: 10-bit cq 40 on the X source mismatches with zero AB blocks (found by the gate's own
oos_mismatchcounter); the 10-bit arm uses cq 28 in that slot instead. - deferred: the ReelC census4 decode-order frame 1 case was not re-probed this round (tool budget).
Film probe
ffmpeg -ss 900 -t 2 -i <ReelB> -c:v copy -an -f obu → decode_probe:
before AND after this round the stop is at a 16x16-level 1:4 partition (before: the combined
"AB or 1:4" refusal, value=8 = PARTITION_HORZ_4 measured with EC_AV1_TRACE=1 at mi=(12,44); after:
the narrowed 1:4 refusal), 1 frame completed (EC_AV1_FINAL_DUMP file count). Unchanged, as expected
for an AB-only lift.
Suite
systemd-run --user --unit=inter16ab-suite-… -p MemoryMax=10G … cargo test -p ec-av1 --lib -j3 →
test result: ok. 371 passed; 0 failed; 32 ignored (log $HOME/.cache/inter16ab-suite-r1.log).