Commits
Commits on
121056be7e1ea900988ffac0bc5f582ce22c19eb2026-09-02
Merge branch 'main' into lane-golombAhmet Kaan Gümüş · 121056b
Merge branch 'main' into lane-golomb decode.rs conflicts resolved by hand: golomb's 6 edge-bit counter sites and the 64/32-level second-half guards kept on top of main's rect TU loop (tx_w/tx_h) and inter4's MI-unit `decode_inter_block` signature (`sub16_to_mi`); the TU-origin clip re-applied per axis; main's fi32x8 CDF rows and oddh's 16-level edge strip taken whole; cdf.rs / cdf_state.rs = main's.
Merge branch 'lane-oddh': 128x128 superblocks refused by name (were silently decoded as 64x64 -- ReelC's actual wall); odd frame sizes proven pixel-exactAhmet Kaan Gümüş · 08930e6Browse files
Merge branch 'lane-band63': 1:4 gates cover cq 63; decode_probe dumps 16-bit planesAhmet Kaan Gümüş · 1701408Browse files
Merge branch 'lane-refstamp': forward key frames are never projected into the motion field (ref_stamp was spent); per-block motion-field cell clear; oracle rung 14 scriptedAhmet Kaan Gümüş · b949f11Browse files
Merge branch 'lane-inter4': inter superblock/32-level rect and 1:4 partition arms, 16x8/8x16 inter leaves with rectangular residual coding, motion field walks both reference slots (temporal MV candidates were wrong)Ahmet Kaan Gümüş · 78a388cBrowse files
Merge branch 'lane-angleinter': intra blocks in inter frames read and apply angle deltas (the 'encoder never writes one' claim was false)Ahmet Kaan Gümüş · 111517aBrowse files
Merge branch 'lane-modectx': every kf_y_mode context reader uses the mi-exact, tile-relative map; coarse band leak invariant assertedAhmet Kaan Gümüş · 31ae209
Merge branch 'lane-modectx': every kf_y_mode context reader uses the mi-exact, tile-relative map; coarse band leak invariant asserted Auto-merge, no conflicts (decode.rs and stream.rs auto-merged over main's lane-rectsplitx / lane-rect1d edits). Verified by hand after the merge: `modes_above_left` routes through `modes_above_left_mi`; `decode_leaf_split4` and `decode_leaf_rect8` are byte-identical to the lane's versions (their raw `above_mode[c]` / `left_mode[r]` reads are the coarse FALLBACK argument of the mi-exact lookup, not a context read). Gates on the merged tree, 13/13: two_tile_columns 20/20 pixel-exact with 0 tile-edge coarse leaks (the new MODE_TILE_EDGE_COARSE_LEAKS == 0 assert), two_tile_columns_and_an_inter_frame 20/20, decodes_through_decode_stream 20/20, multi_tile intra 6/6 (8-bit and 10-bit), multi_tile palette 6/6, multi_tile inter 10-bit 3/3, sub8 rect leaf / split / filter-intra, 32x32_level_1to4 16/16 both depths, and the merged chroma_is_a_4to1_or_sub8_rect 94/120.
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump exampleAhmet Kaan Gümüş · 8f81c4b
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump example Merge resolution: - decode.rs: the lane's `decode_leaf_rect` cat2 -> cat1 tx_size CDF-row fix is the SAME fix main already carries from lane-rectsplitx (a59645c..71c444a); main's hunk is kept and the lane's comment paragraph appended to it. The lane's rect_coeff_tu_hits / rect_class1_hits counters are kept at their original sites (`read_coeffs` for the 1D-class half, `read_coeffs_rect` past the `all_zero` early return), so the merged gate measures what the lane gated. - dump_yuv.rs / gate_coverage.rs / stream.rs / lanes/rect1d-r1.report.md taken from the lane unchanged (no overlap with main's rectsplitx edits). Gates on the merged tree, 16/16: a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform 12/12 pixel-exact, 0 named refusals, 6 matches 10-bit, 219 rect coefficient TUs (10 of a 1D tx class); coded_rect_strip_below_16x16, ab_partitions_below_16x16, refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets all pass.
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)Ahmet Kaan Gümüş · 7eb5f17
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)
lane-fiinter was rebased off lane-intrainter, so this ONE merge carries both
lanes' work: the per-TU luma split of an intra block inside an inter frame
(intrainter, commit 94492b4 on this branch) and the use_filter_intra read in
both intra-in-inter arms with its ENABLE_FILTER_INTRA_INTER thread-local.
Merging lane-intrainter e841b2a separately would have replayed the same content
from a different base; it is retired as subsumed, proven by its own gates
passing here (a_real_aomenc_{,10bit_}inter_sequence_with_a_split_transform_intra_block).
Merged clean; one call site rebound to the widened Reach::of_tu(tx_w, tx_h) from
the rectsplitx merge (decode.rs:16147).
Gates on the merged tree, all green: split_transform_intra_block (8+10-bit),
filter_intra_on_an_intra_block (8+10-bit), inter_sequence* , tx_select*,
8x8_leaf_split, refusal_inventory, gate_coverage, base_ctx_rect_offsets --
29 passed / 0 failed / 2 ignored.Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates liveAhmet Kaan Gümüş · 4bf9109
Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates live Merge resolution (main's fixes kept where they overlap): - decode_rect_split chroma map: superset of rectchroma's and rectsplitx's rows (32x8/8x32/16x4/4x16/8x4/4x8), one comment. - Reach::of_tu WIDENED to (tx_w, tx_h); square callers pass (tx, tx). The lane's inline per-unit Reach collapses onto it, and main's palette window inside the unit loop is kept (windowed by tx_w/tx_h). - One fimode->intradir helper: main's fi_tx_row; the lane's identical tx_type_mode_row is dropped and its call site rebound. - depth_to_tx_wh wins at every depth site, including decode_block_rect64's, replacing `bw.min(bh) >> (depth - 1)`; the "splits only once" refusal is gone. - refusal_inventory: the lane's list minus its stale AB-below-16x16 entry (main lifted that refusal in lane-ab16). Two merged gates asserted on counters that the lifted refusals fed, and both went vacuous/false in the cross-product (class counter-from-refused-stream): - chroma_is_a_4to1_or_sub8_rect counted attempts REFUSED at the depth-1 1:4 strip; it now counts depth-1 1:4 strips that DECODED and compared pixel-exact. - ab_partitions_below_16x16 required a vert-AB TX4 unit "reached" on tx-size-search attempts that used to stop at the strip refusal. Those attempts now decode to the end and compare pixel-exact, carrying zero such units -- the old nonzero count came from a still-desynced decode. The assert is now that every tx-size-search attempt compares exact; the lookup values stay pinned by of_tu_keeps_the_ordinary_answer_and_uses_the_block_row_under_vert_ab. Suite on the merged tree: 347 passed / 3 failed / 29 ignored, the 3 being exactly those two gates plus refusal_inventory; after the resolutions above all 3 pass (15/15 in the targeted rerun).
fix(av1): the 64x72 first-symbol desync is 128x128 superblocks, not odd height -- refuse them by name above 64x64, and gate the odd-size ladderAhmet Kaan Gümüş · abae99a
fix(av1): the 64x72 first-symbol desync is 128x128 superblocks, not odd height -- refuse them by name above 64x64, and gate the odd-size ladder r1 pinned a 64x72 aomenc KEY frame desyncing at its first symbol (aomdec 3, ours 9). Root cause, proved at the byte: the stream's sequence header codes use_128x128_superblock (libaom's av1_select_sb_size returns BLOCK_128X128 whenever speed is 0), and this decoder is 64x64-superblock only. aomdec reads a gathered 2-symbol BLOCK_128X128 partition (has_cols false at mi_cols=16, has_rows true at mi_rows=18); we read a 10-symbol BLOCK_64X64 one from the same byte. The uncompressed header parse was identical (49 bits, tile data at offset 20, hand-verified field by field against spec 5.9.2), and a from-spec python msac reproduces our 9 -- same bytes, same table, wrong alphabet. decode_stream now refuses such a sequence by name when the frame is larger than 64x64. Scoped, not blanket: a blanket refusal red-lined 29 previously pixel-exact gates, because at <=64x64 a 128x128 superblock decodes identically (forced SPLIT with no symbol, one child in frame). Gates: a_real_aomenc_128x128_superblock_stream_is_refused_by_name (real aomenc --sb-size=128, asserts the header really codes the bit before asserting the refusal); the tiny frame size sweep extended with 64x72/72x64/64x136/136x64/192x136, all 10/10 pixel-exact, floor 70 -> 120. Odd height/width at 64x64 superblocks is clean, including r1's frame-edge half-strip code on the key path. The INTER half-strip arms stay ungated: written as a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact and #[ignore]d with the measured reasons (rect off => encoder answers the forced edge symbol SPLIT, edge_rect_strip_hits=0 with both depths pixel-exact; rect on => three other lanes' refusals fire first).
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by defaultAhmet Kaan Gümüş · ac20fa3
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by default `read_intra_angle_info` writes angle_delta_y for any directional y_mode at bsize >= 8x8 in an inter frame exactly as in a key frame, and aomenc's --enable-angle-delta defaults to 1: the first gate attempt (seed 42) carries 4 such blocks. decode_inter_block now reads the delta and threads it through its split-transform per-TU and block-level luma predictions, and derives smooth_neighbor (get_intra_edge_filter_type) via Neighbours::modes_above_left instead of the hardcoded `false` that decided the intra edge filter's strength. New gate a_real_aomenc_inter_sequence_with_a_directional_intra_block _with_angle_delta_decodes_pixel_exact (8-bit + 10-bit) asserts the hit counter and compares every frame's Y/U/V vs ffmpeg. Flipping all 56 --enable-angle-delta=0 spellings to =1 leaves the 17 inter_sequence gates green (no hidden defect). decode_inter_block8's 8x8 leaf keeps its refusal -- 80 attempts never reached a directional 8x8 intra leaf -- reworded to a claim about this decoder's coverage rather than about the encoder.
fix(av1): frame-edge strips coded transform units outside the frameAhmet Kaan Gümüş · c850448
fix(av1): frame-edge strips coded transform units outside the frame libaom clips av1_foreach_transformed_block_in_plane to max_blocks_wide/high (mb_to_right_edge / mb_to_bottom_edge): a transform unit whose top-left sample falls outside mi_cols*4 x mi_rows*4 is never coded. decode_rect_split walked the full bh/tx rows, so a 64x32 bottom-edge HORZ strip on a 192x80 frame read coefficients for four phantom 16x16 units at y=80..95 and desynced the stream at the very next symbol -- the following superblock's gathered edge bit came out SPLIT where aomenc wrote HORZ, and its 64 columns reconstructed wrong (1081 Y pixels, rows 62..79). Ours now matches the oracle byte for byte on that stream. The r2 open defect is closed: its pin is un-ignored, and its flat-band assert moves from the 32-level counter (only ever satisfied by our own desync) to the new 64-level EDGE32_HITS slots 4..7 -- 96 edge bits, 48 bottom-HORZ and 48 right-VERT strips over 32 pixel-exact attempts. decode_block's square multi-TU loop takes the same guard by inspection (odd-mi geometry only). Suite: 339 passed / 0 failed / 31 ignored.
docs(refstamp): lane r1 report -- ref_stamp early return, copy_frame_mvs clear, rung 14, gate + mutationAhmet Kaan Gümüş · 327bcfcBrowse files
docs(modectx): r1 report -- premise disproved, availability fix + band granularity tableAhmet Kaan Gümüş · 874a2c0Browse files
docs(av1): lane-inter4 r4 report -- OBMC rect-leaf refusal lifted, size_group_wh fix, suite 326/0/31Ahmet Kaan Gümüş · 3ef59aaBrowse files
test(av1): the forward-keyframe temporal-MV gate closes the 10-bit enable-ref-frame-mvs / enable-fwd-kf coverage holesAhmet Kaan Gümüş · 5ef5194Browse files
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0)Ahmet Kaan Gümüş · 54f8c61
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0) 4x4/4x8/8x4/4x16/16x4 select size group 0 in libaom (common_data.h:60), so every sub-8 leaf was reading the wrong y_mode / interintra / interintra_mode CDF row. Pinned by a unit test enumerating all 22 BLOCK_SIZES_ALL entries. Also: decode_probe prints the rect_inter tu/txsplit/obmc_leaf counters (the sweep that measured the rect var-tx SPLIT and 10-bit rect TU paths as unexercised, now recorded in the gate comment), and cdf.rs gets EOB_PT_128_CHROMA_CLASS1_Q0's doc comment back after r3's LUMA block displaced it.
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default streamAhmet Kaan Gümüş · c98870c
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default stream libaom's read_intra_block_mode_info ends with read_filter_intra_mode_info on an inter frame exactly as it does on a key frame, but decode_inter_block's INTRA arm and decode_inter_block8's 8x8 INTRA arm went straight from the palette syntax to read_block_tx_size. aomenc enables filter intra by default and all 69 inter gate recipes pinned --enable-filter-intra=0, so nothing had ever exercised it (classes symbol-consumption-gap + tool-disabled-in-every-gate): his films' inter frames desynced at the first such block. Both arms now read use_filter_intra (filter_intra[filter_intra_size_class(side)], None at 64x64 per av1_filter_intra_allowed_bsize) plus filter_intra_mode, and thread the result into every luma prediction/coefficient call including lane-intrainter's per-TU split-tx path (read_plane's FIMODE_TO_INTRADIR row applies unchanged). The sequence bit rides a frame-constant thread-local next to tx_select rather than a 51st decode_inter_block parameter. Gate: a_real_aomenc_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact at 8 and 10 bit -- counter-asserted firing (11 / 8 blocks), every frame Y/U/V vs ffmpeg, no SKIP. Negative control (read disabled) fails it 40/40 attempts. Mutation sweep with --enable-filter-intra=1 in every inter recipe: 15 passed, 0 failed. Suite: 346 passed, 0 failed.
feat(av1): decode the frame-edge half-strip instead of refusing it (odd height/width)Ahmet Kaan Gümüş · a24f329
feat(av1): decode the frame-edge half-strip instead of refusing it (odd height/width) Cherry-picks lane-golomb eacd7fd (the gathered edge partition bit is the answer, 6 sites) and adds the arms it left refusing: the key-frame 16-level edge strip (one 16x8/8x16 through decode_leaf_rect) and the inter path's superblock-level and 16-level edge strips (one 64x32/32x64 resp. 16x8/8x16 inter block via write_w/write_h, square CDF corner-cut as at the 32-level rect arm). None of it is gated yet: a 64x72 key frame desyncs at its FIRST partition symbol (mi=(0,0) BLOCK_64X64 ctx=0: aomdec value=3, ours value=9; whole-frame 4583/4608 Y samples wrong while the 64x64 control is exact), so every stream that reaches these arms is already off the rails. That desync is r2's target; see lanes/oddh-r1.report.md for the ladder, the ruled-out header paths and the disposition of the width-192 defect the even-height control shares.
fix(av1): r2's 32-level edge recipe was pasted into the sub-16 rect-strip gateAhmet Kaan Gümüş · e9e9d92
fix(av1): r2's 32-level edge recipe was pasted into the sub-16 rect-strip gate
The --min-partition-size=32 + --tune-content=film override belonged to the new
edge32 gate; it landed in a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16
instead, so that gate's 64x64 mandelbrot frame could no longer contain a 16x8 leaf
and rect_leaf_coeff_hits went to 0 ("the gate proves nothing"). Bisect:
a762fff/909064f/eacd7fd green, fd54bcf red -- not fi8's cherry-pick.fix(av1): the 32x32-level frame-edge HORZ/VERT decoded its out-of-frame second halfAhmet Kaan Gümüş · 590bd64
fix(av1): the 32x32-level frame-edge HORZ/VERT decoded its out-of-frame second half Since r1 the gathered edge bit at the 32x32 level can name PARTITION_HORZ / PARTITION_VERT instead of always inferring SPLIT, so the second 32x16/16x32 half of such a block sits outside the frame. All four sites (intra and inter tile walks) decoded it unconditionally -> entropy desync plus an out-of-frame write. libaom decode_partition guards it with the same has_rows/has_cols that made the partition non-square. AB and 1:4 arms need no guard: at an edge ec_read_partition_impl can only yield HORZ/VERT/SPLIT. New EDGE32_HITS counter (edge bit value; bottom-edge HORZ / right-edge VERT strips decoded) and gate a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact: 192x80 and 80x192, testsrc2+noise, cq 35..61, 8-bit and 10-bit plus a 5-frame inter arm, 32 pixel-exact attempts with 178 edge-bit reads. Open, pinned as the #[ignore]d flat-band twin: when the edge bit does name HORZ (flat straddling band, edge32=[2,0,2,0]) the stream stays in sync but the two 32x16 strips reconstruct wrong pixels (rows 62..79, ~64 columns).
docs(rect1d): r1 report -- tx_size CDF category root cause, range-ladder evidence, gate deltasAhmet Kaan Gümüş · 4b7852dBrowse files
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-searchAhmet Kaan Gümüş · 5f35cce
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-search lane-rect1d r1. `decode_leaf_rect` read its `tx_depth` symbol from `cdfs.tx_size_cat2`, the table the 32-level strips (BLOCK_32X16/16X32) use. libaom's `bsize_to_tx_size_cat` reads `bsize_to_tx_size_depth_table` and subtracts one: BLOCK_16X8/8X16 (and the 1:4 BLOCK_16X4/4X16 this function also decodes) sit at depth 2, so they read `tx_size_cdf[1]` -- the same table a 16x16 square block reads. Both tables carry three symbols, so the wrong one still decodes a plausible depth, from the wrong probabilities: the range diverges silently at the first such leaf and every later symbol in the tile comes out of the wrong place. Found by copying lane-rectclass's 1D-tx-class gate onto this tree (main's `read_coeffs_rect` no longer refuses a 1D class, so the gate now DECODES those TUs and the merge exposed the mismatch). Bisection: pinned stream (sha256 5b3c8fc9... twice), coefficient range ladder ours vs instrumented aomdec matched for 105 transform units and diverged at the 106th; the mode ladder matched through `uv_mode` (rng 50640 both) and the next symbol was aomdec's `name=tx_depth val=0 ctx=2 cat=1 rng=60682` against our cat-2 read. Block: mi_row=24 mi_col=44, BLOCK_16X8, 10-bit seed 42. Gate: `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact` (copied from lane-rectclass ef7a476, minus its two now-nonexistent refusal strings and the vacuous `class1_refusals == 0` assert), plus a new `rect_class1_hits` counter so the gate pins the 1D class on a RECTANGULAR transform rather than settling for the square reader's own 1D types: 12/12 pixel-exact (6 of them 10-bit), 219 rect coefficient TUs, 10 of them a 1D tx class. `enable-flip-idtx` leaves the 10-bit coverage-hole list. `examples/dump_yuv.rs`: raw u16 plane dump -- both prefilt dumps narrow to `u8`, which is blind to exactly this defect at 10 bits.
fix(av1): the luma mode-context coarse fallback ignored tile availabilityAhmet Kaan Gümüş · 353ada1
fix(av1): the luma mode-context coarse fallback ignored tile availability `Neighbours::modes_above_left` -- the entry point of every remaining coarse `kf_y_mode`/`y_mode` neighbour reader (`decode_block_rect`, `decode_block_rect64`, `decode_block`) -- took the mi-exact override first but then fell back to the raw `above_mode`/`left_mode` band with no tile-relative availability, and `decode_leaf_split4` / `decode_leaf_rect8` read those bands directly. All five now go through `modes_above_left_mi`, which yields DC_PRED where libaom's `up_available`/`left_available` are false. Measured: zero behavioural change. The new `MODE_TILE_EDGE_COARSE_LEAKS` counter -- coarse fallbacks at a tile edge holding a non-DC mode -- is 0 across the 20 attempts of the two-tile-column gate, because `above_mode` is cleared per tile in `start_tile` and `left_mode` per superblock row in `start_row`. That gate now asserts it stays 0: it is the invariant the coarse fallback rests on, and dropping either reset is exactly how lane-mtfix's chroma `above_uv_mode` twin broke. The charter's pinned mi(24,8) divergence does not reproduce on this base -- lane-rectsplitx ec0b3b5 fixed it; at cq 32 that fixture now stops on a real 16x16 AB-partition refusal (aomdec EC_PART value=4). See lanes/modectx-r1.report.md.
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)Ahmet Kaan Gümüş · 7a9d28d
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on) Renumbered against lane-fi8: cdf::FILTER_INTRA now has 12 rows, [8]=4x8 6743, [9]=8x4 5893, [10]=32x8 18101, [11]=8x32 20229, and filter_intra_size_class_rect maps (32,8)->10 / (8,32)->11. Orientation-split counters + the 32-level 1:4 filter-intra gate come from the lane; filter_intra_classes_carry_their_own_libaom_default_row covers the whole domain.
chore(av1): script the oracle EC_TRACE_TPL + per-entry EC_STACK rungs (rung 14) so lane-interbis hand patches survive a rebuildAhmet Kaan Gümüş · 7896810Browse files
Merge branch 'lane-mcomp64': 64x64 compound blocks infer COMPOUND_DIFFWTD (no wedge alphabet at that size); diff-wtd-comp exercised at 10-bitAhmet Kaan Gümüş · 0462fae
Merge branch 'lane-mcomp64': 64x64 compound blocks infer COMPOUND_DIFFWTD (no wedge alphabet at that size); diff-wtd-comp exercised at 10-bit wedge_bsize becomes an Option, so a 64x64 masked-compound block infers COMPOUND_DIFFWTD instead of reading a wedge symbol libaom never wrote; refusal lifted with diffwtd_inferred_hits and 8-/10-bit gates. NEVER_ON_10BIT is now empty.
fix(av1): motion_field_projection returns 0 for a key/intra start frame, so a forward key frame no longer spends a ref_stamp slot; av1_copy_frame_mvs clear portedAhmet Kaan Gümüş · 718eaba
fix(av1): motion_field_projection returns 0 for a key/intra start frame, so a forward key frame no longer spends a ref_stamp slot; av1_copy_frame_mvs clear ported
feat(av1): OBMC on a 16x8/8x16 inter leaf -- refusal lifted, gated by an --enable-obmc=1 armAhmet Kaan Gümüş · 3c024bf
feat(av1): OBMC on a 16x8/8x16 inter leaf -- refusal lifted, gated by an --enable-obmc=1 arm The r3 refusal is disproved on this tree: an EC_OBMC rung in both our decoder and the oracle aomdec emits the same 9 neighbour invocations on the exact stream r3 measured, and all six EC_AV1_PREFILT_DUMP frames are byte-identical. Ship the blend, count it (OBMC_RECT_LEAF_HITS), and prove it with 16 extra --enable-obmc=1 attempts in the 16-level rect leaf gate (10 blends 8-bit / 4 blends 10-bit, 0 mismatches). Also re-measures r2's ignored 32x16/16x32 rect-residual gate: still red, and the blocker is now rectangular INTRA prediction (10 of 12 refusals), not this lane.
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect siteAhmet Kaan Gümüş · 2988169
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect site FILTER_INTRA gains rows [8]=4x8 (6743) and [9]=8x4 (5893); filter_intra_size_class_rect maps them; read_intra_mode_sub8 takes the leaf's own fi_class; the "filter intra on a HORZ/VERT strip" refusal is lifted with a 3-arm real-aomenc gate; fi_tx_row (fimode_to_intradir) now feeds every rect tx_type CDF row. Merged onto main's palette2 decode_leaf_rect8 rewrite -- main's per-TU Reach::of_tu call sites kept, the lane's Reach::of variant dropped.
Merge branch 'lane-band46': band-fixture seed-46 mismatch was per-transform-unit reach (third instance); seed 46 un-excluded from the chroma-rect gateAhmet Kaan Gümüş · dfba0f5
Merge branch 'lane-band46': band-fixture seed-46 mismatch was per-transform-unit reach (third instance); seed 46 un-excluded from the chroma-rect gate Main already carries the per-TU fix (lane-palette2 r12's Reach::of_tu), so the lane's own third implementation is dropped: kept main's of_tu and its three call sites, took the lane's SPLIT_TU_REACH_FIX_HITS counter rewired as a `tu_reach` wrapper that fires when the per-unit answer differs from the standalone-block one, its gate a_real_aomenc_band_stream_seed46_decodes_pixel_exact, and its gate_coverage tx-size-search delta. the_chroma_rect_gates_excluded_seed_46_ decodes_pixel_exact is un-ignored and EXCLUDED_SEEDS is now empty (both pass at 8- and 10-bit).
test(av1): the 1:4 gates code cq 63, and the chartered cq-63 "defect" is disprovenAhmet Kaan Gümüş · 1a1bbdb
test(av1): the 1:4 gates code cq 63, and the chartered cq-63 "defect" is disproven The lane-fi32x8 residue claimed the 8-px band fixture mismatches ffmpeg at --cq-level=63 even with filter intra off (8-bit seeds 58/59/64). It does not: 136 aomenc streams at cq 63 across four sweeps (both flag settings, both bit depths, attempts 0..23 of the fi32x8 family plus the 32x32 gate's own family) decode pixel-exact against ffmpeg. That control never arrived -- it spelled --enable-filter-intra=0 BEFORE the recipe's =1 and aomenc keeps the LAST occurrence, so the run measured the then-unfixed filter-intra path. So the quantiser is coded rather than argued about: the 32x32-level 1:4 gate's second cq is 63 instead of 45 (the cq-32 attempts keep their exact streams, so no attempt changes by accident), and the filter-intra 1:4 gate rotates [32,45,55,63]. Every existing hard assert stands; both gates pass at both depths with the 1:4 counters non-zero. decode_probe gains EC_PROBE_OUT16 (little-endian u16 planes) -- without it a 10-bit compare of this instrument silently diffs against a file it never wrote, which cost this round one false MISMATCH. lane-fi32x8 is merged in: the filter-intra-on half of the premise cannot be tested on main, which still refuses those strips. A real defect found on the way is bisected and reported, not shipped: an 8-bit cq-32 seed-48 stream (never coded before, not reachable from the shipped rotation) diverges at mi_row=24 mi_col=8 element `mode` -- same entry range 46952, aomdec val=12 rng=36608 vs ours val=7 rng=33744 = wrong y-mode CDF row for a 32x16 block whose above neighbour is a 32x8 1:4 strip. See lanes/band63-r1.report.md.
docs(intrainter): handoff suite line reflects the green resultAhmet Kaan Gümüş · 3bbde5dBrowse files
feat(av1): intra blocks in inter frames may split their luma transformAhmet Kaan Gümüş · 343ce49
feat(av1): intra blocks in inter frames may split their luma transform An intra block inside an inter frame reads the same intra `tx_depth` symbol a key-frame block does; when it resolves below the block side the block codes one intra prediction plus one coefficient set PER transform unit (decode_block's multi-TU branch), with the inter frame's CDF state and the inter-frame intra mode syntax. read_block_tx_size now hands that leaf list back through the existing var-tx slot, so the caller's per-TU luma loop, record_split_luma write-back and per-TU deblock edges are the ones already proven for inter var-tx blocks. The 8x8 leaf's TX_4X4 2x2 grid has no per-TU intra loop and keeps a named refusal. Gate: a_real_aomenc_inter_sequence_with_a_split_transform_intra_block_ decodes_pixel_exact (+ 10bit arm) -- mandelbrot with a hard cut at frame 4 under --kf-min-dist=1000, 8 frames, all planes vs ffmpeg.
docs(av1): lane-inter4 r3 report -- 16-level rect inter leaf, two shipped-code defects, OBMC residueAhmet Kaan Gümüş · e4c2a0bBrowse files
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocksAhmet Kaan Gümüş · b2eabdd
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocks Mode info, rectangular residual and prediction for the 16-level rect inter leaf, the shape lane-inter4 r2 measured as the real reach blocker (real motion content codes one before any 32-level 2:1 strip). - decode.rs: the 16x16-level PARTITION_HORZ/VERT arms (side=SUB keeps every CDF/prediction-buffer decision square, write_w/write_h carry the true footprint), `rect_inter_residual_supported` extended to 16x8/8x16, `rect_inter_luma_set`/`rect_inter_chroma_set` picking the TxbSet from the block's true shape, motion_mode/obmc CDF rows for BLOCK_8X16/BLOCK_16X8, and `size_group_wh` -- `y_mode` and `interintra` now read the block's own `size_group_lookup` row instead of its square `side`'s. - cdf_state.rs/cdf.rs: `TxbSet::LumaRect16x8Inter` (+`Set1`) -- LumaRect16x8's coefficient tables with the inter tx_type alphabet (EXT_TX_SET_DCT_IDTX reduced / EXT_TX_SET_ALL16 otherwise, both at the TX_8X8 CDF row); the missing `eob_pt_128_luma_class1` and `eob_pt_32_chroma_class1` tables, wired into the rect 16x8/8x16 luma and 8x4/4x8 chroma sets (a 1D V_DCT/H_DCT unit was reading the 2D eob alphabet) and into the per-frame counter reset. - decode.rs `obmc_blend`: libaom's real `max_neighbor_obmc` table (1 mi -> 0, 2 -> 1) instead of a row that was right only at 16 px and above. - REFUSALS: "an inter partition below 16x16 other than SPLIT" is gone; two named refusals take its place -- the 16-level AB/1:4 partitions, and OBMC on a 16x8/8x16 leaf (which mismatches the reference; see the report). Gate: a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact (8-bit: 3 attempts carrying a 16x8 leaf, 2 an 8x16, 2 coded rect inter TUs; 10-bit: 2/3 leaves, residual proven by the 8-bit arm), every frame Y/U/V vs ffmpeg, refusals counted and never SKIPped.
Merge branch 'lane-rectchroma': a 4:1 strip's first transform split is a 2:1 rect unit (was tiled square, silent wrong pixels); chroma coefficient tables for 32x8/8x32/8x4/4x8Ahmet Kaan Gümüş · 38d3bd3Browse files
fix(av1): the saved motion field stored a compound block's FIRST reference, not its secondAhmet Kaan Gümüş · 72cffab
fix(av1): the saved motion field stored a compound block's FIRST reference, not its second libaom `av1_copy_frame_mvs` walks BOTH of an inter block's reference slots and the LAST qualifying one wins, skipping a slot whose reference is on the other side (`av1_calculate_ref_frame_side`: OrderHint ahead of, or equal to, this frame's) or whose mv exceeds `REFMVS_LIMIT`. `build_motion_field` kept slot 0 unconditionally, so every compound block's 8x8 motion-field cell carried the wrong (mv, reference) pair; the next frame's `add_tpl_ref_mv` then projected it with the wrong reference distance and a NEARESTMV block took a wrong temporal candidate -- entropy exact, pixels wrong. Pinned instance (lane-inter4 r2's open "decodes fully, still mismatches"): 192x128 rect-partition inter stream, cq 34, decode-order frame 5, the 32x32 block at mi(24,40) -- ours mv0=(0,72) from mfmv0=(0,24) rfo=1, aomdec mv0=(0,-230) from mfmv0=(0,-230) rfo=3. 646 luma pixels, max delta 39. Gate: a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact (8-bit + 10-bit, every fully decoded attempt compared to ffmpeg, temporal-MV counter asserted >0: 66/67 blocks). Reverting the fix reddens it at frame 5. Class saved-field-keeps-slot-0: a per-frame summary of a multi-slot field must replay the reference's slot walk (order + skips), not keep slot 0. Instruments: EC_MODE_VAL/EC_STACK on our single-ref path, EC_TPL per add_tpl_ref_mv probe (oracle side patched to match).
Merge branch 'lane-ab32': 32x32-level AB partition gates at 8/10-bit; 10-bit fixture noise knobAhmet Kaan Gümüş · 8e2dc86Browse files
fix(av1): 32x8/8x32 strips never read use_filter_intraAhmet Kaan Gümüş · a5505ea
fix(av1): 32x8/8x32 strips never read use_filter_intra The 32x32-level 1:4 arms (PARTITION_HORZ_4/VERT_4, four 32x8 or 8x32 strips) are inside av1_filter_intra_allowed_bsize's "both sides <= 32" bound, so libaom writes a use_filter_intra flag on every DC_PRED one of them -- filter_intra_size_class_rect had no row for either shape, so the symbol was never read and the tile desynced silently from that strip on (class symbol-consumption-gap). --enable-filter-intra is ON by aomenc default and every gate reaching these strips spelled it =0, so nothing could see it. cdf::FILTER_INTRA grows rows 8/9 (18101 BLOCK_32X8, 20229 BLOCK_8X32, from scripts/extract-filter-intra-cdfs.py against the oracle source), the domain test moves both shapes off "refused before any leaf", and a new gate proves the flag fires on BOTH orientations inside pixel-exact attempts at 8 and 10 bit (hit counters split by orientation because the two rows are asymmetric).
fix(av1): the frame-edge partition bit was read and thrown awayAhmet Kaan Gümüş · 005ba23
fix(av1): the frame-edge partition bit was read and thrown away At a frame edge the partition symbol is a single gathered bit, and libaom's ec_read_partition_impl returns PARTITION_HORZ (resp. VERT) when it reads 0 -- only 1 is SPLIT. Every edge site in both tile paths read that bit and inferred SPLIT unconditionally (class parsed-then-discarded), desyncing the last superblock row of any frame whose height is not a multiple of 64. On the user's ReelB head (3840x1608, 10-bit) that surfaced two rows later as "a Golomb tail longer than this decoder reads" -- a refusal naming the symptom. libaom's own read_golomb caps at length > 20 exactly like ours; the cap is untouched. First divergent element: key frame, mi_row=400 mi_col=0, name=skip, aomdec rng=34753 vs ours 43258; aomdec codes that superblock as one BLOCK_64X32. New gate: the film's own key frame is pinned as a fixture and decodes pixel-exact against ffmpeg's 10-bit decode. Suite 337 passed / 0 failed.
docs(rectsplitx): r3 report -- split arm dropped smooth_neighbor_uv; 1:4 gate green, 2 sub16 gates un-ignoredAhmet Kaan Gümüş · 928732c
docs(rectsplitx): r3 report -- split arm dropped smooth_neighbor_uv; 1:4 gate green, 2 sub16 gates un-ignored
Merge branch 'lane-mtfix': chroma intra-edge filter type no longer read across a tile row boundary (coarse above_uv_mode fallback was unguarded); multi-tile intra gate asserts the suppression firedAhmet Kaan Gümüş · 2d10935Browse files
fix(av1): the chroma edge-filter neighbour is tile-relative on its coarse fallback tooAhmet Kaan Gümüş · db2b6f7
fix(av1): the chroma edge-filter neighbour is tile-relative on its coarse fallback too smooth_uv_neighbour's mi-exact uv_mode maps were tile-guarded but their coarse fallbacks (above_uv_mode/left_uv_mode) were not, and above_uv_mode is the one above_* band start_tile never clears. The first block of a tile ROW therefore filtered its chroma edge at the strength of the block above it in the TILE ABOVE, where libaom has above_mbmi == NULL: multi_tile_intra seed 46 frame 0, chroma x[120..127] y[32..37] (luma 240,64 -- the bottom-right tile's first block) off by 1..2 in U and V with luma bit-exact. Visible only since the palette2 merge, which lifted the refusal that used to swallow that seed. New uv_tile_edge_suppressed_hits() counts reads suppressed at a non-frame tile edge whose coarse slot held a non-DC mode; the 2x2-tile intra gate (the only arm with a tile row boundary) asserts it >= 1 and now decodes 6/6 pixel-exact.