Commits
Commits on
cfa93c02e761bfaebd1cf8a25dfb113ccbaeba7a2026-09-02
Merge branch 'lane-interedge' (9920c36): inter 32-level HORZ/VERT second-strip frame-edge guardAhmet Kaan Gümüş · cfa93c0
Merge branch 'lane-interedge' (9920c36): inter 32-level HORZ/VERT second-strip frame-edge guard The second half of an inter HORZ/VERT at the true frame edge carries no symbols and no grid writes (libaom decode_partition's has_rows/has_cols guard); the oddh inter arm is un-ignored. Merge resolution keeps BOTH witness counters at the four sites -- lane-golomb's bump_edge32 before the guard and this lane's bump_inter_edge_strip in the else. Gates: inter_frame_edge_half_strip (1), odd (4), 32x32_frame_edge (1), refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-cdef' (2d76270): CDEF skip band for 8x8 inter leaves, cdef_find_dir paddingAhmet Kaan Gümüş · 2bca382
Merge branch 'lane-cdef' (2d76270): CDEF skip band for 8x8 inter leaves, cdef_find_dir padding - 8x8 inter leaves write their CDEF skip band; cdef_find_dir padding fixed; straddling-band gate added. - Merge resolution: the per-frame stage-dump index exists once, as this lane's dump_stage_idx helper (lane-sbrect10 had the same fix as a local atomic). Gates: cdef (3), straddling_band (1), refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-golomb' (173b793): frame-edge partition bits, luma-only deblock grid, cropped reference guardsAhmet Kaan Gümüş · 58dfef5
Merge branch 'lane-golomb' (173b793): frame-edge partition bits, luma-only deblock grid, cropped reference guards - frame-edge partition bits at the 32 level; edge32 gate. - chroma deblock grid keeps the block's own av1_get_max_uv_txsize -- the var-tx leaf write is LUMA only (libaom get_transform_size splits for AOM_PLANE_Y alone). Merge resolution: lane-r14's RECT (row,col,tw,th) leaves are kept and routed through this lane's fill_lf_grid_leaf_luma. - inter chroma tx_type set narrowing, cropped reference-size guard, loop-restoration crop, mc.rs:203 panic converted to a refusal (OBMC neighbour with no recorded switchable interp filter). The lane's second refusal string (palette on a 1:4 rect strip) is NOT carried: lane-kf900 lifted that shape, and it no longer exists in decode.rs. Gates: 32x32_frame_edge (1), refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1), vartx (1), 1to4 (6) -- all pass.
Merge branch 'lane-kf1200' (d44afba): second 10-bit key-frame fixture for the skipped-leaf transform gridAhmet Kaan Gümüş · edebe88
Merge branch 'lane-kf1200' (d44afba): second 10-bit key-frame fixture for the skipped-leaf transform grid Same decode_leaf8 root cause as lane-kf900 (kept once, kf900's comment); this lane contributes an independent 10-bit key-frame fixture (reelb_ss600_key_frame.obu, a partial 8-px bottom superblock row) that pins it pixel-exact including chroma, plus the frame-edge partition-bit gate and the trace_edge rung. Gates: ss600 (1), frame_edge_partition_bit (1), skipped_8x8_intra_leaves (1), refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect stripsAhmet Kaan Gümüş · b4cddf3
Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect strips - skipped 8x8 intra leaves publish their BLOCK side (not the resolved TX_4X4) to the next block's tx-size context; new 10-bit key-frame fixture reelb_kf900.obu gates it luma-exact with a >=15 hit assert. - smooth_uv_neighbour now snaps to the chroma REFERENCE mi (mi & !1) like libaom's set_mi_row_col, which subsumes main's per-call pair_mi fix at the 16x4/4x16 arm. Merge resolution: the RECT4_16_UV_PAIR_FILT_HITS witness would have gone tautologically 0 (both sides snap to the same mi), so it now compares the snapped answer against a new smooth_uv_neighbour_unsnapped -- it measures what the snap buys, and the 16-level 1:4 gate keeps its hard assert. - 10-bit palette literals, palette + use_intrabc on 1:4 / sub-16 rect strips. Gates: skipped_8x8_intra_leaves (1), palette (7), intrabc (1), 1to4 (6), smooth (3), refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-sqdrift' (7d498c0): square-only inter sequence with a 64x64 intra superblock gateAhmet Kaan Gümüş · 566a617
Merge branch 'lane-sqdrift' (7d498c0): square-only inter sequence with a 64x64 intra superblock gate Root cause (the no-CfL uv_mode alphabet on 64-axis blocks) landed on main via lane-sbrect10 (9f1f108); this lane confirmed it by ablation and contributes the square-only gate plus two trace rungs (EC_IIS intra-in-inter symbol trace, pre_rng on the partition_w64 TRACE line). Gates: a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact, a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet -- both pass.
fix(av1): inter 32x32-level HORZ/VERT decoded the frame-edge second strip libaom never codedAhmet Kaan Gümüş · ca58ed5
fix(av1): inter 32x32-level HORZ/VERT decoded the frame-edge second strip libaom never coded Merges lane-cdef 8c6065e (cdef_find_dir at a crop edge) and fixes the inter tile's 32-level PARTITION_HORZ/PARTITION_VERT, which decoded the second 32x16/16x32 strip unconditionally. libaom decode_partition guards it with has_rows/has_cols, so at a frame edge (height or width mod 16 == 8 -- both of the user's films) we read symbols the encoder never wrote: without the guard a 72x192 cq32 stream refuses outright and a 104x192 one decodes luma rows 127..191 of frame 5 wrong. Adds an inter_edge_strip counter per level (64/32/16) x axis and un-ignores lane-oddh r2's inter arm as a 5-size real-aomenc gate: 30 attempts luma-exact, edge hits [109,34,0,3,2,432], 0 refusals, control 192x128 zero hits.
Merge branch 'lane-sbrect10' (9f1f108): uv_mode reads the no-CfL alphabet when the block size excludes CfLAhmet Kaan Gümüş · b6adf58
Merge branch 'lane-sbrect10' (9f1f108): uv_mode reads the no-CfL alphabet when the block size excludes CfL A 64x64 intra block inside an inter frame read uv_mode off the 14-symbol CfL-allowed alphabet; libaom's is_cfl_allowed caps CfL at 32x32, so the value matched (DC_PRED) while the interval narrowing did not and the tile desynced from that block on (class wrong-alphabet-same-value). Gated at every uv_mode read site (read_intra_mode, read_intra_mode_rect, intra-in-inter) with the NOCFL_UV_MODE_HITS counter proving the shape fired, plus the compound MV stack's global-motion tail slots. The superblock rect-strip gate's 10-bit arm runs again. Gate: a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet Suite: 384 passed / 0 failed / 33 ignored.
docs(kf900): r5 suite result -- 385 passed / 0 failed / 33 ignoredAhmet Kaan Gümüş · 593f3e5Browse files
docs(kf900): r5 report -- rect strips never read use_intrabc, ladder proof, gate, 3 deferred residuesAhmet Kaan Gümüş · c542306Browse files
Merge branch 'lane-inter16ab' (af7de9f): 16x16-level inter AB partitionsAhmet Kaan Gümüş · 5e512e0
Merge branch 'lane-inter16ab' (af7de9f): 16x16-level inter AB partitions The inter path codes HORZ_A/HORZ_B/VERT_A/VERT_B at the 16x16 level through the inter_leaf8! macro (two 8x8 inter leaves plus one 16x8/8x16 strip), so the old refusal narrows to the 1:4 pair (HORZ_4/VERT_4), which still needs the sub-8 inter chroma-pair path. Merged alongside lane-r14's rectangular var-tx leaves; the only conflict was the decode_probe counter block, kept both. Gate: a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact Suite: 383 passed / 0 failed / 33 ignored.
fix(av1): rect intra strips never read use_intrabc -- every screen-content key frame desynced at its first symbolAhmet Kaan Gümüş · 0bdf223
fix(av1): rect intra strips never read use_intrabc -- every screen-content key frame desynced at its first symbol av1_allow_intrabc is a FRAME-level test (libaom decodemv.c:892, read_intra_frame_mode_info): on an intra frame whose header sets allow_intrabc, every intra block reads a use_intrabc symbol right after skip/cdef/delta_q and before mbmi->mode. There is no block-shape term, but read_intra_mode_rect -- the reader for every HORZ/VERT/1:4 rect strip -- never read it, so the arithmetic decoder desynced at the FIRST mode symbol of the first rect block of any --tune-content=screen key frame. Measured on an 8-bit 256x192 aomenc key frame (cq59, cpu-used 0, rect + 1:4 partitions, tune-content=screen): the decode reported OK and all 49152 luma samples differed from ffmpeg's. Cross-decoder range ladder: entry rng 32874 identical, our y-mode read gave 62696, the oracle 58628 -- exactly the value obtained by consuming one default intrabc symbol (rng 30694, normalised 61388) before the kf_y_mode read. The flag is now consumed in read_intra_mode_rect, taking allow_intrabc from the per-frame INTRABC_MI_GRID (Some only when the header set it), so no new plumbing. Reconstruction of an intrabc block at a rect shape is not ported, so a firing symbol refuses by name (inventory 45 -> 46). Gate: a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips (3 real-aomenc 8-bit arms) -- 147 rect-strip use_intrabc symbols read, 1 named refusal, 1 frame compared pixel-exact.
docs(cdef): r2 report -- merge resolutions, the chroma residue was loop restoration, gate un-ignoredAhmet Kaan Gümüş · 27fb0f6Browse files
test(av1): the frame-edge straddling-band gate is green -- un-ignored, with a straddling-CDEF-unit counter and multi-tile armsAhmet Kaan Gümüş · 827ee1d
test(av1): the frame-edge straddling-band gate is green -- un-ignored, with a straddling-CDEF-unit counter and multi-tile arms The 68x192 / 192x68 straddling band (a frame axis that is not a multiple of 8) now decodes pixel-exact on Y, U and V for all 5 frames, 8- and 10-bit: the luma half was this lane's r1 CDEF direction-search fix (libaom searches over cdef_prepare_fb's padded buffer, CDEF_VERY_LARGE past the MI-ROUNDED extent -- cdef.c:164-167 hsize/vsize and the frame_boundary[RIGHT] fill at cdef.c:249-256 -- not the last real sample at the crop), the chroma half was lane-golomb r8's crop-sized loop-restoration planes and reference-size test, merged in this round. * decode.rs: new CDEF_STRADDLE_UNITS counter -- a FILTERED 8x8 CDEF unit whose extent crosses the cropped frame edge, i.e. exactly the units for which clamping and CDEF_VERY_LARGE padding differ. apply_cdef takes the header's cropped size for it. * stream.rs: a_frame_edge_straddling_band_decodes_pixel_exact un-ignored, hard-asserts that counter grew (337 units over 14 compared attempts), and gains a --tile-columns=1 twin of each arm. All 32 multi-tile attempts refuse by name today (census in the doc comment) -- that half compares nothing yet.
Merge lane-golomb 173b793 into lane-cdefAhmet Kaan Gümüş · 6f7bda6
Merge lane-golomb 173b793 into lane-cdef Conflicts, both in decode.rs: * dump_stage's per-decode-order-frame index: both lanes added one. Kept this lane's shared dump_stage_idx() helper (dump_stage16 uses it too) and dropped lane-golomb's duplicate thread_local counter. * the var-tx leaf loop: took main's general (row, col, tw, th) rect leaves and lane-golomb's fill_lf_grid_leaf_luma writer, so a rectangular leaf still overrides LUMA tx dims only -- routing it through fill_lf_grid_rect would recompute the chroma dims from the leaf span (libaom get_transform_size applies the split override for AOM_PLANE_Y only). cdf.rs byte-identical across main, lane-golomb and this tree.
Merge main 727f29a (lane-r14, lane-kf1200, lane-reelckf) into lane-cdefAhmet Kaan Gümüş · 9c20172
Merge main 727f29a (lane-r14, lane-kf1200, lane-reelckf) into lane-cdef No conflicts; cdf.rs untouched by either side.
docs(kf900): r4 handoff -- shipped patch map, lifted refusals, gate recipe, measured facts, suite at 245 ok/0 failedAhmet Kaan Gümüş · 6e5d3f7Browse files
fix(av1): CDEF filtered 8x8 units libaom skips, and searched direction on clamped edge pixelsAhmet Kaan Gümüş · e7460a0
fix(av1): CDEF filtered 8x8 units libaom skips, and searched direction on clamped edge pixels decode_inter_block8 (the leaf path --min-partition-size=4 picks for a 16x16 group) wrote the mi map and the loop-filter grid at both exits but never the per-8x8 CDEF skip band, so an all-skip 8x8 group was judged by the PREVIOUS frame's flags and got filtered where libaom's is_8x8_block_skip (cdef.c:29-38) excludes it from av1_cdef_compute_sb_list's dlist: 3 luma samples |d|=1 on decode-order frames 3 and 4 of a 192x128 6-frame inter stream at cq 8 and cq 10, all in the frame's last 8x8 column. apply_cdef's direction search also clamped to the last real sample instead of reading the CDEF_VERY_LARGE padding libaom's cdef_prepare_fb writes past the mi-rounded extent (cdef.c:249-256), so every 8x8 straddling an odd-mi crop edge picked a different var, hence a different adjust_strength: a 68x192 stream goes 145 luma samples wrong on frame 1 to 0 on all five frames (its chroma residue is a separate, still-open defect). Gate: a_real_aomenc_stream_with_cdef_and_sub16_inter_leaves_decodes_pixel_exact, real aomenc with --min-partition-size=4 --enable-cdef=1, every decode-order frame on all three planes, hard-asserting both new counters (an 8x8 unit excluded by the all-skip rule, and the leaf that now writes the band). Also: dump_stage/dump_stage16 indexed per frame (they overwrote .f0 every frame, which is why filter-stage bisection kept reading the LAST frame).
feat(av1): palette reconstruction on 1:4 and sub-16 rect intra stripsAhmet Kaan Gümüş · 242e934
feat(av1): palette reconstruction on 1:4 and sub-16 rect intra strips
Lifts two refusals: "a 1:4 rect strip that actually uses a palette
(reconstruction is not ported at this shape)" and "a palette block on a
HORZ/VERT intra strip below 16x16 (reconstruction not ported)".
decode_block_rect4 (32x8/8x32) and decode_rect4_16 (16x4/4x16) passed
palette: None into read_intra_mode_rect, so they read palette_y_mode off
CDF row 0 and every colour off an EMPTY cache, then refused on use. They
now pass the block's real palette mode ctx and merged above/left colour
cache and reconstruct through set_palette_pred (whole block, per split
transform unit, and the pair's chroma), as decode_block_rect already did
one aspect ratio up; decode_leaf_rect (16x8/8x16) gets the same.
Three further defects found on the way:
* the chroma colour-index map is av1_get_plane_block_size (ss_size_lookup)
-- BLOCK_16X4 -> BLOCK_8X4, BLOCK_4X16 -> BLOCK_4X8 -- not bw/2 x bh/2,
so a 1:4 strip's chroma palette read half its symbols;
* av1_get_palette_cache's superblock-top-row exclusion (pred_common.c:76)
is keyed on the block's own pixel row, not the 16-px cell, so a strip
8 px into the cell dropped its real above neighbour
(palette_ctx_and_cache_mi / palette_uv_cache_mi);
* the coarse cell arrays alias all four strips of a HORZ_4 onto one entry,
so record_strip_palette writes the split axis only until the closing
strip -- stamping both handed strip i+1 strip i's colours as its left
(above) neighbour, same bit count, wrong pixels.
Gate: stream.rs::a_real_aomenc_rect_strip_palette_decodes_pixel_exact, 3
arms x {8,10} bit. Arm 0 reproduces the r3 pinned 10-bit testsrc2 256x192
cq59 cpu0 stream byte for byte (md5 e5f033d8fe34e4418d8cca3ac9d2b595),
which stopped on the first refusal at r3 and now decodes whole-frame
pixel-exact against ffmpeg on every plane of every decode-order frame.
Hard asserts a rect-strip palette counter delta and
out_of_scope_mismatch == 0; a named "unsupported" refusal is counted and
printed, never a pass.Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf codingAhmet Kaan Gümüş · fcf808d
Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf coding Var-tx split now recurses with a general sub_tx_size_map and codes leaves by (row, col, tx_w, tx_h) instead of a square-only shape, so a split transform on a 1:4 inter strip with a 64-px axis decodes instead of refusing. Refusal dropped from refusal_inventory.rs; gate_coverage drops enable-tx64 from the never-exercised set. Gate: real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal Suite: 382 passed / 0 failed / 33 ignored.
docs(kf1200): r3 report -- txfm-ctx root cause, range ladder, gates, census 17/24 exact and luma exact on all 24Ahmet Kaan Gümüş · 4ac57e0Browse files
fix(av1): a skipped 8x8 intra leaf recorded its block side, not its resolved transform, in the txfm contextAhmet Kaan Gümüş · 94961f4
fix(av1): a skipped 8x8 intra leaf recorded its block side, not its resolved transform, in the txfm context An intra block reads tx_depth whether or not it is skipped (libaom read_intra_frame_mode_info calls read_tx_size above the skip branch), and set_txfm_ctxs then records the RESOLVED transform -- only a skipped INTER block records its block size. Our 8x8 key-frame leaf fell through to a hardcoded fill_lf_grid(.., 8, ..) whenever it was skipped, so a leaf whose tx_depth resolved to TX_4X4 published 8. The next block's get_tx_size_context then read 8 >= 8 for its left/above term and picked tx_size_cdf row 2 where libaom reads row 1: same decoded value, different range, entropy desync from that symbol on. Cross-decoder range ladder on a 3840x1608 10-bit AV1 key frame (aomdec EC_TRACE/EC_TRACE_MODE_STEP vs our EC_AV1_TRACE): in sync to EC_ISTEP mi(400,46) name=tx_depth, where aomdec reads ctx=1 rng=42998 and we read ctx=2 rng=54191. That frame went 48771 -> 0 differing bytes vs ffmpeg's 10-bit decode. Gates: - new fixture gate pinning that 1-frame 3840x1608 10-bit key frame (24 skipped TX_4X4 leaves, hard-asserted). 80 aomenc recipes (4 shapes x 2 sources x cq 32..63 x cpu-used 0/3 x 8/10-bit, tx-size-search and filter-intra on) never produced one synthetically. - a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz gains three partial-bottom-row shapes (2/4/6 mi) and an --enable-tx-size-search=1 arm; the whole recipe ran with tx-size-search OFF, so no block in it could carry a nonzero tx_depth at all (class tool-disabled-in-every-gate).
docs(golomb): r9 report -- straddling-band defect bisected to CDEF, OBMC filter panic converted to a refusal, suite 379/0/35Ahmet Kaan Gümüş · 414fb70Browse files
docs(sqdrift): r2 report -- root cause confirmed by ablation, square-only gate, suite 379/0Ahmet Kaan Gümüş · 3891c64Browse files
docs(kf900): r3 report + handoff -- the silent 10-bit desync was the palette colour reader, key-frame census 24/24 bit-exact, suite still running at the capAhmet Kaan Gümüş · b80bbd7Browse files
fix(av1): an OBMC neighbour with no recorded switchable filter aborted the process instead of refusingAhmet Kaan Gümüş · a1a5ef8
fix(av1): an OBMC neighbour with no recorded switchable filter aborted the process instead of refusing `neighbour_filter` handed the `[3, 3]` "no filter recorded" sentinel straight to `from_switchable_symbol`, which panics on anything above 2 -- a crash on stream data, reproducible on a real 192x68 cq40 8-bit aomenc stream where an inter leaf below 8x8 desyncs upstream. It now returns `Result` and refuses by name; the desync itself belongs to lane-intersub8. Also: an `EC_AV1_DEBLOCK_TRACE_V` rung (per-edge len/level plus the vertical pass's real bounds), and `a_frame_edge_straddling_band_decodes_pixel_exact`, an ignored pinned test carrying the four 192x68 / 68x192 straddle arms. The +-1 straddling-band defect is bisected to CDEF this round: reconstruction and post-deblock both match the instrumented reference on the failing frame.
test(av1): pin the square-only 64x64 intra superblock inside an inter frameAhmet Kaan Gümüş · f0eee74
test(av1): pin the square-only 64x64 intra superblock inside an inter frame With rect partitions off the encoder can hand a whole 64x64 superblock of an inter frame to an intra block. That block's uv_mode must come off the 13-symbol no-CFL alphabet (is_cfl_allowed caps CFL at 32x32); reading the 14-symbol CFL one gave the same DC_PRED value with the wrong interval and desynced the tile from that block on -- silently, since the decoder then read a phantom refusal out of the diverged stream. Gate: real aomenc, 192x128 mandelbrot, two detail levels x two quantisers x two bit depths, 8 decode-order frames each compared Y/U/V against ffmpeg, hard-asserting a nonzero no-CFL uv_mode counter.
Merge branch 'lane-sbrect10' (9f1f108) into lane-sqdrift: 64-axis intra blocks read the no-CFL uv_mode alphabetAhmet Kaan Gümüş · 3cff0d9Browse files
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove itAhmet Kaan Gümüş · a8d25d4
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove it Root cause found on a 3840x1608 10-bit key frame that decoded with no refusal and 12 wrong U samples (Y and V exact, and already wrong before the loop filter, so reconstruction rather than deblock/CDEF/LR/grain): libaom builds chroma_above_mbmi / chroma_left_mbmi from mi[-((mi_row & ss_y) * stride + (mi_col & ss_x))] (set_mi_offsets, av1/common/blockd.h), i.e. from the PAIR's top-left luma mi, never the odd row/column of the closing strip. Reading the strip's own mi named a non-chroma-reference 4-row block whose uv_mode is UV_DC_PRED and so lost a SMOOTH neighbour: filt_type 0 instead of 1 turned av1_use_intra_edge_upsample on (blk_wh 12 <= 16) for a directional chroma strip and moved 4 samples by 1. Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact now alternates a CHROMA-CARRYING source (smooth cb/cr gradients) into the odd attempts -- the old gray source left both chroma planes constant, so every uv_mode was DC and the shape was unreachable -- and hard-asserts a new RECT4_16_UV_PAIR_FILT_HITS counter (pairs where the pair-base answer differs from the strip-mi answer). Measured on this merge: 13 flips at 8-bit, 8 at 10-bit; the lane reports the gate FAILS with the fix reverted. Also merged: a second tracked fixture crates/ec-av1/fixtures/reelb_ss300_key_frame.obu (3840x2160 10-bit key frame, one temporal unit) with gate the_reelb_ss300_key_frame_skipped_cfl_decodes_pixel_exact. MERGE NOTE -- the two sub-8x8 skip arms (decode_leaf_split4, decode_leaf_rect8) are the SAME arms lane-reelckf fixed on main, not additional ones: both lanes wrote the identical "a skipped chroma block still gets its CfL alpha" fix independently. The resolution keeps ONE fix and bumps BOTH lanes' counters (CHROMA_SKIP_CFL_HITS and SKIP_CFL_HITS) so neither lane's gate becomes vacuous. Likewise the pair-mi read exists once, with lane-kf1200's counter. Lane suite: 378 passed, 0 failed, 33 ignored.
docs(sqdrift): r1 handoff -- exact facts for the r2 symbol bisectionAhmet Kaan Gümüş · 4fb276cBrowse files
debug(av1): localise the square-only silent pixel drift to one 64x64 PARTITION_NONE intra-in-inter blockAhmet Kaan Gümüş · f359f69
debug(av1): localise the square-only silent pixel drift to one 64x64 PARTITION_NONE intra-in-inter block A 192x128 8-bit real-aomenc stream encoded with rect/AB/1:4 partitions, cdef, restoration, obmc, warp, order-hint and every compound tool disabled decodes frames 0-3 byte-exact (pre-filter AND post-filter) and then puts 3540 wrong luma samples (max |d| 6, chroma exact) into decode-order frame 4 -- confined to the single superblock the frame codes as PARTITION_NONE at 64x64, an intra block inside an inter frame. Frames 5-7 then drift via the adapted CDFs. Measurements: aomdec's own partition histogram shows the stream contains no rect, AB or 1:4 partition at all, so the "intra-coded 1:4 rect strip" refusal this stream stops at on main is read out of an already-diverged stream; the msac range before that block's partition symbol matches aomdec's exactly (33730), so the divergence is inside the block; and the block's five non-zero levels pushed through real libaom av1_inv_txfm2d_add_64x64_c reproduce our residual with 0 mismatches, exonerating the TX_64X64 dequant and inverse transform. Two env-gated rungs added, no decode behaviour changed: partition_w64's trace now carries the pre-read msac range (directly comparable to aomdec's EC_PART rng), and EC_IIS prints the square intra-in-inter y_mode read.
docs(kf1200): r2 handoff -- merge state, per-segment triage, gate state, next stepAhmet Kaan Gümüş · c6cb99fBrowse files
docs(kf1200): r2 report -- skipped-CfL root cause, gate, census 11/24, suite 378/0Ahmet Kaan Gümüş · 28382aaBrowse files
fix(av1): palette colours were read at 8 bits on every stream -- the raw literal widths, the delta range and the clamp are all sized by the sequence bit_depthAhmet Kaan Gümüş · 769ba67
fix(av1): palette colours were read at 8 bits on every stream -- the raw literal widths, the delta range and the clamp are all sized by the sequence bit_depth read_palette_colors_y/_uv (decodemv.c:478/:509) size every raw literal by bit_depth: the first colour is bit_depth bits, min_bits is bit_depth-3 (Y/U) and bit_depth-4 (V), range starts at 1<<bit_depth and the clamp/wrap bound is (1<<bit_depth)-1. Ours hardcoded 8, so a 10-bit palette block read two bits too few per transmitted colour and decoded the whole rest of the tile from the wrong bit position -- with no refusal. It was silent because raw literals are EQUIPROBABLE and at the ranges this content reaches an equiprobable read maps the msac range onto itself (62728 -> 31364 -> renormalised 62728), so a cross-decoder RANGE ladder stays bit-identical straight through the miscount and only the VALUE moves (compare-range-not-tell's blind spot). Pinned on a 256x192 10-bit cq59 stream whose first block is a 32x16 palette: aomdec's EC_PAL ladder and ours agreed on every range and disagreed on the first colour index, 0 vs 1. After the fix all 1024 EC_PAL lines of that block match aomdec line for line and the block grid matches aomdec's for the rest of the frame. Gate: a_real_aomenc_palette_stream_decodes_pixel_exact_at_8_and_10_bit -- the existing 8-bit palette recipe with the depth as the only variable, both arms hard-asserting palette_hits() moved and comparing all three planes against ffmpeg. Reverting the fix to a literal 8 makes the 10-bit arm fail on luma; the 8-bit arm is unaffected.
docs(golomb): r8 handoff + suite result (379 passed / 0 failed / 34 ignored)Ahmet Kaan Gümüş · 3875ac8Browse files
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirelyAhmet Kaan Gümüş · f4f89df
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirely Both sub-8x8 leaf paths (decode.rs:10554 4-leaf, :10916 2-leaf) passed `None` for the CfL argument in their `skip_txfm` arm, so a chroma block with `uv_mode == UV_CFL_PRED` and no residual reconstructed as flat DC. libaom's `av1_predict_intra_block_facade` (av1/common/reconintra.c:1719) calls `cfl_predict_block` whenever `mbmi->uv_mode == UV_CFL_PRED`; `skip_txfm` only drops the residual, never the alpha. Sweep of the class: every `reconstruct`/`reconstruct_rect` chroma call site was checked for a literal `None` in the cfl slot -- the rect skip arms (6015/6519/8078) already pass it, and the one remaining `None` (20284) sits behind a refusal that forces `uv_mode == DC_PRED`. Gate: a new pinned 1-frame 3840x1608 10-bit AV1 key frame fixture plus a test that hard-asserts `skip_cfl_hits > 0` (the shape fires exactly once in that frame; lane-reelckf r1 already burned 20 aomenc recipes hunting a skipped sub-8x8 CfL block and never produced one, so a synthetic gate is out of reach). Before the fix 463 bytes of that frame's chroma were wrong; after it the frame is pixel-exact against ffmpeg.
Merge main 8e9ba81 (lane-reelckf 55532c7) into lane-kf900Ahmet Kaan Gümüş · 87836ae
Merge main 8e9ba81 (lane-reelckf 55532c7) into lane-kf900 Both chroma-reference-mi fixes kept: reelckf passes pair_mi at the sub-8 call site, kf900 snaps mi_r/mi_c inside smooth_uv_neighbour -- idempotent together.
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference miAhmet Kaan Gümüş · cfef385
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference mi Two chroma defects found on real 1920x792 10-bit AV1 key frames, whose luma was already bit-exact at every seek point: 1. A SKIPPED intra block whose uv_mode is UV_CFL_PRED must still PREDICT with the chroma-from-luma term. libaom predict_and_reconstruct_intra_block calls av1_predict_intra_block_facade unconditionally and guards only the residual on mbmi->skip_txfm. Three skip arms dropped the CfL term entirely (decode_rect4_16's 16x16-level 1:4 chroma pair, decode_leaf_split4 and decode_leaf_rect8's 4x4 groups); one key frame had 499 wrong chroma samples from this alone. 2. The chroma intra-edge FILTER TYPE of a 1:4 pair comes from the CHROMA REFERENCE position (libaom get_intra_edge_filter_type -> chroma_above_mbmi / chroma_left_mbmi), not from the closing strip: at the closing strip the cell above is the pair's own first strip, so the mi-exact UV map missed and the coarse fallback answered, flipping av1_use_intra_edge_upsample and moving directional chroma by +-1..3. Gates: * a_real_aomenc_sb128_stream_whose_skipped_cfl_and_1to4_chroma_pairs_decode_pixel_exact -- real aomenc --sb-size=128 --cpu-used=0 --enable-cfl-intra=1 --enable-1to4-partitions=1, both bit depths, hard-asserts the directional 1:4 chroma pair counter per compared attempt. * a_real_film_key_frame_with_a_skipped_cfl_block_decodes_pixel_exact -- new tracked fixture crates/ec-av1/fixtures/reelc_kf2700.obu, a 1920x792 10-bit key frame truncated to one temporal unit; the only stream we have with a skipped UV_CFL_PRED block (48 aomenc recipes never produced one). The skipped-CfL counter is hard-asserted BEFORE the ffmpeg compare so an absent ffmpeg cannot make the gate vacuous. gate_coverage: covers_both_depths also recognises `for depth in [8usize, 10]`, which had classified such a gate as 10-bit only and hid --enable-cfl-intra=1 from the 8-bit never-exercised list; enable-cfl-intra leaves BOTH lists. decode_probe prints the two new counters. Lane suite: 379 passed, 0 failed, 33 ignored.
docs(lanes): worktree setup rules left uncommitted in main's tree by another laneAhmet Kaan Gümüş · 95b6784
docs(lanes): worktree setup rules left uncommitted in main's tree by another lane Byte-identical to the same addition on lane-reelckf 55532c7; committed separately so the merge does not overwrite an uncommitted working-tree edit.
docs(kf900): r2 report -- chroma edge-filter mi snap, the 108-recipe sweep and the fixture gate, 24-frame census 15/24 exact, suite 373/0Ahmet Kaan Gümüş · edfa89eBrowse files
docs(reelckf): r2 suite is green -- 379 passed, 0 failed, 33 ignored on the merged treeAhmet Kaan Gümüş · 47a4cceBrowse files
docs(sbrect10): r3 report -- three reds, two causes, suite 378/0Ahmet Kaan Gümüş · 0ecdfcb
docs(sbrect10): r3 report -- three reds, two causes, suite 378/0 film_grain was the worktree's missing top-level `fixtures` symlink (gitignored, per-worktree), not a temp-path race: that gate writes no temp file, and the two helpers that do already key their scratch dir on test-name + pid. The other two reds were one cause: r2's half-random lavfi source was written into the superblock-rect gate instead of the no-CFL uv_mode gate it was measured for. The CFL gate kept the flat source that codes the right half skip (8-bit arm: 0 intra blocks above 32x32) and the rect gate lost its 10-bit 64-axis residual TU. Sources swapped back; no assert weakened. Both gates now fire at both depths (15/43 no-CFL uv_mode reads, 2/2 64-axis residual TUs, zero out-of-scope mismatches), which also clears r2's comp_list global-motion tail fill of any regression suspicion.
docs(golomb): r8 report -- reference-height and LR crop fixes, three blockers measured on the straddle armsAhmet Kaan Gümüş · c0ba295Browse files
docs(inter16ab): r1 report -- suite 371 passed / 0 failed on the lane tipAhmet Kaan Gümüş · 2a91568Browse files
fix(av1): a same-size reference at a height that is not a multiple of 8 was refused, and loop restoration ran over the mi-rounded plane instead of the cropped oneAhmet Kaan Gümüş · 570d099
fix(av1): a same-size reference at a height that is not a multiple of 8 was refused, and loop restoration ran over the mi-rounded plane instead of the cropped one
Two true-size-vs-mi-rounded defects (class av1-truesize-lane), both found by
the (192,68)/(68,192) straddling arms lane-golomb r7 measured but could not add.
1. decode.rs `decode_inter_frame_tile_with_cdfs` compared the reference
picture's height against `true_height = mi_rows * 4` (the mi-rounded
size). A decoded `Picture` is cropped to the header's `fh`, so for any
height that is not a multiple of 8 (68 -> mi_rows 18 -> 72) this compared
68 against 72 and refused EVERY same-size reference by name ("a reference
picture whose height does not match this frame's own true size"). libaom
compares references on the CROPPED dimensions --
`av1_setup_scale_factors_for_frame(&sf, ref->y_crop_width,
ref->y_crop_height, cm->width, cm->height)` -- and calls a reference
scaled only when those differ. Height must still match: AV1 superres never
scales height. MEASURED: with `arms.push((192, 68, 5, false))` all eight cq
attempts refused before this commit; after it none do (they now stop at
another lane's inter SB-level AB partition, or reach a compare).
2. `apply_loop_restoration` passed each plane's `true_width`/`true_height`.
LR is the one post-decode filter that does NOT walk the mi grid: libaom
sizes every plane with `av1_get_upsampled_plane_size`
(av1/common/restoration.c:47), asserts it equals the buffer's crop width
(restoration.c:1106) and extends the border from that cropped edge
(restoration.c:1109) before filtering. Deblock and CDEF do walk the mi
grid, which is why this went unnoticed until a non-multiple-of-8 size.
NOT exercised by any gate here: every straddle gate recipe runs
`--enable-restoration=0`. Source-cited only.
edge32 gate stays green on the merged tree: 38 pixel-exact attempts, 64-level
edge bits [horz_or_vert=7 split=197] right-VERT=7, 2 named refusals, all eight
cq levels at both depths.docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32Ahmet Kaan Gümüş · 5677085
docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200Ahmet Kaan Gümüş · 28188f3
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200 Clean auto-merge; cdf.rs byte-identical to main's. The r1 pair-mi chroma edge-filter fix at decode.rs:7736 and its counter survive.