forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

av1422n.report.md3.7 KiBHistoryRawDownload

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

  1. 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_INVALID is 255, and the out-of-bounds byte get_vartx_max_txsize reads from max_txsize_rect_lookup in the pinned Release oracle build is TX_4X8 — not the "adjacent vtx_tab[0] = TX_4X4" the m report claimed.
  2. The units KEEP a tx type: av1_get_tx_type (blockd.h) has no TX_4X4 early-out, so the m lane's inherit_tx_type = None special case is gone. The units derive the type from the block's luma type through reduce_inherited_chroma_tx_type into the TX_4X8 ext-tx set, exactly like every other rect unit on this path. (4, 8) resolves through the existing rect_inter_chroma_set row (8, 4) | (4, 8) => ChromaRect8x4; no table row was added, and the (4, 32) refusal arm below it stays.
  3. 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 through decode_block, which neither read_inter_rect_chroma nor 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 diff after the run shows ONLY crates/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/aomdec on the fixture (sha256 d3fa4beeb1309033e4a03f5ae5c431c8fa8386ba1ada088684710423c7938129) → 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's read_rect_chroma_unit arms, 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_strip chroma shape (2, 16).