Commits
Commits on
main2026-09-02
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.
fix(av1): a partition node the true frame edge cuts on BOTH axes is a forced SPLIT with no symbol, at the 16 level tooAhmet Kaan Gümüş · f3c311a
fix(av1): a partition node the true frame edge cuts on BOTH axes is a forced SPLIT with no symbol, at the 16 level too libaom `decode_partition` reads no partition symbol at all when `!has_rows && !has_cols` (`else if (!has_rows && !has_cols) partition = PARTITION_SPLIT;`) and then drops the out-of-frame children on its `if (mi_row >= mi_rows || mi_col >= mi_cols) return;` early return, so no neighbour or tx-grid write happens for them. The 128/64/32 levels already inferred that split; the 16 level refused by name on both the intra and the inter path, which made every frame whose width AND height are 8 mod 16 (200x72, 136x104, 264x136, 72x200, 104x136) undecodable -- the bottom-right 16x16 is cut on both axes there. The existing SPLIT leaf loop at that level already filters its four 8x8 children by `mr < mi_rows && mc < mi_cols`, i.e. libaom's own early return, so the lift is the forced value plus a per-level hit counter (EDGE_BOTH_CUT_HITS, [16,32,64,128]) proving the case fires. GATE a_real_aomenc_both_axes_cut_corner_block_decodes_pixel_exact: real aomenc, 5 both-cut frame sizes x 8/10-bit x cq 32/45, every frame compared against ffmpeg: 20/20 attempts pixel-exact, out_of_scope_mismatch=0, both-cut hits [16,32,64,128]=[20,20,12,0], 0 refusals. The inter half of the same sweep is a second, #[ignore]d gate: measured, its corner block decodes exactly (200x72 luma diff bbox rows 64..=71 cols 15..=186, corner cols 192..=199 clean) but the bottom 8-row one-axis frame-edge BAND of an inter frame is wrong, and the control 192x72 -- zero both-cut nodes, hits [0,0,0,0] -- mismatches identically, so that band defect is lane-oddh's inter half-strip arm, not this lift.
docs(inter16ab): r4 report -- 8x4 inter leaf tables, side-keyed CDF row sweep, frame-aware 1:4 recipe measurement, rect wedge is the blockerAhmet Kaan Gümüş · 90877dcBrowse files
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.
feat(av1): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refusedAhmet Kaan Gümüş · 60b3ba2
feat(av1): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refused
decode_inter_sub8_rect2 codes both rectangular sub-8x8 inter shapes: per-sub-block mode info
in decodemv.c order (single ref only -- is_comp_ref_allowed(BLOCK_8X4) false, so no skip_mode
and no comp_mode; no interintra/motion_mode/OBMC/warp below min dim 8), one txfm_partition
symbol at max TX_8X4/TX_4X8 through r14's general read_var_tx_size, chroma coded once on the
chroma-reference (second) sub-block as one TX_4X4 per plane with sub8x8 prediction from BOTH
sub-blocks' mvs (reconinter.c build_inter_predictors_sub8x8), and per-mi neighbour/mv-grid
writes over the true w_mi x h_mi span.
New luma coefficient sets TxbSet::LumaRect8x4Inter{,Set1}: LumaRect4x8's tables (8x8
coefficient class, 32-position eob_pt) with the inter TX_4X4 tx_type row (EXT_TX_SET_ALL16).
These also close the panic risk lane-inter16ab r3 noted, where a TX_16X4 -> TX_8X4 var-tx
split reached rect_inter_luma_set's unreachable!().
Gate: a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact now runs 16
attempts per bit depth -- 0..7 with --enable-rect-partitions=0 (SPLIT, unchanged) and 8..15
with =1 (VERT) -- and asserts a new rect_fired >= 2 alongside fired >= 2 and
out_of_scope_mismatch == 0, comparing every decode-order frame Y/U/V at 8 and 10 bit.
The HORZ (two BLOCK_8X4) arm is refused by name rather than shipped: a 28-arm sweep on a
transposed-structure source mismatches on 4 arms at cq 12/14/16/32, outside the known CDEF
band. Range ladder on one of them localizes the divergence to the mode info of the 16x8 inter
block immediately to the group's right -- matching through its EC_MODE entry, differing by its
first coefficient TU -- i.e. a per-row neighbour band the group leaves behind. Details in
lanes/intersub8-r3.handoff.md.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
Merge lane-golomb 173b793 into lane-sb128c: per-leaf lf grid write is luma-only (fill_lf_grid_leaf_luma), kept with the skip-inter internal-edge suppression and the (tw,th) leaf tupleAhmet Kaan Gümüş · 3191098Browse 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 main 727f29a into lane-sb128c: general (row,col,tw,th) var-tx leaves with the 128-root mu-chunk chroma interleave and the skip-inter lf suppression keptAhmet Kaan Gümüş · 5810c77Browse files
test(av1): the intra-1:4-in-inter gate's r2 blocker was our own desync, and its real blocker is the recipeAhmet Kaan Gümüş · c8d21c1
test(av1): the intra-1:4-in-inter gate's r2 blocker was our own desync, and its real blocker is the recipe Merging lane-sqdrift removed the inter-frame pixel defect that blocked this gate at r2: all 40 mandelbrot attempts now decode pixel-exact (0 differing samples over 40 streams x 8 frames x 3 planes), where r2 had 3 of 40 decoding at all and every one mismatching. The r2 hit counter (seed 52: 64x16=4 16x64=3) came from our desynced decode of a mismatching stream -- on the correct decode it is 0/0/0/0. Re-measured the recipe space instead (per-attempt counter probe added to the gate): the mandelbrot zoom yields intra blocks in inter frames but ZERO 1:4 partitions of any kind at min-partition-size 32 and 16, cpu 0..4, sb-size 64, with every intra tool enabled; gradients yields 1:4 partitions but aomenc codes them all inter; blending the two loses the 1:4 partitions. Gate recipe switched to gradients (the only arm reaching a 1:4 partition), both arms stay ignored on that MEASURED recipe gap, and --enable-cfl-intra/smooth/paeth/directional/ angle-delta are now all 1 in it.
fix(av1): a split 16x4/4x16 INTER strip's 8x4 var-tx leaf had no luma coefficient set (sub_tx_size_map[TX_16X4] = TX_8X4), reachable only after the general read_var_tx_size merge; r2 report -- gate fires at 10-bit and is RED on pixelsAhmet Kaan Gümüş · e73ab13
fix(av1): a split 16x4/4x16 INTER strip's 8x4 var-tx leaf had no luma coefficient set (sub_tx_size_map[TX_16X4] = TX_8X4), reachable only after the general read_var_tx_size merge; r2 report -- gate fires at 10-bit and is RED on pixels
fix(av1): gate the mv-stack top-right probe on has_top_right; 128-root motion_mode/obmc CDF rows; TX_64X64 coded corner on the intra-in-inter pathAhmet Kaan Gümüş · b6c54c5
fix(av1): gate the mv-stack top-right probe on has_top_right; 128-root motion_mode/obmc CDF rows; TX_64X64 coded corner on the intra-in-inter path
Three root causes behind the 128x128 inter gate's frame-5 reconstruction residue,
all on a 256x256 8/10-bit stream with use_128x128_superblock:
1. mvstack.rs find_mv_stack{,_compound} called scan_top_right unconditionally.
libaom setup_ref_mv_list (mvref_common.c:497/546) gates it on has_top_right,
which is 0 for bs > 16 -- a 128x128 block's above-right cell is populated
(previous SB row) but unavailable, so we invented a candidate and desynced
the drl symbols.
2. decode.rs mapped a square block's motion_mode/obmc CDF row with
trailing_zeros - 3, sending 128 to our packed BLOCK_16X32 row. Added libaom
default_motion_mode_cdf / default_obmc_cdf rows 13/14/15 (64X128, 128X64,
128X128) and explicit match arms ahead of the square one.
3. A TX_64X64 luma unit on the intra-in-inter-frame path used the full 64x64
scan and tx_side; only the top-left 32x32 is coded (spec 5.11.40), which
panicked the inverse transform on the 10-bit arm.
All 9 decode-order frames of the 8-bit and 10-bit gate arms are now pixel-exact
(EC_AV1_PREFILT_DUMP, was 19550/14164/26667/26716 wrong bytes on f5..f8); the
mode-value ladder matches aomdec exactly. The tx-size-search arm is still red on
4 post-deblock chroma pixels -- a phantom chroma TU edge published by the
per-vartx-leaf lf-grid write, analysed in lanes/sb128c-r5.handoff.md.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): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocksAhmet Kaan Gümüş · c3fc174
fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocks
The lane-r14 merge made read_var_tx_size general, so sub_tx_size_map[TX_16X4]
== TX_8X4 now reaches rect_inter_residual_supported(8,4) == false and
rect_inter_luma_set's unreachable!(). That panic was live: the 10-bit
directional-angle-delta gate failed the r3 suite at decode.rs:11799, not on
this lane's own gate.
- TxbSet::LumaRect8x4Inter{,1}: LumaRect4x8's shape (Luma8 coefficient
tables, true 32-position eob_pt) with the INTER tx_type table at
txsize_sqr_map[TX_8X4] = TX_4X4 -- av1_get_ext_tx_set_type (blockd.h:1097)
at tx_size_sqr_up == TX_8X8 returns DCT_IDTX reduced / ALL16 unreduced.
- rect_inter_residual_supported += (8,4)|(4,8) (split leaves only; an 8x4
inter BLOCK is still refused as "an inter partition below 8x8").
- rect_inter_luma_set / rect_inter_chroma_set / rect_scan return Result: every
remaining unreachable!() on a stream-derived shape in that path is now a
named refusal (3 new refusal_inventory entries).
- Class sweep of the r3 root cause (a CDF row taken from the enclosing square
side on a rectangular block): is_any_masked_compound_used_here now takes
(bw,bh) -- is_comp_ref_allowed is min(w,h) >= 8, so a 16x4/4x16 strip must
read NO comp_group_idx symbol; the intra-in-inter branch's palette ctx
(palette_bsize_ctx_wh) and filter-intra class (filter_intra_size_class_rect)
likewise come from write_w/write_h.
- New counter vartx_rect_leaf4_hits() [8x4, 4x8] + a 5th gate arm for it.Merge branch 'lane-intra14' (f4b5419) into lane-intrasplit: intra 1:4 strips on the inter path, narrowed refusal kept, this lane's split-tx refusal stays liftedAhmet Kaan Gümüş · e8291f8Browse files
Merge branch 'lane-r14' (b86eb38) into lane-intrasplit: general rect read_var_tx_size + the 64-axis 1:4 split-transform gate, kept alongside the no-CFL uv_mode gatesAhmet Kaan Gümüş · 6c8f374Browse files
merge: lane-sqdrift 7d498c0 (carries lane-sbrect10 9f1f108) into lane-intra14Ahmet Kaan Gümüş · 2c0dd84
merge: lane-sqdrift 7d498c0 (carries lane-sbrect10 9f1f108) into lane-intra14 The 64-axis intra block inside an inter frame read uv_mode from the 14-symbol CFL alphabet although is_cfl_allowed caps CFL at 32x32 -- the silent inter-frame pixel drift that blocked this lane's gate at r2. read_intra_mode_rect conflict resolved keeping BOTH: sbrect10's is_cfl_allowed funnel first, then this lane's intra-in-inter skip passthrough.
merge: main 48b35ab into lane-intra14 -- MV-stack twins, 128x128 chroma mu chunks, kf1200 chroma pair edgesAhmet Kaan Gümüş · c3a622fBrowse 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(intersub8): r2 suite finished green -- 382 passed, 0 failed, 33 ignored (sibling sweep for the compound-8x8 interp filter fix)Ahmet Kaan Gümüş · 458aba6Browse files
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(interp3): r3 suite is green -- 379 passed / 0 failed / 33 ignored (1031s), one fewer ignore than r2 because the dual-filter/OBMC 8x8 gate now runsAhmet Kaan Gümüş · 43aea78Browse files
docs(interp3): r3 report + handoff -- prefilter stage attribution, EC_OBMC emitter diffs 325/325 clean, root cause = the 8x8 compound leaf's missing per-ref global warp, gate un-ignoredAhmet Kaan Gümüş · 2dcf2edBrowse files
fix(av1): restore the TX_32X32 uv cap; suppress skip-inter 128 edges explicitlyAhmet Kaan Gümüş · a948429
fix(av1): restore the TX_32X32 uv cap; suppress skip-inter 128 edges explicitly An INTRA 128x128 block's internal chroma transform edges ARE filtered by libaom (`curr_skipped` carries an `is_inter_block` term), so dropping `fill_lf_grid_rect`'s uv `.min(32)` cap outright -- my first attempt at the skip-inter suppression -- turned the sibling key-frame gate a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact RED. The cap is back. The suppression is now explicit and inter-only: a new `Neighbours::suppress_internal_lf_edges` writes the block's UNCAPPED chroma extent into the uv grids, called only from the `skip && is_inter` branch of `decode_inter_block`, alongside the existing gate on the per-leaf luma publication. Both 128-NONE gates on one run: key frame ok; the inter gate moves from decode-order frame 4 (deblock) to frame 5 (an independent reconstruction defect in the bottom superblock row, documented in the r4 handoff).
docs(intersub8): r2 handoff -- root cause of the frame-5 desync, CDEF out-of-scope defect, gate green, 8x4/4x8 nextAhmet Kaan Gümüş · ba66357Browse files
fix(av1): the compound 8x8 inter leaf never resolved its switchable interp filterAhmet Kaan Gümüş · 98b0b9b
fix(av1): the compound 8x8 inter leaf never resolved its switchable interp filter
libaom's read_inter_block_mode_info calls read_mb_interp_filter for EVERY
inter block right after read_compound_type, and when av1_is_interp_needed is
0 (skip_mode, non-translational GLOBALMV) set_default_interp_filters stores
EIGHTTAP_REGULAR -- never a sentinel. Our compound 8x8 leaf hard-coded
Regular for prediction and recorded the [3, 3] "no filter" sentinel in the
neighbour band, so any later block whose ref0 matched that leaf's ref0 or
ref1 computed av1_get_pred_context_switchable_interp off 3 instead of 0,
read switchable_interp with the wrong CDF row and desynced the tile.
Found by a cross-decoder range ladder on a 192x128 8-bit cq-12 aomenc stream
with min-partition-size=4: entry and post-assign_mv ranges matched the oracle
at the 4x4 sub-block mi(14,46) (39095, 60392) and diverged only across the
interp filter read (ours 51740, aomdec 57815); the left neighbour, a
skip_mode compound 8x8 leaf, had recorded [3, 3].
Also in this round:
* decode.rs: EC_MODE / EC_MODE_MV / IFDBG4 rungs on the sub-8x8 inter split
path, at the oracle's own two print points, so the ladder lines up.
* stream.rs sub8x8_inter_split gate: measured cq/sp schedule (sweep of cq
{8,10,12,14,16,18,20} x sp {3,6,9,12} x both depths). Firing attempts are
8-bit cq12/sp3 (1 group) and 10-bit cq12/sp6 (3 groups), both pixel-exact,
and no attempt mismatches. cq 8/10 dropped: they carry a CDEF defect of
another shape (3 luma samples |d|=1 on frames 3/4, zero split groups, and
--enable-cdef=0 on the identical recipe decodes exact) -- deferred, not
hidden.
* decode_probe prints the sub8_inter_split group counter.
* merges main (8e9ba81) and lane-r14 (b86eb38).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
docs(inter16ab): r3 handoff -- rect compound CDF-row root cause, gate now coverage-red, split-tx 16x4 panic risk openAhmet Kaan Gümüş · 4336284Browse 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.
fix(av1): the compound_type/wedge_idx CDF row of a rectangular inter block is its own BLOCK_SIZES_ALL index, not the enclosing square side'sAhmet Kaan Gümüş · 0665419
fix(av1): the compound_type/wedge_idx CDF row of a rectangular inter block is its own BLOCK_SIZES_ALL index, not the enclosing square side's
decode_inter_block carries the enclosing SQUARE `side` (the accepted strip
corner-cut), and the masked-compound read derived its CDF row from it:
`match side { 8 => 3, 16 => 6, 32 => 9 }`. A 16x8 PARTITION_HORZ strip with
`comp_group_idx == 1` therefore read `compound_type_cdf[BLOCK_16X16]` where
libaom reads `compound_type_cdf[BLOCK_16X8]` (decodemv.c read_compound_type),
desyncing the tile from that block on. Same class one path over: the
single-ref wedge-interintra row was `if side == 16 { 6 } else { 9 }`.
New helper `bsize_all_index(bw, bh)` (libaom enum BLOCK_SIZE order) plus
`wedge_used_bsize` (av1_wedge_params_lookup wedge_types > 0); the wedge MASK
codebook is still square-only, so a rectangular COMPOUND_WEDGE or wedge
interintra block is refused by name rather than blended with the wrong mask
(two new refusal_inventory entries; the 16x4 split-transform refusal is gone
with the lane-r14 merge).
Evidence: 192x128 8-bit cq34 aomenc stream (gate attempt 5), decode-order
frame 5 was 8683 luma pixels wrong from (96,59); aomdec EC_TRACE_MODE ladder
diverged at the block after mi(24,0) (ours rng=64901 vs oracle 47271) and the
oracle's EC_PART histogram shows ZERO 1:4 partitions in that stream, i.e. our
1:4 counters there were phantom reads of an already-diverged stream. After the
fix the whole 6-frame sequence is byte-identical to ffmpeg and the phantom
counters read 0.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.
fix(av1): the 8x8 COMPOUND leaf predicted both taps translationally -- libaom warps every is_global_mv_block slot independently of motion_mode, so a GLOBAL_GLOBALMV 8x8 compound leaf under a non-TRANSLATION model drifted a few luma levels; the 16-frame dual-filter/OBMC gate is now pre-filter byte-exact on all 16 decode-order frames and un-ignoredAhmet Kaan Gümüş · 8ff77a4
fix(av1): the 8x8 COMPOUND leaf predicted both taps translationally -- libaom warps every is_global_mv_block slot independently of motion_mode, so a GLOBAL_GLOBALMV 8x8 compound leaf under a non-TRANSLATION model drifted a few luma levels; the 16-frame dual-filter/OBMC gate is now pre-filter byte-exact on all 16 decode-order frames and un-ignored Third instance of the twin-functions-drift class in this lane: decode_inter_block's compound arm has applied allow_warp's GLOBAL branch per reference slot since lane-cwarp r1, decode_inter_block8's compound arm never did. Also adds the EC_OBMC rung (aomdec's own byte format) plus an EC_PICT decode-order frame marker; the 325 EC_OBMC lines diff clean against the instrumented aomdec, which exonerates the OBMC neighbour fields the r2 handoff suspected.
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(sb128c): r4 report -- deblock root cause, cdef claim disproved, frame-5 residueAhmet Kaan Gümüş · 1fd22e3Browse files
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.