forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

fi8-r1.report.md4.4 KiBHistoryRawDownload

lane-fi8 r1 -- filter intra on a sub-8 4x8/8x4 rect leaf

Branch lane-fi8 off main 8262b99, commit 2d5c425.

Root cause (two defects, one block shape)

  1. Wrong CDF row, not a missing symbol. read_intra_mode_sub8 (crates/ec-av1/src/decode.rs) is shared by decode_leaf_split4's BLOCK_4X4 leaves and decode_leaf_rect8's 4x8/8x4 leaves, and read use_filter_intra from cdfs.filter_intra[0] -- BLOCK_4X4's row -- unconditionally. av1_filter_intra_allowed_bsize (both sides <= 32) allows BLOCK_4X8/BLOCK_8X4, and libaom reads them with default_filter_intra_cdfs[BLOCK_4X8]=6743 / [BLOCK_8X4]=5893, so the symbol was READ (no symbol-consumption-gap) but out of the wrong interval: the same value, a divergent range, a desync a block or two later (class wrong-alphabet-same-value / cdf-row-held-constant). Fixed by adding cdf::FILTER_INTRA rows 8/9 (values generated by scripts/extract-filter-intra-cdfs.py), mapping them in filter_intra_size_class_rect, and passing the leaf's own class in.
  2. Stale refusal. "filter intra on a HORZ/VERT strip (this decoder predicts square-only)" -- predict_filter_intra has taken a true bwxbh since lane-rectsplit. filter_intra is now threaded into both whole-leaf reconstruct_rect calls and, under tx_depth=1, into each 4x4 transform unit's own reconstruct / read_plane (per-TU prediction off the previous unit's reconstruction). Refusal removed from refusal_inventory::REFUSALS.

Same-class sweep (tx_type row under filter intra, the 1a89ed9 defect)

grep "cdfs.txb(": the coded 16x8/8x16 (decode_leaf_rect) and 32x16/16x32 strips still passed the block's raw mode (always DC_PRED under filter intra) as the intra_ext_tx_cdf row. All three rect sites plus the new sub-8 one now go through fi_tx_row (fimode_to_intradir), which read_plane shares instead of its private const. 64x32/32x64/32x8 sites are past av1_filter_intra_allowed_bsize and were left alone.

Gate

a_real_aomenc_stream_with_filter_intra_on_a_sub8_rect_leaf_decodes_pixel_exact (crates/ec-av1/src/stream.rs): the sub8_rect_leaf recipe with --enable-filter-intra=1 and --enable-tx-size-search=1|0 as the FIRST occurrence of each flag (aomenc keeps the first). Three arms (8-bit txs=1, 8-bit txs=0, 10-bit txs=1), 80 attempts each, and an attempt only counts when the per-attempt filter_intra_rect_sub8_hits delta is nonzero AND all three planes match ffmpeg. No SKIP path except the tool-absence one (EC_AV1_REQUIRE_AOMENC=1 was set for every run below).

EVIDENCE: /home/user/.cache/fi8-suite.log | cargo test -p ec-av1 filter_intra -- --nocapture (worktree edith_codecs-fi8, commit 2d5c425) | new gate 3 pixel-exact runs per arm with 5 / 5 / 4 filter-intra 4x8/8x4 leaves and split_tx = 6 / 0 / 6; siblings green: a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact 37 matches / filter_intra_rect_hits delta 9, a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag ok, filter_intra_classes_carry_their_own_libaom_default_row ok (4x8/8x4 now claimed, not refused), intra::filter_intra_matches_the_libaom_predictor ok.

EVIDENCE: /home/user/.cache/fi8-suite.log | systemd-run --user --unit=fi8-suite cargo test -p ec-av1 -- --test-threads=4 | 322 passed, 0 failed, 30 ignored (647 s). (Run on the identical tree, before a cargo fmt that had to be reverted because main is not rustfmt-clean; re-run on 2d5c425 is recorded at the end of this file.)

EVIDENCE: hg-head.obu | release decode_probe (10-bit, his AV1 film head) | refusal MOVED: was "filter intra on a HORZ/VERT strip (this decoder predicts square-only)", now "a masked compound 64x64 inter block (compound_type is inferred, not coded, at this size)". Still refused, so no ffmpeg byte compare is owed yet.

Residue / dispositions

  • deferred: masked compound 64x64 inter block -- next refusal on hg-head.obu, a different lane's ceiling -- unblocked by porting inferred compound_type at 64x64.
  • known ceiling: the gate's split_tx > 0 assertion proves a depth-1 sub-8 rect transform fired in the same pixel-exact frame, not that the FILTER-INTRA leaf itself was the split one; a per-leaf (filter-intra AND depth-1) counter would tighten it. Both depths are exercised across arms.

EVIDENCE: /home/user/.cache/fi8-suite.log | systemd-run --user --unit=fi8-suite2 cargo test -p ec-av1 -- --test-threads=4, on committed 2d5c425 | 322 passed, 0 failed, 30 ignored (357.7 s).