Commits
Commits on
e4259c9cd04a47558e32c7914fe5ef32ed7d35bf2026-09-02
fix(av1): an intra block in an INTER frame reads the no-CFL uv_mode alphabet above 32x32Ahmet Kaan Gümüş · e4259c9
fix(av1): an intra block in an INTER frame reads the no-CFL uv_mode alphabet above 32x32 libaom `read_intra_block_mode_info` calls `read_intra_mode_uv(ec_ctx, r, is_cfl_allowed(xd), bsize)`, and `is_cfl_allowed` (blockd.h) is `block_size_wide[bsize] <= 32 && block_size_high[bsize] <= 32`. `decode_inter_block`'s intra tail read the 14-symbol `uv_mode_cfl` CDF unconditionally, so every intra block 64 px or wider inside an inter frame decoded the same VALUE off a different interval and desynced the tile at that symbol (class wrong-alphabet-same-value). Every other `uv_mode` reader in this file already makes the split; this was the last one. Found by an aomdec-vs-ours msac RANGE ladder on a 256x256 --sb-size=128 8-frame aomenc stream: the 64x64 intra block at mi (0,32) of an inter frame entered at rng=61470 in both decoders and left at 35887 (ours) vs 54271 (aomdec), 4 bits over-read; after the fix the whole ladder tracks. Also: the partition_w64 trace line carries its pre-read range and the EC_MODE line carries is_inter/skip/side, both behind the existing env vars.
chore(av1): keep a foreign EC_AV1_TRACE rng field on the partition_w64 trace; r1 suite was 370/1 and the red was this worktree's missing fixtures symlinkAhmet Kaan Gümüş · e4febc9
chore(av1): keep a foreign EC_AV1_TRACE rng field on the partition_w64 trace; r1 suite was 370/1 and the red was this worktree's missing fixtures symlink The partition_w64 trace's rng= field appeared in this worktree at 08:15 after this lane's last commit and is not this lane's edit; it is inert unless EC_AV1_TRACE is set and helps r2's range ladder, so it is kept and disclosed here rather than reverted. a_real_aomenc_stream_with_film_grain_decodes_pixel_exact failed on Os NotFound reading fixtures/golden6-mismatch.obu -- the worktree was created without the shared fixtures symlink. Symlink created, test re-run ok.
docs(sb128c): r1 suite state -- 273 ok, film-grain gate FAILED, untriagedAhmet Kaan Gümüş · 701520aBrowse files
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.
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 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.
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
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).
Merge branch 'main' into lane-r14 (b51719f); drop the unreachable 16x16-level partition refusal; verifier notes folded into the r1/r2 reportsAhmet Kaan Gümüş · 1204733Browse files
fix(av1): drop the merge-seam 128x128-superblock blanket refusal main added, and turn its gate into a pixel-exact oneAhmet Kaan Gümüş · 480317d
fix(av1): drop the merge-seam 128x128-superblock blanket refusal main added, and turn its gate into a pixel-exact one ReelC's real 1920x792 key frame now decodes BIT-EXACT (cmp of the 16-bit dump against ffmpeg yuv420p10le) -- pre-merge it carried a +1 DC band over the whole bottom partial superblock row, which lane-oddh's odd-frame-size fixes remove.
feat(av1): rectangular INTER residual coding for strips with a 64-px axis (64x32/32x64/64x16/16x64)Ahmet Kaan Gümüş · bb65422
feat(av1): rectangular INTER residual coding for strips with a 64-px axis (64x32/32x64/64x16/16x64) A 64-length transform axis codes only its low 32 coefficients, so these units read the min(w,32) x min(h,32) corner and zero-extend it before the inverse transform -- the same truncation the INTRA superblock-strip path already does. av1_get_adjusted_tx_size picks the CDF set (TX_64X32 -> Luma64, TX_64X16 -> LumaRect32x16, chroma 32x8/8x32 -> Chroma16); tx_size_sqr_up is TX_64X64 so the ext-tx set is DCT_ONLY and no tx_type symbol is coded. A 32x32 corner reads through the square coefficient reader with rect_shape = Some((w, h)) because av1_nz_map_ctx_offset is indexed by the real un-adjusted shape. The SPLIT of a 1:4 strip with a 64-px axis stays refused by name: sub_tx_size_map[TX_64X16] is rectangular (TX_32X16), which the square var-tx recursion cannot code. Gate a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact now hard-asserts a coded 64-axis residual TU (8-bit: 4 pixel-exact attempts, 64x32=4, 32x64=4, 64-axis residual TUs=2). Mid-film ReelB segments at 50:00 and 75:00 pass the rectangular-residual wall.
docs(sb128): r3 handoff -- attribution table + compound tpl extension root causeAhmet Kaan Gümüş · 66045bcBrowse files
wip(sb128): r3 state -- compound tpl extension samples ported, inter refusal liftedAhmet Kaan Gümüş · d5ca61cBrowse files
fix(av1): a skipped intra block predicts per transform unit, not per blockAhmet Kaan Gümüş · 5b4ff4a
fix(av1): a skipped intra block predicts per transform unit, not per block An intra block's tx_depth is read whether or not the block is skipped (only an INTER skip forces the largest transform), and spec 7.11.2 predicts one transform unit at a time -- each unit's edges are the units already written left/above of it inside the same block. Our two skip branches (decode_block, decode_leaf8) predicted the whole block in one call, which for a 32x32 DC block with 8x8 units gives 123 where libaom gives 124 sixteen times. Mid-film 3840x1608 10-bit key frame: 2403 luma samples wrong (|delta| <= 2) -> 0, all three planes bit-exact; the earlier key frame stays bit-exact. Stage split done with new 16-bit dump rungs on both sides (the 8-bit ones truncate the defect away) and a new EC_PREDND oracle rung (EC_PRED sat after the highbd early return and printed nothing on a 10-bit stream). New counter SKIP_SPLIT_TX_HITS: a skipped block codes no coefficients, so nothing but the pixels witnesses this path. No in-repo gate landed -- see lanes/hgkf-r2.report.md for the swept recipes and the deferral.
docs(sb128b): suite state at r1 hand-off (unit still running, 2 inherited rect/AB reds)Ahmet Kaan Gümüş · b9d9ef2Browse files
docs(sb128b): r1 report -- ReelC's key frame is all-SPLIT at 128, the NONE luma path, and the chroma root causeAhmet Kaan Gümüş · b123ba7Browse files
feat(av1): decode the LUMA half of a 128x128 PARTITION_NONE root; refuse its chroma by nameAhmet Kaan Gümüş · 3d9370c
feat(av1): decode the LUMA half of a 128x128 PARTITION_NONE root; refuse its chroma by name lane-sb128b r1. `read_sb128_root` now returns the root partition instead of refusing everything but SPLIT, and the key-frame tile loop decodes a `PARTITION_NONE` 128 root as one 128x128 intra block (the other three visits of that superblock code nothing). Generalised, all measured against libaom rather than assumed: - `read_tx_size`: `max_txsize_rect_lookup[BLOCK_128X128]` is TX_64X64, so a 128 block reads BLOCK_64X64's own depth category and resolves against 64, never against its own side. - `decode_block`: the single-transform-unit arm was `!tx_select || logical_tx == side`; without `tx_select` `logical_tx` IS `side` at every size <= 64, so the first half was redundant -- and wrong at 128, where the block is four TX_64X64 units either way. The TU loop now passes the unit's own COEFFICIENT side (32 at TX_64X64), not its transform side. - `delta_q`/`delta_lf`: "this leaf IS the superblock" now compares against the sequence's superblock size instead of a hardcoded 64 (a NONE 128 root is the whole superblock). - the 128 block's single `cdef_idx` read is copied to all four 64x64 CDEF units, which is what libaom's shared `MB_MODE_INFO` does. RESIDUAL, and why the arm still refuses in the product path: `av1_get_max_uv_txsize` runs `av1_get_adjusted_tx_size` over the 64x64 uv plane block, so a 128 block's chroma is FOUR TX_32X32 units per plane, not one TX_64X64 unit -- `decode_block` codes one whole-plane chroma unit and desyncs there. New gate `a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact` (real aomenc --sb-size=128, no --max-partition-size, smooth gradients at cq 55/63, 384x384 + 256x256, 8- and 10-bit) is the reproducer, #[ignore]d until the chroma loop lands. refusal_inventory: the one "partition other than SPLIT" string splits into the HORZ/VERT/AB arm, the inter NONE arm, and the chroma residual above.
fix(av1): restore --min-partition-size=16 in 13 gate recipes r2 rewrote to 32Ahmet Kaan Gümüş · 6895614
fix(av1): restore --min-partition-size=16 in 13 gate recipes r2 rewrote to 32 r2 blanket-rewrote every `--min-partition-size=16` in stream.rs's aomenc recipes to 32 while writing its own 128 gate. The 7 rect/AB gates then encoded streams with no 16-level partition at all: they still decoded pixel-exact, but their firing counters read 0 and the "never fired" guard red-lined them. Attribution: green at main 0df090a, green at lane r1 5e5f113, green at the merge 63890cb, red at r2 8b4a36f.
Merge branch 'main' into lane-r14: cdf_state TxbSet arms from both sides (16x4 intra 1:4 + 16x8 inter rect)Ahmet Kaan Gümüş · 072c1e3Browse files
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
fix(av1): keep the MV stack's top-right grid probe (the has_top_right port red-lined 8 gates); docs(sb128): r2 reportAhmet Kaan Gümüş · 9852037
fix(av1): keep the MV stack's top-right grid probe (the has_top_right port red-lined 8 gates); docs(sb128): r2 report
docs(hgkf): r1 suite result -- 356 passed / 0 failed / 29 ignoredAhmet Kaan Gümüş · d0545faBrowse 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
docs(r14): r1 report -- 16-level 1:4 partition, paired chroma, split transformAhmet Kaan Gümüş · 0bdb3ccBrowse files
feat(av1): 128x128 superblock root in the INTER tile loop (visit order + prologue), sb-aware has_top_right; refusal kept for a residual one-frame mismatchAhmet Kaan Gümüş · b7c0e21
feat(av1): 128x128 superblock root in the INTER tile loop (visit order + prologue), sb-aware has_top_right; refusal kept for a residual one-frame mismatch The inter tile loop now walks libaom's quadrant visit order (sb_visit_order) and reads the 128 root once per superblock (read_lr over the whole 128x128, the 8-symbol partition_w128 with its edge gather) through a new shared read_sb128_root, extracted from the key-frame loop so both paths cannot drift. libaom has_top_right is now a single sb-aware port in mvstack (the warp-sample copy in decode.rs hardcoded a 64x64 superblock and now delegates to it), and the MV stack's top-right probe is gated on it instead of a bare grid probe. 8 of the 9 decode-order frames of the new gate stream are pixel-exact against the instrumented aomdec, hidden alt-ref included; frame 6 still differs by 996 luma bytes with the entropy stream in sync, and the same content at --sb-size=64 is exact (sb128_r2_control_sb64), so the residual is sb128-specific. The product-path refusal therefore STAYS and the gate ships #[ignore]d as its reproducer -- silent wrong pixels on his films are worse.
feat(av1): split transform (TX_8X4/TX_4X8, TX_4X4) on a 16-level 1:4 stripAhmet Kaan Gümüş · e1a08a1
feat(av1): split transform (TX_8X4/TX_4X8, TX_4X4) on a 16-level 1:4 strip The 4K 10-bit AV1 mkv's next stop after the partition itself: every 16x4/4x16 strip of its key frame reads tx_depth != 0. `decode_rect_split`'s own per-unit walk, inlined into `decode_rect4_16` because the chroma of this shape belongs to the strip's 4:2:0 PAIR, not to the strip (that function codes one chroma transform per block). depth 1 is the 2:1 rect unit TX_8X4/TX_4X8 (`sub_tx_size_map[TX_16X4]`, TxbSet::LumaRect4x8 -- the 8x8 class with 32 positions and the TX_4X4 tx_type row), depth 2 the square TX_4X4 through the ordinary `read_plane`; each unit predicts off the units before it and reads its own `txb_skip` context, and the block's lf grid now carries the UNIT's transform size. Gate: the same gate grew the `--enable-tx-size-search=1` half of its attempt window (the 32-level 1:4 gate's own shape). 8-bit: 15 compared attempts, 192 16x4 + 288 4x16 strips, 240 chroma pairs, 102 split-transform strips; 10-bit: 16 attempts, 148 + 280 strips, 214 pairs, 82 split strips. Every decode pixel-compared against ffmpeg, zero refusals. CfL stays `=0` on the recipe: no CfL hit counter exists, so `=1` would retire `enable-cfl-intra` from gate_coverage::NEVER_EXERCISED_* on a flag alone. Film check: the 4K 10-bit AV1 key frame at t=300s now walks past the 1:4 wall (104 16x4 + 172 4x16 strips at the 32 level alone) and stops at another lane's refusal, "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding".
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
docs(hgkf): sweep note -- the inter tile has the same three discarding edge readersAhmet Kaan Gümüş · 2bc1b36Browse files
docs(hgkf): r1 report -- edge partition bit root cause, gate, +-2 luma residueAhmet Kaan Gümüş · 2fa7d31Browse files
test(av1): gate the frame-edge partition bit at all three levels, both depthsAhmet Kaan Gümüş · bb77f08
test(av1): gate the frame-edge partition bit at all three levels, both depths Eight arms of real aomenc streams whose frame size is not a multiple of the block size, each decoded pixel-exact vs ffmpeg: 192x136 / 136x192 mandelbrot (136 = 2*64 + 8, so the 64-, 32- and 16-level halves all fall outside; the 32/16-level edge bit is answered HORZ/VERT 3..9 times per arm) and 192x80 / 80x192 flat band (the ledger-measured shape where aomenc answers the SUPERBLOCK edge bit with HORZ/VERT -- 3 per arm). The counter is read only on an attempt that decoded and is compared, and both "answered HORZ/VERT" slots must be nonzero, so the arms this round fixed cannot pass vacuously.
feat(av1): decode the 16x16-level 1:4 partition -- four 16x4/4x16 strips with paired 4:2:0 chromaAhmet Kaan Gümüş · b1f19e6
feat(av1): decode the 16x16-level 1:4 partition -- four 16x4/4x16 strips with paired 4:2:0 chroma
The wall 22/24 census segments hit on the key frame: PARTITION_HORZ_4 /
PARTITION_VERT_4 at BLOCK_16X16 (EXT_PARTITION_TYPES is the 10-symbol
alphabet at 16x16, so both are legal there) was refused by name before any
leaf was coded.
`decode_rect4_16` (decode.rs) decodes the four strips. New at this size is
CHROMA: a 4:2:0 block one mi tall (wide) is a chroma reference only on the
ODD mi row (column) -- strips 0 and 2 read no uv_mode/cfl_alpha/angle_delta_uv
and code no chroma at all, strips 1 and 3 carry the 8x4 (4x8) chroma of the
whole 16x8 (8x16) luma pair at the PAIR's origin (setup_pred_plane's
`mi_row -= 1`), with CfL averaging the pair's luma. `read_intra_mode_rect`
grew the `has_chroma` (`is_chroma_reference`) gate for that; every other
caller passes true.
Tables: TX_16X4 averages to the 8x8 entropy context with 64 positions, so the
new TxbSet::LumaRect16x4{,Set1} is Luma8's tables with the TX_4X4 tx_type row
(LumaRect4x8's, which differs only in its 32-position eob_pt); chroma is the
existing ChromaRect8x4. cdf::FILTER_INTRA gained the two rows
default_filter_intra_cdfs has for BLOCK_16X4/BLOCK_4X16 (10368/12770,
classes 12/13) -- both sides <= 32, so libaom writes use_filter_intra here.
palette_bsize_ctx_wh's dimension bound was wrong for this shape too:
av1_allow_palette's `sb_type >= BLOCK_8X8` is an ENUM INDEX test that
BLOCK_4X16/16X4 clear, so a 64-pixel 1:4 strip DOES read palette_y_mode
(ctx 0) in a screen-content frame -- "both sides >= 8" dropped that symbol.
Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact
(4-pixel bands, transposed per attempt, noise with an explicit seed,
--enable-1to4-partitions=1 --min-partition-size=4 --max-partition-size=16
--enable-filter-intra=1 --enable-cfl-intra=1 --cpu-used=0), 8 attempts at
each bit depth, every decode pixel-compared against ffmpeg, hit counters
hard-asserted. 8-bit: 104 16x4 + 152 4x16 strips, 128 chroma pairs;
10-bit: 96 + 152, 124 chroma pairs. Zero refusals, zero out of scope.
Still refused by name at this shape: a split transform
(sub_tx_size_map[TX_16X4] == TX_8X4 -- the per-unit walk cannot reuse
decode_rect_split, whose chroma is the strip's, not the pair's) and a strip
that actually uses a palette.fix(av1): the 16x16-level frame-edge partition bit was discarded tooAhmet Kaan Gümüş · b5166a1
fix(av1): the 16x16-level frame-edge partition bit was discarded too Same class as the 64/32-level fix in the previous commit (`parsed-then- discarded`): the 16-level edge reader gathered the bit and then always split into four 8x8 leaves. libaom answers that bit with PARTITION_HORZ (resp. VERT) when it is 0, i.e. a single 16x8 / 8x16 strip of which only the in-frame half is coded. On a 3840x1608 10-bit key frame this desynced from mi_row=400 mi_col=32 to the end of the tile. The strip decodes through `decode_leaf_rect` at the leaf's real mi origin (`sr * SUB_MI`, `sc * SUB_MI`) -- the first cut of this used the coarse index times two, which kept the entropy stream aligned but predicted the strip at mi(200,16) instead of mi(400,32) and reconstructed 34k samples wrong. Measured on the 3840x1608 10-bit mid-film key frame vs `ffmpeg -pix_fmt yuv420p10le`: 51768 mismatching samples (Y 35861 / U 8419 / V 7488) -> 2403, luma only, |delta| <= 2, chroma bit-exact. The pinned head key frame stays bit-exact.