Commits
Commits on
00c1b3ff2d80d84fef71bb6208110dedbbd95fc4Filtered to crates/ec-av1/src/wedge.rsClear filter2026-09-02
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocksAhmet Kaan Gümüş · da48c91
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocks wedge.rs carried only wedge_codebook_16_heqw and the one signflip row the three square sizes share, so every rectangular masked-compound or wedge-interintra block was refused by name. Ported the remaining two codebooks (wedge_codebook_16_hgtw for h>w, _hltw for h<w, reconinter.c 203-235) and the four distinct wedge_signflip_lookup rows (reconinter.c 160-183), keyed by the block's TRUE footprint. Masks are stored padded to a max(bw,bh)-square plane so the existing square prediction/blend buffers index them unchanged (a rect strip is predicted square and writes only write_w x write_h). Verification by ENUMERATION against a C harness LINKED AGAINST libaom (av1_init_wedge_masks + av1_get_contiguous_soft_mask): all 9 wedge-capable bsizes x 2 signs x 16 indices = 288 checksums, fixture lanes/wedge_libaom.expected.txt; its 96 square lines are byte-identical to the older independent transcription lanes/wedge_dump.expected.txt. New gate a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact: 16/16 attempts (8+10 bit, cq 50/55, 4 pans) pixel-exact vs ffmpeg and vs aomdec over every decode-order frame, 298 rect wedge blocks (16x32=108 hgtw, 32x16=190 hltw), 0 zero-wedge mismatches. Both "the wedge codebook is square-only" refusals dropped from refusal_inventory. The 1:4 gate's VERT_4 / split-tx-8x4 arms now assert their MEASURED blocker (the rect-residual-coding refusal) instead of a bare 0.