edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-sb128c r9 -- the four AB shapes at the 128 root (key + inter)
Branch lane-sb128c, worktree edith_codecs-sb128c,
CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sb128c.
What changed
crates/ec-av1/src/decode.rsread_sb128_root: the AB refusal is LIFTED. Values 4..7 now count intoPART128_AB_HITS(part128_ab_hits()), and the_arm refuses only a value outside the 8-symbol alphabet.crates/ec-av1/src/decode.rskey-frame tile: a new arm decodes each AB shape as two 64x64 squares (decode_block,SB,Luma64/Chroma32) plus one 128x64/64x128 half (decode_block_128rect, r8) in libaomdecode_partition's order -- HORZ_A = TL, TR, bottom half; HORZ_B = top half, BL, BR; VERT_A = TL, BL, right half; VERT_B = left half, TR, BR -- withReach::vert_ab_partitionlive for the two VERT arms (r6 visit order, classvisit-order-changes-availability),CDEF_TRANSMITTEDreset per piece (one CDEF unit each, so libaom's per-unitcdef_transmitted[index]), and the half'scdef_idxcopied to the second 64x64 unit it covers.crates/ec-av1/src/decode.rsinter tile: the same four arms throughinter_piece!(SB/SB*2withww/wh= the true footprint).crates/ec-av1/src/stream.rssb128_ab_counters(); new gatea_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact.crates/ec-av1/src/refusal_inventory.rs: the 128-root AB string is replaced by the alphabet-bound one.
Gate: RED -- and the divergence is NOT in the AB code
cargo test -p ec-av1 --lib ab_partition_at_the_128_root -- --nocapture
fails on its FIRST arm: sb128c-ab-18-512x512 decode-order frame 0 differs
from the oracle at byte 319 (ours 105 vs 107), 326839 bytes differ.
Frame 0 of that stream contains no AB partition at all (EC_AV1_TRACE
partition_w128 values for its 16 roots are 2,2,2,0,0,3,3,0,... ; the first
value in 4..7 is the 38th root, i.e. frame 2). The first differing sample is
(x=317..319, y=0), inside the LEFT 64x128 half of the third 128 root, which is
PARTITION_VERT -- r8's decode_block_128rect, untouched this round.
Hand sweep of four 512x512/384x320 arms ($HOME/.cache/sb128c-r9/cmp.sh,
oracle aomdec vs our decode_probe, EC_AV1_FINAL_DUMP per frame):
| stream | first differing byte (frame 0) | AB values in stream |
|---|---|---|
| 512x512 cq18 key | 320 (x=319,y=0) | HORZ_A x3 |
| 512x512 cq45 key | 318 | HORZ_B x1, VERT_B x1 |
512x512 cq45 inter (--kf-max-dist=100) |
319 | HORZ_A x1 |
| 384x320 cq55 key | 95531 (x=299,y=248), frame 2 exact | none |
512x512 cq45 key, --enable-ab-partitions=0 |
318 | (aomenc still emitted one HORZ_B) |
The last row is the control: the SAME byte-318 divergence with the AB flag off, so the 512x512 defect is independent of this round's code.
EVIDENCE: $HOME/.cache/sb128c-gate-r9.log + $HOME/.cache/sb128c-r9/{ab18,ab45,abi45,ab55,noab}.obu | cargo test ab_partition_at_the_128_root --nocapture; cmp.sh per stream | 5/5 512x512 arms differ at byte 317..320 of frame 0, a frame with zero AB partitions
Film (1080p 10-bit AV1)
| stream | r9 stop |
|---|---|
~/.cache/reelc-head.obu |
OK, 48 frames decoded, 1920x792 |
-ss 900 2 s |
"an inter 16x16-level AB or 1:4 partition" (another lane) |
-ss 9000 2 s |
"an inter SB-level AB partition" (the 64 root, another lane) |
Unchanged vs r8 -- the 128-root AB was not the film's next wall at these offsets.
EVIDENCE: $HOME/.cache/sb128c-r9/{x900,x9000}.obu | decode_probe on head + two 2 s extracts | 48/48 frames on the head, two named refusals from OTHER lanes' 16x16/64-root AB gaps
Suite
NOT run this round (60-minute deadline spent on the divergence bisection). The new gate is RED, so the suite is 388 tests with 1 failure until the 512x512 128-rect defect is fixed.
Residue
- fix-now (next round): the 512x512
decode_block_128rectdivergence at (x~317, y=0) of aPARTITION_VERT128 root. Pinned streams above; the--enable-ab-partitions=0control isolates it from this round's work. Classrefusal-hides-a-defect: r8's gate only ran 192x256/384x320 VERT sources, which never reached it. - deferred: intra
tx_depth> 0 at the 128 root (r8 residue, unchanged).