Commits
Commits on
27fb0f694cefe8f7d6c8b551ab429c436db16b2f2026-09-02
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.
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).
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(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
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.
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(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
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 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(reelckf): r2 suite is green -- 379 passed, 0 failed, 33 ignored on the merged treeAhmet Kaan Gümüş · 47a4cceBrowse files
docs(golomb): r8 report -- reference-height and LR crop fixes, three blockers measured on the straddle armsAhmet Kaan Gümüş · c0ba295Browse 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.
docs(kf1200): r1 report -- root cause, gate, 24-key-frame census, suite 370/0Ahmet Kaan Gümüş · 503f24aBrowse files
docs(reelckf): r2 handoff -- suite still running at the turn cap, zero FAILED so farAhmet Kaan Gümüş · 207d618Browse files
docs(reelckf): r2 report -- fixture gate for the skipped CfL block, 18 more recipes swept, ten real key frames exact on the merged treeAhmet Kaan Gümüş · 511f3f1Browse files
test(av1): pin a 1920x792 10-bit AV1 key frame as a fixture -- the only stream we have with a skipped CfL blockAhmet Kaan Gümüş · 293bc74
test(av1): pin a 1920x792 10-bit AV1 key frame as a fixture -- the only stream we have with a skipped CfL block 30 aomenc recipes (r1's 20 plus 18 more in r2, sweeping chroma-correlated geq sources at cq 40..63, cpu-used 0..2, min/max-partition 4..64, 8 and 10 bit) never made the encoder pick a CfL block with skip=1: the two conditions pull against each other, since skip needs a zero luma residual and CfL needs luma AC worth scaling. The instrumented oracle (EC_TRACE_MODE=1 aomdec) counts 5 'uv_mode=13 skip=1' blocks in this real 1920x792 10-bit key frame, so it is pinned as crates/ec-av1/fixtures/reelc_kf2700.obu (36 kB, first temporal unit only) and gated: decode + skip_cfl>0 assert run unconditionally, the three-plane compare against ffmpeg's yuv420p10le decode runs when ffmpeg is present. This closes r1's open item -- the skipped-intra-still-predicts-CfL fix (29cd53f) now fails a test if reverted.
Merge branch 'main' (85887c7) into lane-golombAhmet Kaan Gümüş · 733770a
Merge branch 'main' (85887c7) into lane-golomb Clean auto-merge; mvstack.rs, cdf.rs, cdf_state.rs, refusal_inventory.rs verified byte-identical to main.
docs(golomb): r7 handoff -- chroma tx_type root cause, gate green at every cq arm 8+10 bit, suite r7 still runningAhmet Kaan Gümüş · bd70c30Browse files
fix(av1): an inter block's chroma tx_type is the colocated luma type NARROWED to the chroma size's ext-tx set, not DCT_DCT at every side >= 32Ahmet Kaan Gümüş · 555df44
fix(av1): an inter block's chroma tx_type is the colocated luma type NARROWED to the chroma size's ext-tx set, not DCT_DCT at every side >= 32 av1_get_tx_type (libaom av1/common/blockd.h:1278-1309) resolves an inter block's chroma transform type in three steps: DCT_DCT only when txsize_sqr_up_map[tx_size] is STRICTLY greater than TX_32X32; otherwise the colocated luma unit's coded type from xd->tx_type_map; then narrowed by av1_ext_tx_used[av1_get_ext_tx_set_type(uv_tx, is_inter, reduced)] (blockd.h:1036 / 1097). This decoder had the first step as "chroma side >= 32 -> DCT_DCT" and no third step at all. At exactly TX_32X32 an inter block reads EXT_TX_SET_DCT_IDTX, which contains IDTX -- so a 64x64 inter superblock whose first var-tx luma leaf coded IDTX must inverse-transform its 32x32 chroma units with IDTX, and we used DCT_DCT. IDTX and DCT_DCT are both TX_CLASS_2D, so the scan, the coefficient contexts and every msac range stayed identical: the stream never desynced, luma stayed bit-exact, and one 64x64 superblock of chroma came out as high-frequency noise. The missing third step was also wrong the other way for a 16x16 chroma unit under 8x8 luma leaves (EXT_TX_SET_DTT9_IDTX_1DDCT excludes the four 1D ADST types). New reduce_inherited_chroma_tx_type covers all four inter sets and both inter-chroma callers (read_inter_plane, read_inter_plane_rect) -- the only two sites in the crate that derive a chroma tx_type for an inter block. Gate a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition goes "192x80 cq35 frames=5 10bit=false frame 3 plane U: 978 pixels differ" -> ok, 38 pixel-exact attempts over 5 arms x 8 cq levels, 8-bit and 10-bit. Plus a unit test enumerating the set-membership table against libaom's.
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckfAhmet Kaan Gümüş · 2bbef8b
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckf Auto-merge, no conflicts: mvstack.rs + stream.rs gates only, cdf.rs untouched, no deletions.
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaomAhmet Kaan Gümüş · 9ae16b3
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaom A 20-phase table of find_mv_stack_with_sign_bias / find_mv_stack_compound vs mvref_common.c setup_ref_mv_list; 17 phases exact, three defects: 1. compound combine (mvref_common.c:718-719): slots past both ref lists take that side's global MV, not (0, 0). 2. insertion cap (:100/128/388/425): the 9th distinct candidate is DROPPED AT INSERTION -- we pushed unbounded and sorted+truncated, keeping a different set. The dedup weight bump still applies on a full stack. 3. reach/availability is TILE-relative (:512-533), not frame-relative; new MiGrid::tile_origin. has_top_right deliberately unchanged: porting libaom's mask without the three shape refinements (which need the partition type) would regress the 64x128 VERT-rect case; the corner-cut at mvstack.rs:588 keeps its upgrade path. New gate a_real_aomenc_compound_mv_stack_* (3 arms, comp_gm_fill_hits=7, stack_full_drops=2, tile_reach_clips=1, pixel-exact) plus one #[ignore]d multi-tile reproducer. Gates by name 48 passed / 0 failed; full lib suite 377 passed / 0 failed / 33 ignored.
docs(reelckf): r1 handoff -- per-key-frame first-difference table, stage attribution, the two blocks found, ruled-out hypothesesAhmet Kaan Gümüş · 2150655Browse files
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit)Ahmet Kaan Gümüş · adb8dd9
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit) r3 parked the firing assert because no aomenc recipe found then produced a 64-axis 1:4 strip whose transform splits. An r4 recipe hunt on the merged tree (~70 aomenc runs: testsrc2 / life / mandelbrot / banded motion, 64x64..384x256, cq 20..58, min-partition-size 16 and 32) found one: 384x256, per-16-column band motion, cq 38 -> four 32x16 leaves out of four 64x16 strips, cq 32 -> one 16x32 leaf out of four 16x64 strips. Both streams stop LATER on another lane's live refusal, so the leaves are proved DECODED, not pixel-exact; the 16 banded attempts that run to the end are still compared frame by frame vs ffmpeg (0 mismatch, 8- and 10-bit) and min-partition-size moved 32 -> 16 so they exercise the 16-level path too. 10-bit fires nothing on this sweep (measured), so the firing assert is 8-bit only. Gate renamed to state what it asserts.
fix(av1): a var-tx leaf overwrote the block's chroma deblock transform sizeAhmet Kaan Gümüş · d5f333b
fix(av1): a var-tx leaf overwrote the block's chroma deblock transform size libaom get_transform_size (av1_loopfilter.c:207) applies the var-tx split override only for plane == AOM_PLANE_Y; chroma always keeps the whole block's av1_get_max_uv_txsize. Our var-tx leaf loop routed through fill_lf_grid_rect, which re-derives the uv grids from the span it is given, so every leaf clobbered the block's chroma transform size with leaf_tx/2 and the deblocker filtered chroma edges libaom never filters. New fill_lf_grid_leaf_luma writes only the luma tx grids. Also: dump_stage now indexes its output per decode-order picture, like aomdec's own ec_dump16, so EC_AV1_POSTDEBLOCK_DUMP is comparable across a sequence instead of overwriting .f0 every frame. g35.obu (md5 9037f5b21db95d35e71f91f040fc33e1) ours vs aomdec, prefilter + post-deblock + final, decode order: f1 U398/V457, f2 U325/V412, f3 U336/V408 -> ALL THREE EXACT. Decode f4 chroma residue stays open (one 64x64 superblock, prefilter stage, see lanes/golomb-r6.handoff.md).
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base miAhmet Kaan Gümüş · 6a9c6eb
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base mi libaom builds chroma_above_mbmi/chroma_left_mbmi from mi[-((mi_row & ss_y) * mi_stride + (mi_col & ss_x))] (set_mi_offsets, av1/common/blockd.h) and get_intra_edge_filter_type (reconintra.c:974) reads THAT block's uv_mode. decode_leaf_rect4_16's chroma half asked smooth_uv_neighbour at the odd strip mi instead, so the neighbour it saw was the non-chroma-reference 4-row block directly above (uv_mode UV_DC_PRED) rather than the chroma block above the pair. On the ReelB -ss 1200 key frame that lost a SMOOTH neighbour: filt_type 0 instead of 1 turned av1_use_intra_edge_upsample on (blk_wh 12 <= 16) for an 8x4 H_PRED chroma strip at angle_delta -2 and moved 4 samples by 1. Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact now alternates in a chroma-carrying lavfi source (the gray one left both chroma planes constant, so every uv_mode was DC and this shape could not occur) and hard-asserts a new rect4_16_uv_pair_filt_hits counter -- pairs whose filt type differs between the two mi. 8-bit: 13 flips, 10-bit: 8, all pixel-exact; reverting the one-line fix reddens it at seed 43. HG 1-frame key-frame census: -ss 1200 14 -> 0 bytes, -ss 1800 248 -> 0, -ss 3600 1 -> 0, -ss 3300 44500 -> 39971; other segments unchanged.
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage listsAhmet Kaan Gümüş · 52a7f38
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage lists The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both NEVER_EXERCISED lists drop it. covers_both_depths also learns the 'for depth in [8usize, 10]' spelling: such a gate builds both streams from one recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only.
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma referenceAhmet Kaan Gümüş · 516d68b
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma reference ReelC's key frames decoded with no refusal and luma bit-exact but wrong chroma at eight of ten seek points. Two causes, both chroma-only: 1. libaom predict_and_reconstruct_intra_block predicts every plane and guards only the residual on skip_txfm, so a skipped UV_CFL_PRED block is still DC + alpha * luma-AC. Three skip arms (the 16x16-level 1:4 chroma pair and the two sub-8x8 4x4 groups) dropped the CfL term. 2. get_intra_edge_filter_type reads chroma_above_mbmi/chroma_left_mbmi -- the neighbours of the CHROMA REFERENCE mi. decode_rect4_16 passed the closing strip's own mi, whose above cell is the pair's first strip; the mi-exact UV map missed, the coarse fallback answered, and the filter type flipped av1_use_intra_edge_upsample (blk_wh 12 <= 16 for type 0) on directional chroma. All ten decodable ReelC key frames go to 0 differing samples (ss=3600 was 119652, ss=7200 52891). New gate: real aomenc --sb-size=128 --cpu-used=0 with 1:4 partitions and CfL, 256x256, 8- and 10-bit, both pixel-exact with directional_1to4_chroma_pairs=11 per arm.
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exactAhmet Kaan Gümüş · 9864603
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exact
Three root causes, none where r2 pointed (the first TX_64X64 luma unit was
already identical range for range):
1. plane order -- libaom codes every plane of a 64x64 "mu" chunk before the
next chunk (Y,U,V per quadrant); we read all luma units then all chroma.
Below 128 a block is one chunk, so the new nchunk loop is byte-identical
at every size already handled.
2. chroma txb_skip_ctx offset -- get_txb_ctx adds 10, not 7, when the plane
block is LARGER than the transform; AV1's only such case is a 128 block's
64x64 uv plane with TX_32X32 units. Added TXB_SKIP_CHROMA_32_BIG{,_Q0,_Q1,_Q3}
from av1_default_txb_skip_cdfs[q][TX_32X32][10..13].
3. per-unit chroma context writes -- deferring them to end-of-block made the
second quadrant read ctx 10 where libaom reads 11.
Also reverts 13 gate recipes r2 had rewritten --min-partition-size=16 -> 32
(a gate-recipe confound that red-lined the two inherited 10-bit rect/AB gates).
Refusal "a 128x128 superblock partition other than SPLIT" replaced by the two
narrower ones that remain (128-root HORZ/VERT|AB, and a 128 NONE root on an
inter frame); gate a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact
un-ignored: 4/4 arms pixel-exact, part128_none_hits=31.
Gates by name 33 passed / 0 failed; full lib suite 371 passed / 0 failed / 32 ignored.Merge branch 'main' (18bf7dc) into lane-r14: intrarect + hgkf + sb128; cdf.rs byte-identical to main, no hand-resolution neededAhmet Kaan Gümüş · e79f672Browse files
docs(r14): r3 report -- rect var-tx leaves, film firing evidence, parked gate assert with its measured reason; suite 367/0/31Ahmet Kaan Gümüş · 6b70a6a
docs(r14): r3 report -- rect var-tx leaves, film firing evidence, parked gate assert with its measured reason; suite 367/0/31
docs(mvtwin): r1 report -- suite 375/0, phase table, open multi-tile residueAhmet Kaan Gümüş · 37ccf55Browse files
merge: main 18bf7dc into lane-golomb (edge32 counters kept alongside main's edge_part)Ahmet Kaan Gümüş · 523f6b7Browse files
docs(golomb): r5 report -- compound MV stack missed libaom's tpl extension samples; restore the flat-band twin's #[ignore]Ahmet Kaan Gümüş · 5ad8820
docs(golomb): r5 report -- compound MV stack missed libaom's tpl extension samples; restore the flat-band twin's #[ignore] The `#[ignore]` on `a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact` (open r2 defect, documented in its own doc comment) was dropped by the r4 merge; restored verbatim from fd54bcf.
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axisAhmet Kaan Gümüş · 00d3d4e
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axis libaom `sub_tx_size_map` (common_data.c) keeps a 1:4 strip's sub-transform RECTANGULAR: [TX_64X16] == TX_32X16, [TX_16X64] == TX_16X32. r2 refused that case by name because `read_var_tx_size` was square-only and its leaves were `(row, col, tx_px)` triples. This round transcribes the whole table (with a 19-entry unit test against libaom's own order), generalises `read_var_tx_size` to `(tx_w, tx_h)` exactly as `read_tx_size_vartx` recurses -- rect ctx, `sub_tx_size_map` step, the TX_4X4 early return over `tx_h/4 x tx_w/4` cells -- and widens the leaf tuple to `(row, col, tw, th)`. Both inter var-tx leaf loops now read a rectangular leaf through `read_inter_plane_rect` with `LumaRect32x16Inter` (the 2-symbol EXT_TX_SET_DCT_IDTX inter row at `tx_size_sqr_up == TX_32X32`), its own `get_txb_ctx_general` neighbour context (a leaf is smaller than its block, so `txb_skip_ctx` is not the lone-TU 0), and rect neighbour/deblock spans. Measured on a 2160p 10-bit AV1 mkv: a 2 s mid-film segment decodes 14 rectangular 16x32 var-tx leaves and 16 16x64 strips, and both mid-film segments move off this wall onto lane-intrarect's. The chartered pixel-exact aomenc gate cannot yet hard-assert the arm: 60+ real aomenc runs show every stream that contains a superblock-level 1:4 partition also contains another lane's live refusal, which stops the decode first (measured reason written at the parked assert). The new gate still sweeps the recipe at both bit depths and hard-asserts that nothing mis-decodes silently.
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
fix(av1): compound MV stack was missing libaom's three tpl_sample_pos extension samplesAhmet Kaan Gümüş · 123515a
fix(av1): compound MV stack was missing libaom's three tpl_sample_pos extension samples `find_mv_stack_compound` ported the temporal (`add_tpl_ref_mv`) row/col scan but dropped the three EXTENSION samples the single-ref twin already carries (mvref_common.c:590-600, `allow_extension` + `check_sb_border`). On the 192x80 cq59 frame-edge stream that cost one weight-2 candidate at mi(16,32) picture 2: our stack came out 2 deep where libaom's is 3, so the NEAR_NEARMV block never read its `drl_mode` symbol -- one bit short, and every later symbol in the tile read from the wrong place (a 32-level edge bit then resolved HORZ where libaom split, 130 wrong pixels). Range ladder after the fix is exact through the block: post-refs stack 3 == 3 with identical entries/weights, post-mv rng 39839 == libaom EC_MODE_MV 39839, next block entry 62618 == 62618, and all 48 of our EC_MODE block-entry ranges on the cq35 stream match aomdec's. Same hunk as lane-sb128 d6cca7d (independent lane, same root cause).
fix(av1): three MV-stack divergences from libaom setup_ref_mv_list, one of them a compound-vs-single twin driftAhmet Kaan Gümüş · 199abd2
fix(av1): three MV-stack divergences from libaom setup_ref_mv_list, one of them a compound-vs-single twin drift Phase-by-phase diff of both twins (find_mv_stack_with_sign_bias and find_mv_stack_compound) against libaom mvref_common.c; full 20-phase table in lanes/mvtwin-r1.report.md. 1. TWIN DRIFT (compound only): combine_compound_candidates filled a comp_list slot past both ref_id/ref_diff lists with (0, 0). libaom fills it with THAT SIDE's own gm_mv_candidates[idx] (mvref_common.c:718-719) -- the single-ref twin closed the identical gm-fallback gap on its mv_ref_list tail in r6. Wrong the moment a compound pair names a ROTZOOM/AFFINE reference and the scans leave the stack short. 2. BOTH twins: add_candidate/add_compound_candidate pushed unbounded and let a later sort+truncate pick the survivors. libaom drops the 9th distinct candidate AT INSERTION (*refmv_count < MAX_REF_MV_STACK_SIZE, mvref_common.c:100/128/388/425), keeping a different set. The dedup weight bump on a full stack is preserved. 3. BOTH twins: the row/col reach and the up/left availability gates were FRAME-relative. libaom's find_valid_row_offset/find_valid_col_offset clamp to tile->mi_row_start/mi_col_start (mvref_common.c:512-533). MiGrid::get already hid the out-of-tile cells, so the symptom was the scan weight (inc) and through it the stack order, inside every tile not starting at mi 0. Not defects, checked and recorded: the two bubble passes vs one stable sort (equivalent -- no post-boost entry can reach REF_CAT_LEVEL), the compound add_tpl_ref_mv double lookup (offset-independent, so both sides resolve together), and the has_tr grid probe (mask logic and "already decoded" coincide for square blocks, and libaom's is_last_vertical_rect refinement restores the rect case our probe already gets right). Gates: new a_real_aomenc_compound_mv_stack_gate, the first compound gate here that leaves --enable-ref-frame-mvs ON, with --auto-alt-ref=1 --lag-in-frames=25, a cq sweep and 30 seeds per arm; three arms (8-bit sb64 gm=0, 8-bit sb64 gm=1, 10-bit sb128 gm=1) decode every frame pixel-exact vs ffmpeg while hard-asserting comp_mode_hits AND tmv_hits advanced. Plus one deterministic unit test per defect. Found but NOT caused here: a 128x64 --tile-columns=1 stream mis-decodes frame 1 luma (ablation-proven pre-existing); kept as an #[ignore]d reproducer with the repro command in its doc comment.
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128bAhmet Kaan Gümüş · f00f0e1
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128b Conflicts all in stream.rs and all resolved to MAIN's side, per the batch coordinator: main's `a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact` (one 128 seam gate, `--min-partition-size=16`, part128 symbol assert) replaces this lane's own conversion of the same gate, and lane-oddh's seam refusal stays deleted. cdf.rs merged clean -- the NZ_MAP and FILTER_INTRA regions are byte-identical to main's, this lane's only cdf.rs delta is the four TXB_SKIP_CHROMA_32_BIG tables.
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rowsAhmet Kaan Gümüş · 69826a6
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rows Three root causes behind lane-sb128b r2's "the first TX_64X64 luma unit reads AC libaom never wrote" residual; the entropy ladder (aomdec EC_TRACE_COEFF vs ours, 48 txb_skip symbols) is now identical range for range and all four gate arms decode pixel-exact. 1. decode.rs `decode_block`'s multi-TU arm read every luma unit and then every chroma unit. libaom's `decode_token_recon_block` loops 64x64 luma "mu" chunks (`mu_blocks_wide/high` = `mi_size_wide[BLOCK_64X64]`) and codes ALL PLANES of a chunk before the next chunk, so at 128 the order is Y,U,V per quadrant. Below 128 a block is one chunk and the order is unchanged. 2. The chroma `txb_skip_ctx` offset is 10, not 7, when the uv plane block is larger than the uv transform (`get_txb_ctx`) -- the 128 block's four TX_32X32 chroma units are AV1's only such case, and our chroma table only carried the offset-7 rows. Added `TXB_SKIP_CHROMA_32_BIG*` (token_cdfs.h `av1_default_txb_skip_cdfs[q][TX_32X32][10..13]`, all four q contexts), `txb_skip_chroma_32` is now six rows, and the caller adds 3 when `cn > 1`. 3. Each chroma unit's coefficient context was recorded only after the whole block, so the second quadrant read ctx 10 where libaom reads 11. Recorded per unit inside the loop as well (the post-`record_split_luma` replay stays: that call would otherwise clobber them whole-block). Refusal lifted with its gate: `a 128x128 PARTITION_NONE block (...)` deleted from decode.rs + refusal_inventory.rs, and `a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact` un-ignored -- 4/4 arms pixel-exact (384x384 seeds 42/43, 256x256 seed 44, 10-bit seed 45), part128_none_hits=31.
fix(av1): drop the golomb 16x16-frame-edge refusal the merge lifted (oddh codes that strip)Ahmet Kaan Gümüş · 6f3b424Browse files
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deletedAhmet Kaan Gümüş · c6f22ad
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deleted Clean auto-merge on 6699ce6 (no conflicts). The deletion of "a sequence using 128x128 superblocks on a frame larger than 64x64" (refusal + inventory line) is the lane's intended capability landing; its gate now asserts pixel equality.
Merge branch 'lane-r14' (a2e2e29): 16x16-level 1:4 partitions decode -- FILTER_INTRA rows 12/13 (BLOCK_16X4/4X16) and the rect base-context offsetsAhmet Kaan Gümüş · 3e334d6
Merge branch 'lane-r14' (a2e2e29): 16x16-level 1:4 partitions decode -- FILTER_INTRA rows 12/13 (BLOCK_16X4/4X16) and the rect base-context offsets Clean auto-merge on 7a47fc1 (no conflicts). cdf.rs change is append-only: FILTER_INTRA grows 12 -> 14 rows, the first 12 byte-identical.