Commits
Commits on
main2026-09-02
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B)Ahmet Kaan Gümüş · b7d13e4
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B) Two 8x8 inter leaves plus one true 16x8/8x16 inter strip per libaom decode_partition's own visit order; VERT_A/VERT_B take the has_tr_vert availability swap. The old "an inter 16x16-level AB or 1:4 partition" refusal is narrowed to the 1:4 pair, which still needs the sub-8 inter chroma-pair path. Gate a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact: real aomenc, 8- and 10-bit, 32 attempts each, every decode-order frame compared to ffmpeg, all four arms asserted separately, out-of-scope mismatches fail.
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit)Ahmet Kaan Gümüş · adb8dd9
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit) r3 parked the firing assert because no aomenc recipe found then produced a 64-axis 1:4 strip whose transform splits. An r4 recipe hunt on the merged tree (~70 aomenc runs: testsrc2 / life / mandelbrot / banded motion, 64x64..384x256, cq 20..58, min-partition-size 16 and 32) found one: 384x256, per-16-column band motion, cq 38 -> four 32x16 leaves out of four 64x16 strips, cq 32 -> one 16x32 leaf out of four 16x64 strips. Both streams stop LATER on another lane's live refusal, so the leaves are proved DECODED, not pixel-exact; the 16 banded attempts that run to the end are still compared frame by frame vs ffmpeg (0 mismatch, 8- and 10-bit) and min-partition-size moved 32 -> 16 so they exercise the 16-level path too. 10-bit fires nothing on this sweep (measured), so the firing assert is 8-bit only. Gate renamed to state what it asserts.
fix(av1): the compound 8x8 leaf never read its switchable interp_filter -- lost a symbol per leaf and stamped the [3,3] sentinel that made a neighbouring OBMC block PANICAhmet Kaan Gümüş · c6220cd
fix(av1): the compound 8x8 leaf never read its switchable interp_filter -- lost a symbol per leaf and stamped the [3,3] sentinel that made a neighbouring OBMC block PANIC libaom decodemv.c:1575 runs read_mb_interp_filter for every inter block, compound included, right after read_compound_type. decode_leaf8's compound arm skipped it entirely: it predicted both taps with a hard-coded Regular and recorded the [3, 3] "no filter" sentinel, so a SWITCHABLE-filter stream lost one symbol (two under dual filter) per compound 8x8 leaf, and a neighbouring OBMC block's neighbour_filter fed the sentinel to from_switchable_symbol, whose panic! aborted the process on a real aomenc dual-filter + OBMC stream (flagged by lane-r14 r3). Same shape lane-gmaffine r3 fixed for the single-ref leaf; this was the surviving sibling. neighbour_filter now returns Result and refuses by name instead of panicking (new refusal listed in refusal_inventory.rs) -- a decoder must never abort on stream-derived state. New gate is RED and #[ignore]d with its measurement: the compound leaf still desyncs past this read (bogus AB/1:4 refusal with the read, bogus below-8x8 without it), so the fix is necessary, not sufficient.
docs(sbrect10): handoff correction -- suite is RED, 3 gates FAILED, triage orderAhmet Kaan Gümüş · 8b2835aBrowse files
docs(sb128c): r1 suite state -- 273 ok, film-grain gate FAILED, untriagedAhmet Kaan Gümüş · 701520aBrowse files
docs(sbrect10): r2 report + handoff -- compound comp_list gm-fill root cause, gate fixture swap, probe gridAhmet Kaan Gümüş · 01a37e5Browse files
fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motionAhmet Kaan Gümüş · e2010ef
fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motion The compound extension pass (`combine_compound_candidates`, mvstack.rs) filled the `comp_list` slots left over after `ref_id`/`ref_diff` with `(0, 0)`. libaom fills them with that side's GLOBAL MOTION vector (`setup_ref_mv_list`, av1/common/mvref_common.c:729: `for (; comp_idx < MAX_MV_REF_CANDIDATES; ++comp_idx) comp_list[comp_idx][idx] = gm_mv_candidates[idx];`). The zero fill was only right under IDENTITY global motion, the module's original reduction; aomenc has --enable-global-motion on by default. A compound block with no usable neighbour pair (frame top row, an intra block to its left, an empty temporal field) then took a (0, 0) predictor where libaom took the frame's translation -- mv0 (-1,2) vs (128,-16) on the first such block, 32890/39907 wrong luma samples on decode-order frame 2 of a 10-bit cq58/cq61 stream, with the entropy stream still in sync (180/180 TU all_zero ranges identical to aomdec). Also this round: - the no-CFL uv_mode gate's source becomes the half-random fixture, so BOTH the 8-bit and the 10-bit arm carry >=1 intra-above-32x32 block per compared attempt (the flat half made aomenc code the right-hand superblocks skip at 8 bit: 0 hits). - EC_AV1_PREFILT_DUMP16 is indexed by decode-order picture (it overwrote .f0 every frame, so a mid-sequence divergence could not be read out). - setup_motion_field prints an EC_TPL_FIELD occupancy map under the existing EC_TRACE_TPL rung. Probe grid after the fix (192x128, 6 frames, half-random geq), pixel diffs vs ffmpeg: 8-bit cq52/58/61 = 0/0/0 (5/2/3 hits), 10-bit cq52/58/61 = 0/0/0 (6/7/7 hits); was 0/0/0 and 0/32890/39907.
fix(av1): a var-tx leaf overwrote the block's chroma deblock transform sizeAhmet Kaan Gümüş · d5f333b
fix(av1): a var-tx leaf overwrote the block's chroma deblock transform size libaom get_transform_size (av1_loopfilter.c:207) applies the var-tx split override only for plane == AOM_PLANE_Y; chroma always keeps the whole block's av1_get_max_uv_txsize. Our var-tx leaf loop routed through fill_lf_grid_rect, which re-derives the uv grids from the span it is given, so every leaf clobbered the block's chroma transform size with leaf_tx/2 and the deblocker filtered chroma edges libaom never filters. New fill_lf_grid_leaf_luma writes only the luma tx grids. Also: dump_stage now indexes its output per decode-order picture, like aomdec's own ec_dump16, so EC_AV1_POSTDEBLOCK_DUMP is comparable across a sequence instead of overwriting .f0 every frame. g35.obu (md5 9037f5b21db95d35e71f91f040fc33e1) ours vs aomdec, prefilter + post-deblock + final, decode order: f1 U398/V457, f2 U325/V412, f3 U336/V408 -> ALL THREE EXACT. Decode f4 chroma residue stays open (one 64x64 superblock, prefilter stage, see lanes/golomb-r6.handoff.md).
docs(kf900): r1 handoff -- root cause, 24-frame key-frame table, gate-recipe sweep stateAhmet Kaan Gümüş · 9753274Browse files
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base miAhmet Kaan Gümüş · 6a9c6eb
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base mi libaom builds chroma_above_mbmi/chroma_left_mbmi from mi[-((mi_row & ss_y) * mi_stride + (mi_col & ss_x))] (set_mi_offsets, av1/common/blockd.h) and get_intra_edge_filter_type (reconintra.c:974) reads THAT block's uv_mode. decode_leaf_rect4_16's chroma half asked smooth_uv_neighbour at the odd strip mi instead, so the neighbour it saw was the non-chroma-reference 4-row block directly above (uv_mode UV_DC_PRED) rather than the chroma block above the pair. On the ReelB -ss 1200 key frame that lost a SMOOTH neighbour: filt_type 0 instead of 1 turned av1_use_intra_edge_upsample on (blk_wh 12 <= 16) for an 8x4 H_PRED chroma strip at angle_delta -2 and moved 4 samples by 1. Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact now alternates in a chroma-carrying lavfi source (the gray one left both chroma planes constant, so every uv_mode was DC and this shape could not occur) and hard-asserts a new rect4_16_uv_pair_filt_hits counter -- pairs whose filt type differs between the two mi. 8-bit: 13 flips, 10-bit: 8, all pixel-exact; reverting the one-line fix reddens it at seed 43. HG 1-frame key-frame census: -ss 1200 14 -> 0 bytes, -ss 1800 248 -> 0, -ss 3600 1 -> 0, -ss 3300 44500 -> 39971; other segments unchanged.
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage listsAhmet Kaan Gümüş · 52a7f38
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage lists The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both NEVER_EXERCISED lists drop it. covers_both_depths also learns the 'for depth in [8usize, 10]' spelling: such a gate builds both streams from one recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only.
fix(av1): a skipped 8x8 intra leaf whose tx_depth split published its 8-px block side, not TX_4X4, to the next block's tx-size contextAhmet Kaan Gümüş · 8a47132
fix(av1): a skipped 8x8 intra leaf whose tx_depth split published its 8-px block side, not TX_4X4, to the next block's tx-size context decode_leaf8's tail called fill_lf_grid(leaf_mi, 2, 8, 0) with the literal block side. libaom calls set_txfm_ctxs(mbmi->tx_size, bw, bh, skip_txfm && is_inter_block(mbmi), xd) (decodemv.c) -- for an INTRA block that skip term is always 0, so a skipped 8x8 leaf whose tx_depth resolved to TX_4X4 still publishes 4 to get_tx_size_context (pred_common.h:342). Writing 8 made the 8x16 strip below such a leaf read tx_size_cat1 row 2 where libaom reads row 1 -- same alphabet, wrong CDF row (class wrong-alphabet-same-value), so the msac range diverged mid-frame with NO refusal. Witness: a 4K 10-bit AV1 mkv's key frame at -ss 900 (3840x1608 yuv420p10le), first bad luma sample row 186 col 1803, entropy divergence at mi (60,122) right after filter_intra_mode (both decoders rng=33750; ours then read tx_depth at ctx 2 where aomdec reads ctx 1). All 24 key frames of that file (0..6900 step 300) are now LUMA-EXACT vs ffmpeg (previously 6 of them differed by 7.5M-16.6M bytes). A chroma-only residual remains, first at chroma (102,688) pre-filter -- a separate open defect. Also: EC_IMODE/EC_ISTEP/EC_TXCTX/EC_LFGRID cross-decoder trace rungs mirroring the instrumented aomdec, a skip_split_tx counter print in decode_probe, and two aomenc gate arms (8/10-bit) that currently FAIL on their counter assert -- the gradients source never makes aomenc pick a skipped 8x8 leaf with a split transform (recipe sweep unfinished, see lanes/kf900-r1.handoff.md).
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma referenceAhmet Kaan Gümüş · 516d68b
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma reference ReelC's key frames decoded with no refusal and luma bit-exact but wrong chroma at eight of ten seek points. Two causes, both chroma-only: 1. libaom predict_and_reconstruct_intra_block predicts every plane and guards only the residual on skip_txfm, so a skipped UV_CFL_PRED block is still DC + alpha * luma-AC. Three skip arms (the 16x16-level 1:4 chroma pair and the two sub-8x8 4x4 groups) dropped the CfL term. 2. get_intra_edge_filter_type reads chroma_above_mbmi/chroma_left_mbmi -- the neighbours of the CHROMA REFERENCE mi. decode_rect4_16 passed the closing strip's own mi, whose above cell is the pair's first strip; the mi-exact UV map missed, the coarse fallback answered, and the filter type flipped av1_use_intra_edge_upsample (blk_wh 12 <= 16 for type 0) on directional chroma. All ten decodable ReelC key frames go to 0 differing samples (ss=3600 was 119652, ss=7200 52891). New gate: real aomenc --sb-size=128 --cpu-used=0 with 1:4 partitions and CfL, 256x256, 8- and 10-bit, both pixel-exact with directional_1to4_chroma_pairs=11 per arm.
feat(av1): decode a 128x128 PARTITION_NONE root on the INTER path (gate still red)Ahmet Kaan Gümüş · bc895cb
feat(av1): decode a 128x128 PARTITION_NONE root on the INTER path (gate still red) The inter tile loop now codes one whole 128x128 inter block instead of refusing it: four TX_64X64 luma units (max_txsize_rect_lookup[BLOCK_128X128]) whether the tx mode is SELECT or LARGEST, four TX_32X32 chroma units (av1_get_max_uv_txsize) read INSIDE the luma leaf loop one per 64x64 mu chunk (libaom decode_token_recon_block codes every plane of a chunk before the next), the chroma txb_skip offset-10 rows, cdef_idx replicated over the block's four quadrants, and OBMC's overlap capped at min(block, 64)/2 (reconinter.c:860/899) -- without that cap obmc_mask(64) panicked, which is the first thing ReelC hit. ReelC's 2 s head now stops at "a 128x128 superblock HORZ/VERT or AB partition" instead of "a 128x128 superblock PARTITION_NONE root on an inter frame". The new gate a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact is #[ignore]d and RED: the recipe fires four partition_w128 value=0 roots and the key frame decodes alone, but the 8-frame stream refuses at a 32x64 intra strip --enable-rect-partitions=0 forbids, i.e. our own desync. lanes/sb128c-r1.report.md has the triage and r2's ladder.
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exactAhmet Kaan Gümüş · 9864603
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exact
Three root causes, none where r2 pointed (the first TX_64X64 luma unit was
already identical range for range):
1. plane order -- libaom codes every plane of a 64x64 "mu" chunk before the
next chunk (Y,U,V per quadrant); we read all luma units then all chroma.
Below 128 a block is one chunk, so the new nchunk loop is byte-identical
at every size already handled.
2. chroma txb_skip_ctx offset -- get_txb_ctx adds 10, not 7, when the plane
block is LARGER than the transform; AV1's only such case is a 128 block's
64x64 uv plane with TX_32X32 units. Added TXB_SKIP_CHROMA_32_BIG{,_Q0,_Q1,_Q3}
from av1_default_txb_skip_cdfs[q][TX_32X32][10..13].
3. per-unit chroma context writes -- deferring them to end-of-block made the
second quadrant read ctx 10 where libaom reads 11.
Also reverts 13 gate recipes r2 had rewritten --min-partition-size=16 -> 32
(a gate-recipe confound that red-lined the two inherited 10-bit rect/AB gates).
Refusal "a 128x128 superblock partition other than SPLIT" replaced by the two
narrower ones that remain (128-root HORZ/VERT|AB, and a 128 NONE root on an
inter frame); gate a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact
un-ignored: 4/4 arms pixel-exact, part128_none_hits=31.
Gates by name 33 passed / 0 failed; full lib suite 371 passed / 0 failed / 32 ignored.Merge branch 'main' (18bf7dc) into lane-r14: intrarect + hgkf + sb128; cdf.rs byte-identical to main, no hand-resolution neededAhmet Kaan Gümüş · e79f672Browse files
merge: main 18bf7dc into lane-intra14 -- inter rect residual (lane-r14) + 128 superblocks (lane-sb128)Ahmet Kaan Gümüş · 9ffbff5
merge: main 18bf7dc into lane-intra14 -- inter rect residual (lane-r14) + 128 superblocks (lane-sb128) cdf.rs/cdf_state.rs/encode.rs/mvstack.rs merged byte-identical to main (md5 compare, incl. the NZ_MAP and FILTER_INTRA regions); decode.rs and refusal_inventory.rs carry only this lane's additions on top of main's text; the single conflict (stream.rs counter accessors) keeps both lanes' functions.
docs(r14): r3 report -- rect var-tx leaves, film firing evidence, parked gate assert with its measured reason; suite 367/0/31Ahmet Kaan Gümüş · 6b70a6a
docs(r14): r3 report -- rect var-tx leaves, film firing evidence, parked gate assert with its measured reason; suite 367/0/31
docs(mvtwin): r1 report -- suite 375/0, phase table, open multi-tile residueAhmet Kaan Gümüş · 37ccf55Browse files
merge: main 18bf7dc into lane-golomb (edge32 counters kept alongside main's edge_part)Ahmet Kaan Gümüş · 523f6b7Browse files
docs(golomb): r5 report -- compound MV stack missed libaom's tpl extension samples; restore the flat-band twin's #[ignore]Ahmet Kaan Gümüş · 5ad8820
docs(golomb): r5 report -- compound MV stack missed libaom's tpl extension samples; restore the flat-band twin's #[ignore] The `#[ignore]` on `a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact` (open r2 defect, documented in its own doc comment) was dropped by the r4 merge; restored verbatim from fd54bcf.
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axisAhmet Kaan Gümüş · 00d3d4e
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axis libaom `sub_tx_size_map` (common_data.c) keeps a 1:4 strip's sub-transform RECTANGULAR: [TX_64X16] == TX_32X16, [TX_16X64] == TX_16X32. r2 refused that case by name because `read_var_tx_size` was square-only and its leaves were `(row, col, tx_px)` triples. This round transcribes the whole table (with a 19-entry unit test against libaom's own order), generalises `read_var_tx_size` to `(tx_w, tx_h)` exactly as `read_tx_size_vartx` recurses -- rect ctx, `sub_tx_size_map` step, the TX_4X4 early return over `tx_h/4 x tx_w/4` cells -- and widens the leaf tuple to `(row, col, tw, th)`. Both inter var-tx leaf loops now read a rectangular leaf through `read_inter_plane_rect` with `LumaRect32x16Inter` (the 2-symbol EXT_TX_SET_DCT_IDTX inter row at `tx_size_sqr_up == TX_32X32`), its own `get_txb_ctx_general` neighbour context (a leaf is smaller than its block, so `txb_skip_ctx` is not the lone-TU 0), and rect neighbour/deblock spans. Measured on a 2160p 10-bit AV1 mkv: a 2 s mid-film segment decodes 14 rectangular 16x32 var-tx leaves and 16 16x64 strips, and both mid-film segments move off this wall onto lane-intrarect's. The chartered pixel-exact aomenc gate cannot yet hard-assert the arm: 60+ real aomenc runs show every stream that contains a superblock-level 1:4 partition also contains another lane's live refusal, which stops the decode first (measured reason written at the parked assert). The new gate still sweeps the recipe at both bit depths and hard-asserts that nothing mis-decodes silently.
feat(av1): intra-coded 1:4 rect strips on the inter block path decode through the key-frame readersAhmet Kaan Gümüş · 44c4697
feat(av1): intra-coded 1:4 rect strips on the inter block path decode through the key-frame readers
A 1:4 strip (32x8/8x32, 64x16/16x64) coded INTRA inside an inter frame was
refused by name because `decode_intra_rect_in_inter`'s (size_group, tx_cat)
table only carried the 2:1 diagonal. libaom's own tables break that diagonal
(size_group_lookup common_data.h:61, bsize_to_tx_size_depth_table blockd.h:1347),
so the rows are added explicitly and the strip is handed to the KEY-FRAME
readers that already prove this shape -- decode_block_rect4 (32 level) and
decode_block_rect64 (SB level) -- with the only inter-frame difference, the
mode-info read, switched by a thread-local: skip comes from decode_inter_block
and the luma mode off y_mode[size_group] (read_intra_block_mode_info,
decodemv.c:1189) instead of kf_y_mode[above][left].
His ReelB s=4500 extract now decodes four intra 16x64 strips and stops
one refusal later ("a split intra strip whose transform unit is 64x32").
The gate is written but #[ignore]d and the lift is therefore UNGATED: measured
over 40 gate attempts + ~150 recipe-sweep attempts, every aomenc stream that
carries an intra 1:4 strip also carries a non-skip INTER 2:1 rect strip / SB AB
partition / sub-8 inter partition, each refused by another lane's surface before
the frame completes; every recipe that decodes whole fires zero 1:4 intra
strips. Un-ignore once the inter rect-leaf lane lands. Details in
lanes/intra14-r1.report.md.docs(sb128b): r3 report -- the 128 NONE block is pixel-exact (mu-chunk plane order, offset-10 chroma txb_skip rows, per-unit chroma context), the 10-bit reds were a recipe defect, suite 371/0Ahmet Kaan Gümüş · d685b04Browse files
Merge branch 'main' (18bf7dc) into lane-sbrect10: sb128 128x128 superblocks + r14 1:4 partitionsAhmet Kaan Gümüş · d03e23eBrowse files
fix(av1): compound MV stack was missing libaom's three tpl_sample_pos extension samplesAhmet Kaan Gümüş · 123515a
fix(av1): compound MV stack was missing libaom's three tpl_sample_pos extension samples `find_mv_stack_compound` ported the temporal (`add_tpl_ref_mv`) row/col scan but dropped the three EXTENSION samples the single-ref twin already carries (mvref_common.c:590-600, `allow_extension` + `check_sb_border`). On the 192x80 cq59 frame-edge stream that cost one weight-2 candidate at mi(16,32) picture 2: our stack came out 2 deep where libaom's is 3, so the NEAR_NEARMV block never read its `drl_mode` symbol -- one bit short, and every later symbol in the tile read from the wrong place (a 32-level edge bit then resolved HORZ where libaom split, 130 wrong pixels). Range ladder after the fix is exact through the block: post-refs stack 3 == 3 with identical entries/weights, post-mv rng 39839 == libaom EC_MODE_MV 39839, next block entry 62618 == 62618, and all 48 of our EC_MODE block-entry ranges on the cq35 stream match aomdec's. Same hunk as lane-sb128 d6cca7d (independent lane, same root cause).
fix(av1): three MV-stack divergences from libaom setup_ref_mv_list, one of them a compound-vs-single twin driftAhmet Kaan Gümüş · 199abd2
fix(av1): three MV-stack divergences from libaom setup_ref_mv_list, one of them a compound-vs-single twin drift Phase-by-phase diff of both twins (find_mv_stack_with_sign_bias and find_mv_stack_compound) against libaom mvref_common.c; full 20-phase table in lanes/mvtwin-r1.report.md. 1. TWIN DRIFT (compound only): combine_compound_candidates filled a comp_list slot past both ref_id/ref_diff lists with (0, 0). libaom fills it with THAT SIDE's own gm_mv_candidates[idx] (mvref_common.c:718-719) -- the single-ref twin closed the identical gm-fallback gap on its mv_ref_list tail in r6. Wrong the moment a compound pair names a ROTZOOM/AFFINE reference and the scans leave the stack short. 2. BOTH twins: add_candidate/add_compound_candidate pushed unbounded and let a later sort+truncate pick the survivors. libaom drops the 9th distinct candidate AT INSERTION (*refmv_count < MAX_REF_MV_STACK_SIZE, mvref_common.c:100/128/388/425), keeping a different set. The dedup weight bump on a full stack is preserved. 3. BOTH twins: the row/col reach and the up/left availability gates were FRAME-relative. libaom's find_valid_row_offset/find_valid_col_offset clamp to tile->mi_row_start/mi_col_start (mvref_common.c:512-533). MiGrid::get already hid the out-of-tile cells, so the symptom was the scan weight (inc) and through it the stack order, inside every tile not starting at mi 0. Not defects, checked and recorded: the two bubble passes vs one stable sort (equivalent -- no post-boost entry can reach REF_CAT_LEVEL), the compound add_tpl_ref_mv double lookup (offset-independent, so both sides resolve together), and the has_tr grid probe (mask logic and "already decoded" coincide for square blocks, and libaom's is_last_vertical_rect refinement restores the rect case our probe already gets right). Gates: new a_real_aomenc_compound_mv_stack_gate, the first compound gate here that leaves --enable-ref-frame-mvs ON, with --auto-alt-ref=1 --lag-in-frames=25, a cq sweep and 30 seeds per arm; three arms (8-bit sb64 gm=0, 8-bit sb64 gm=1, 10-bit sb128 gm=1) decode every frame pixel-exact vs ffmpeg while hard-asserting comp_mode_hits AND tmv_hits advanced. Plus one deterministic unit test per defect. Found but NOT caused here: a 128x64 --tile-columns=1 stream mis-decodes frame 1 luma (ablation-proven pre-existing); kept as an #[ignore]d reproducer with the repro command in its doc comment.
docs(sbrect10): r1 handoff -- uv_mode CFL alphabet root cause, fix, gate stateAhmet Kaan Gümüş · a603d45Browse files
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128bAhmet Kaan Gümüş · f00f0e1
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128b Conflicts all in stream.rs and all resolved to MAIN's side, per the batch coordinator: main's `a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact` (one 128 seam gate, `--min-partition-size=16`, part128 symbol assert) replaces this lane's own conversion of the same gate, and lane-oddh's seam refusal stays deleted. cdf.rs merged clean -- the NZ_MAP and FILTER_INTRA regions are byte-identical to main's, this lane's only cdf.rs delta is the four TXB_SKIP_CHROMA_32_BIG tables.
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rowsAhmet Kaan Gümüş · 69826a6
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rows Three root causes behind lane-sb128b r2's "the first TX_64X64 luma unit reads AC libaom never wrote" residual; the entropy ladder (aomdec EC_TRACE_COEFF vs ours, 48 txb_skip symbols) is now identical range for range and all four gate arms decode pixel-exact. 1. decode.rs `decode_block`'s multi-TU arm read every luma unit and then every chroma unit. libaom's `decode_token_recon_block` loops 64x64 luma "mu" chunks (`mu_blocks_wide/high` = `mi_size_wide[BLOCK_64X64]`) and codes ALL PLANES of a chunk before the next chunk, so at 128 the order is Y,U,V per quadrant. Below 128 a block is one chunk and the order is unchanged. 2. The chroma `txb_skip_ctx` offset is 10, not 7, when the uv plane block is larger than the uv transform (`get_txb_ctx`) -- the 128 block's four TX_32X32 chroma units are AV1's only such case, and our chroma table only carried the offset-7 rows. Added `TXB_SKIP_CHROMA_32_BIG*` (token_cdfs.h `av1_default_txb_skip_cdfs[q][TX_32X32][10..13]`, all four q contexts), `txb_skip_chroma_32` is now six rows, and the caller adds 3 when `cn > 1`. 3. Each chroma unit's coefficient context was recorded only after the whole block, so the second quadrant read ctx 10 where libaom reads 11. Recorded per unit inside the loop as well (the post-`record_split_luma` replay stays: that call would otherwise clobber them whole-block). Refusal lifted with its gate: `a 128x128 PARTITION_NONE block (...)` deleted from decode.rs + refusal_inventory.rs, and `a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact` un-ignored -- 4/4 arms pixel-exact (384x384 seeds 42/43, 256x256 seed 44, 10-bit seed 45), part128_none_hits=31.
fix(av1): drop the golomb 16x16-frame-edge refusal the merge lifted (oddh codes that strip)Ahmet Kaan Gümüş · 6f3b424Browse files
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deletedAhmet Kaan Gümüş · c6f22ad
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deleted Clean auto-merge on 6699ce6 (no conflicts). The deletion of "a sequence using 128x128 superblocks on a frame larger than 64x64" (refusal + inventory line) is the lane's intended capability landing; its gate now asserts pixel equality.
Merge branch 'lane-r14' (a2e2e29): 16x16-level 1:4 partitions decode -- FILTER_INTRA rows 12/13 (BLOCK_16X4/4X16) and the rect base-context offsetsAhmet Kaan Gümüş · 3e334d6
Merge branch 'lane-r14' (a2e2e29): 16x16-level 1:4 partitions decode -- FILTER_INTRA rows 12/13 (BLOCK_16X4/4X16) and the rect base-context offsets Clean auto-merge on 7a47fc1 (no conflicts). cdf.rs change is append-only: FILTER_INTRA grows 12 -> 14 rows, the first 12 byte-identical.
docs(sb128): r4 report -- merge seam, 128-root gathered-partition fix, suite 366/0, film probe tableAhmet Kaan Gümüş · 9e08acaBrowse files
Merge main 7a47fc1 into lane-sb128b; restore the 13 gate recipes r2 blanket-rewrote to --min-partition-size=32Ahmet Kaan Gümüş · 4bf07db
Merge main 7a47fc1 into lane-sb128b; restore the 13 gate recipes r2 blanket-rewrote to --min-partition-size=32 Conflict in decode.rs's skipped-block arm resolved by taking main's (lane-hgkf r2) per-transform-unit prediction with its true_width guard and SKIP_SPLIT_TX_HITS counter, and broadening its condition from `tx_select && logical_tx < side` to `logical_tx < side`: at BLOCK_128X128 the transform is TX_64X64 with no tx-depth syntax at all, so the lane's 128 arm needs the same per-unit path. The counter keeps its narrow meaning (a READ split depth). TASK B root cause: the two inherited 10-bit rect/AB reds were an encoder recipe defect, not a decoder one -- r2 rewrote --min-partition-size=16 to 32 in 13 gate recipes (main's value at all 13 call sites), which removes the 16-level the AB/rect gates assert. Reverted all 13; the lane's own two 128 gates keep their deliberate 32. Both gates now pass.
docs(r14): r2 report -- suite 365 passed / 0 failed on the merged tipAhmet Kaan Gümüş · a531b22Browse files
docs(sb128b): r2 report -- ReelC's key frame bit-exact, the chroma TU loop, the 128 NONE residualAhmet Kaan Gümüş · e22a833Browse files
docs(golomb): r4 report -- merge with main + the 32x32 edge cross-product isolated to mi(16,32) picture 2Ahmet Kaan Gümüş · 7e48ae3Browse files
fix(av1): refuse the 128 NONE block by its MEASURED residual, and green the 64x72 sb128 gateAhmet Kaan Gümüş · df156df
fix(av1): refuse the 128 NONE block by its MEASURED residual, and green the 64x72 sb128 gate The chroma TU loop landed but the arm is still not pixel-exact (first luma TX_64X64 unit reads AC where libaom has DC only), so the product path refuses it again by name rather than emitting wrong pixels; the gate stays the reproducer. The 64x72 cpu-used=0 --sb-size=128 stream main used to refuse now decodes PIXEL-EXACT once its unrelated 1:4 sub-16 partitions are disabled.
fix(av1): the 128 root's half-out-of-frame partition symbol was read and thrown away -- split_or_horz/split_or_vert DECIDE the partition (spec 5.11.4), they are not a forced splitAhmet Kaan Gümüş · 9b30932
fix(av1): the 128 root's half-out-of-frame partition symbol was read and thrown away -- split_or_horz/split_or_vert DECIDE the partition (spec 5.11.4), they are not a forced split `read_sb128_root` read the gathered 2-symbol partition at a superblock with only rows or only cols in frame and unconditionally returned PARTITION_SPLIT, so a 128 root that actually codes HORZ/VERT at the frame edge was silently reconstructed as a split instead of reaching the refusal that names it. The 64 root already carries the fixed form (its comment records the 4K 10-bit mkv head that the same defect desynced); this mirrors it at 128. Witness: PART128_GATHERED_SYMBOLS / part128_gathered_symbols(), and the lane-oddh 64x72 gate (mi_rows=18 > 16, so its single 128 root takes exactly this path) now asserts it fired. That gate's recipe gains --min-partition-size=16 -- without it aomenc emits PARTITION_HORZ_4 below 16x16, another lane's gap, and the gate measured that instead of the 128 root. decode_probe prints the sequence's superblock size, bit depth and max frame size, which is the first fact a film-blocker triage needs.
Merge branch 'lane-hgkf': key-frame frame-edge partition bit was parsed and discarded (forced SPLIT) at 64/32/16; the ReelB head key frame decodes bit-exact at 10-bitAhmet Kaan Gümüş · a13d4a2
Merge branch 'lane-hgkf': key-frame frame-edge partition bit was parsed and discarded (forced SPLIT) at 64/32/16; the ReelB head key frame decodes bit-exact at 10-bit Merge resolution (main e6b8bf8): - 64/32-level key-frame edge readers: the lane's arms (identical fix to the unmerged lane-golomb one already on main, plus the EDGE_PART_HITS counter). - 16-level: main's (lane-oddh) body kept -- it decodes the strip and records above_mode/left_mode -- with the lane's `bump_edge_part` added. - Remaining conflicts were comment-only; main's wording kept. Also carries the lane's r2: a skipped intra block predicts per transform unit, not per block (SKIP_SPLIT_TX_HITS).
feat(av1): code a 128x128 block's chroma as four TX_32X32 units and predict every skipped block per transform unitAhmet Kaan Gümüş · 260d4d5
feat(av1): code a 128x128 block's chroma as four TX_32X32 units and predict every skipped block per transform unit av1_get_max_uv_txsize(BLOCK_128X128) = av1_get_adjusted_tx_size(TX_64X64) = TX_32X32, so the 64x64 uv plane block is four units per plane, each with its own gathered coefficient context (around_mi over the unit's 64-luma-pixel span), its own Reach (tu_reach on the luma quadrant) and its own neighbour write (Neighbours::record_mi_chroma). cn == 1 -- every block at 64 and below -- is byte-for-byte the whole-plane read this always did. The skip arm now predicts per transform unit for the same reason (libaom predicts inside the transform-block loop). Chroma refusal deleted; counter chroma_split_tx_hits.
Merge branch 'lane-intrarect': intra rect strips inside inter frames decode through the per-TU rect path; a whole-block rect transform unit reads txb_skip ctx 0Ahmet Kaan Gümüş · 6013567
Merge branch 'lane-intrarect': intra rect strips inside inter frames decode through the per-TU rect path; a whole-block rect transform unit reads txb_skip ctx 0 Merge resolution (main b51719f): - decode.rs rect-TU arm: lane's ctx-0 rule kept, main's `fi_tx_row` helper name. - decode_inter_block: main's MI-unit addressing wins (`rmi`/`cmi`, `whole_sb` delta_q/lf); the lane's `write_w != side` arm retargeted to MI units (`record_inter_rect_mi`, mi origin = `at`), and `decode_intra_rect_in_inter` now takes MI units too. - `reject_residual` keeps the lane's post-`is_inter` position AND main's `rect_inter_residual_supported` term -- the lane's condition (written before lane-inter4) refused every 16x8/8x16 inter leaf residual. - decode_intra_rect_in_inter wires main's angle deltas (lane-angleinter) and `use_filter_intra` (lane-fiinter, `filter_intra_size_class_rect`) in read order; palette fields None (screen content refused for this shape). - New named refusal: a split (nonzero tx_depth) transform on an intra HORZ/VERT strip in an inter frame -- main's 10-bit split_transform_intra_block gate reaches this arm with depth != 0 and the split rect-TU walk mis-decodes it (merge cross-product; depth-0 strips, what the lane proved, decode).
Merge branch 'main' into lane-sb128; the 128x128-superblock refusal main added (lane-oddh 866cbb1) is deleted and its gate flipped from "refused by name" to pixel-exactAhmet Kaan Gümüş · 64b4002
Merge branch 'main' into lane-sb128; the 128x128-superblock refusal main added (lane-oddh 866cbb1) is deleted and its gate flipped from "refused by name" to pixel-exact Merge seam: main b51719f refuses every sequence with use_128x128_superblock on a frame larger than 64x64, which is precisely the capability this lane implemented. Deleted the refusal from stream.rs and refusal_inventory.rs, and rewrote lane-oddh's gate on the same 64x72 --cpu-used=0 --sb-size=128 aomenc stream to decode all frames pixel-exact via decode_all_frames_vs_oracle. cdf.rs NZ_MAP_CTX_OFFSET_* and FILTER_INTRA rows are byte-identical to main (the only cdf.rs delta is this lane's added PARTITION_W128 constant).