edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-av1-422n — e24dc84b's (4, 32) chunk is corrected from eight TX_4X4 to
FOUR TX_4X8 units; the header refusal STAYS (the stream is not pixel-exact
and stops at the (2, 16) rect-pair chroma shape)
Outcome
read_inter_rect_chroma's invalid-ss-size arm now chunks the (4, 32) 4:2:2 chroma plane of an 8x32 luma block into FOUR TX_4X8 units per plane (a 1x4 grid: 4 wide, 8 tall each). The committed eight-TX_4X4 chunking was wrong: reviewer FAIL on e24dc84b.BLOCK_INVALIDis 255, and the out-of-bounds byteget_vartx_max_txsizereads frommax_txsize_rect_lookupin the pinned Release oracle build is TX_4X8 — not the "adjacentvtx_tab[0]= TX_4X4" the m report claimed.- The units KEEP a tx type:
av1_get_tx_type(blockd.h) has no TX_4X4 early-out, so the m lane'sinherit_tx_type = Nonespecial case is gone. The units derive the type from the block's luma type throughreduce_inherited_chroma_tx_typeinto the TX_4X8 ext-tx set, exactly like every other rect unit on this path.(4, 8)resolves through the existingrect_inter_chroma_setrow(8, 4) | (4, 8) => ChromaRect8x4; no table row was added, and the (4, 32) refusal arm below it stays. - The (32, 64) intra chroma edit made earlier this session was REVERTED per instruction before the chunk fix; the intra arm is byte-identical to e24dc84b. 4:2:0 paths untouched.
Counter (first real exercise of CHROMA422_CHUNK_HITS)
With the header refusal temporarily bypassed (probe only, restored
byte-identical — see below), the fixture walks 32 TX_4X8 chunk units
(CHROMA422_CHUNK_HITS, instrumented per unit) before the next stop. The
m report's count never printed because the probe panicked first; with the
corrected chunking the units demonstrably run.
Frontier (NOT fixed — another shape, another lane's arm)
decode_rect4_16_strip's closed chroma-shape set (decode.rs:14902) has no
(2, 16) row: a 4x16 luma pair's 4:2:2 chroma plane arrives there and hits
the unreachable!. The probe decodes frame 1 and stops early in frame 2,
after the 32 TX_4X8 units. The (32, 64) intra scratch panic did NOT
reproduce on this walk — this stop precedes it.
Pixels — delete condition unmet, refusal STAYS
- Frame 1 (keyframe): luma byte-exact vs
aomdec(oracle: 16 shown I422 frames); U/V diverge from chroma (23, 0) on — a pre-existing keyframe 4:2:2 chroma gap present at e24dc84b too (frame 1 decodes throughdecode_block, which neitherread_inter_rect_chromanor the intra arm touches). - Frames 2+ are not comparable (the frame-2 stop above).
- The 16-frame pixel-exact + counter delete condition is unmet, so the header refusal stands untouched.
Verification
cargo check -p ec-av1 --all-targets(target dir~/.cache/cargo-target-av1422n): 0 warnings.- 420 gate green under
EC_AV1_REQUIRE_AOMENC=1:a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_ pixel_exact: 1 passed, 0 failed. - Probe bypass reverted:
git diffafter the run shows ONLYcrates/ec-av1/src/decode.rs(the chunk fix + comment rewrite); the default 4:2:2 refusal fires as before (REFUSED: unsupported: ... 4:2:2 ...). - Oracle reference:
$HOME/.cache/aom-oracle/build/aomdecon the fixture (sha256d3fa4beeb1309033e4a03f5ae5c431c8fa8386ba1ada088684710423c7938129) → 16 shown frames. - Untouched: the (4, 32) refusal arm in
rect_inter_chroma_set, the 4:2:0 group-tail chroma SKIP arm, the k lane'sread_rect_chroma_unitarms,decode_probe.rs(byte-identical to e24dc84b).
State
- Commit on lane-av1-422n (no push): the corrected chunking + this report.
- Next stop named for the owning lane:
decode_rect4_16_stripchroma shape(2, 16).