Commits
Commits on
231663ed27875fd28c44872ee5987f01d935ae8a2026-09-01
Merge branch 'lane-txselect': inter TX_MODE_SELECT var-tx (txfm_split tree, TXFM_CTX_INIT=64, per-leaf residual), eob_pt class-1 rows above 8x8; gates 8/10-bit green (verifier PASS, 269/0/23); fmt-only churn dropped, main's uv_tx_grid chroma deblock keptAhmet Kaan Gümüş · 4463654Browse files
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measuredAhmet Kaan Gümüş · 9c8c214
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measured Every existing tile gate turns rect/ab partitions, tx-size search, cdef and restoration OFF to isolate the per-tile loop -- the tool-disabled-in-every-gate shape, under which a tile-edge defect in any of those tools is invisible. - stream.rs: `run_multi_tile_gate` + 4 arms (2x2 grid and 4 columns, 8- and 10-bit, intra and inter) through `decode_stream`, rect+ab partitions, default cdef and loop restoration on, deblocking left crossing tile boundaries. The parsed `tile_info` is asserted to carry the grid asked for (skipping `show_existing_frame` headers, which code no tile info) and `tile_hits` is asserted >= tiles*frames so a header claiming 4 tiles cannot pass on one decoded tile. - The 8-bit 2x2 inter arm is `#[ignore]`d with an open defect documented in place: seed 42 mismatches in one 32x32 block at x[224..255] y[32..63] from frame 4 on; not cdef, not restoration, not deblocking; seeds 47/48 are exact; tile attribution unproven because the single-tile control refuses. - decode_probe: prints the tiling of every frame header before decoding. Both of his AV1 films measure cols=1 rows=1 uniform over 181 headers each, confirmed independently by ffmpeg's trace_headers (tile_cols_log2=0, tile_rows_log2=0) -- multi-tile is NOT on the critical path for them. - gate_coverage: 5 stale 10-bit entries deleted (global-motion and dist-wtd-comp were already closed by lane-cwarp and left this test red at main 9c35ecc; ab-partitions, rect-partitions and restoration are closed by the new 10-bit arms), plus a note on why tiling cannot join the `--enable-*` derivation.
fix(av1): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row resetAhmet Kaan Gümüş · 91b5f76
fix(av1): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row reset sub8_mode_col/row and uv_mode_col/row were read with a frame-relative availability guard (mi_r > 0 / mi_c > 0) and never cleared, so the first block of a second tile column/row read the previous tile's recorded (row, mode) entry as its own neighbour: wrong intra-mode context and wrong chroma edge-filter type. Verifier repro (128x64, --tile-columns=1, seeds 207/228) mismatched 221 and 158 bytes, every one at x>=64; both streams now decode pixel-exact. decode_leaf_rect also records its own span in those maps (the caller patched only the coarse 16x16 slot, so a neighbour of the top strip read the bottom strip's mode). Gate: three arms (single tile, --tile-columns=1, --tile-rows=1), tile_hits delta >= 2 asserted on the tile arms, the Err arm now panics on any decode error that is not a named "unsupported: " refusal, and the lavfi noise fixture carries all_seed so (seed, cq) names one exact stream. Reverting the guard+reset hunks makes that gate FAIL (U plane, seed=139 cq=12).
Merge lane-rectsplit 4c3389a: per-attempt gate counters on the three rect-split gates, EC_NZOFF_DUMP/EC_SBPART_DUMP64 instruments, SB split-tx refusal kept (r2's nz_map transposition disproved by the merged SB HORZ/VERT gate); decode_probe dump kept main's versionAhmet Kaan Gümüş · f9e482fBrowse files
Merge lane-inter8 12809b2: interior 16x16 SPLIT into 8x8 inter leaves; mi-granular inter neighbour bands; three leaf-context defects (fabricated compound refs, sibling override, comp ctx corner) + compound-arm tail; 8-bit 8x8-leaf gate green (verifier PASS, 269/0/23); conflict = keep mi index + main's segment_id readAhmet Kaan Gümüş · f822a4cBrowse files
feat(av1): PARTITION_HORZ_A/HORZ_B/VERT_A/VERT_B at 16x16 for intra framesAhmet Kaan Gümüş · 95d8523
feat(av1): PARTITION_HORZ_A/HORZ_B/VERT_A/VERT_B at 16x16 for intra frames Two 8x8 squares (decode_leaf8) plus one 16x8/8x16 strip (decode_leaf_rect's real non-skip coefficient path) per arm, libaom visit order, VERT_A/_B under Reach::vert_ab_partition() (lane-part32 fd1a2eb's encode.rs half cherry-picked). Lifts 'a HORZ_A/HORZ_B/VERT_A partition below 16x16' (narrowed to the 1:4 case) and 'a coded (non-skip) HORZ_B/VERT_B rect strip below 16x16' (dead branch deleted), gated by 6 real aomenc streams, 8-bit and 10-bit, each arm asserted: ab16 arms(HORZ_A,HORZ_B,VERT_A,VERT_B)=[2,1,2,1], all pixel-exact vs ffmpeg. Also, coordinator-reported base defects fixed here (same hunks on lane-sub8 r6 / lane-rectx r5): mi-exact mode map read with tile-relative guards and reset in start_tile/start_row; has_tr/has_bl rect index uses MAX_MIB_SIZE_LOG2 (5), not 4.
fix(av1): rect has_tr/has_bl row stride is 32 mi (MAX_MIB_SIZE_LOG2=5), not 16 -- r4's '4 - bw_log2' halved it and every table row but the first read the wrong byte; pinned by a bijection test over a whole superblock walkAhmet Kaan Gümüş · b4af125
fix(av1): rect has_tr/has_bl row stride is 32 mi (MAX_MIB_SIZE_LOG2=5), not 16 -- r4's '4 - bw_log2' halved it and every table row but the first read the wrong byte; pinned by a bijection test over a whole superblock walk
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged treeAhmet Kaan Gümüş · 8c9548c
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged tree NEVER_EXERCISED_10BIT keeps the union of both removals: main's three (restoration, dist-wtd-comp, global-motion, closed by lane-hbdinter and lane-cwarp) and hbdgates' six (filter/smooth/paeth intra, intra-edge-filter, rect and ab partitions). gate_bodies()/is_ten_bit() take hbdgates' versions (ignored gates excluded, helper-built recipes recognised). a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact was #[ignore]d on the branch because hbdgates' base lacked main's 10-bit LR fix (SGR box-sum scaling, Wiener clamp). On the merged tree it passes 16/16 attempts pixel-exact, lr_hits=28, so the #[ignore] is removed.
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restoredAhmet Kaan Gümüş · 429edc6
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restored r3 ran the gates r2 never reached. r2's claimed root cause (base_ctx reading the rect av1_nz_map_ctx_offset tables [row][col] instead of [col][row]) turns the split-transform SB gate green at the cost of turning the MERGED gate a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact RED at seed 43. All four index/shape combinations measured; two fail both. The real unknown is the orientation of (row,col) out of the square 32x32-corner scan vs libaom's column-major coeff_idx, so the SB-level split-transform refusal is restored and gate (b) is #[ignore]d again with that reason. Kept from r2: per-attempt gate counters (no vacuous pass from a stream that later refuses), the SB-interior-TU counter gate (b) asserts, the chroma shape guard justification, gate (c)'s corrected recipe comment, the nz_map table packing pin, and the EC_NZOFF_DUMP / decode_probe dump instruments.
docs(av1): lane-palette2 r9 report -- GREEN, merge resolution + palette prediction on a split-tx rect stripAhmet Kaan Gümüş · e0183b2Browse files
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band auditAhmet Kaan Gümüş · aba325a
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band audit lane-inter8 r3. Instrumentation: `EC_MODE_VAL` in `decode_inter_block8`'s compound arm, byte-format-identical to the oracle's rung-4 line, plus (in the oracle tree, not in scripts/) `EC_MODE_MV` right after libaom's `assign_mv` and `stack=` on its `EC_MODE_VAL`. With those, the 10-bit twin's first divergent element is pinned: on the compound 8x8 leaf mi=(4,14) the entry range (37004) and the post-mv range (57308) are IDENTICAL to aomdec, as are mode=20, ref0=1, ref1=4, mv0=(0,-9) and mv-stack size 2. The divergence is strictly in the leaf's post-mv mode info, where the only symbol aomdec reads for a compound 8x8 leaf is read_mb_interp_filter -- which decode_inter_block8 never reads (it hardcodes Regular, decode.rs:11181). Class symbol-consumption-gap. lane-gmaffine r3 owns that read (0b8cb54); a cherry-pick onto this branch conflicts, so it is left to merge from there rather than duplicated. 8-bit ladder re-measured: 57/57. 10-bit: 41/57. Tile audit (lane-sub8 verifier's class warning): every reader of the mi-granular inter bands guards tile-relative (zero `mi_r > 0`/`mi_c > 0` hits in decode.rs; the leaf uses tile_row0_mi/tile_col0_mi), start_tile resets the above mi bands over the tile's own mi column span, start_row resets every left mi band. The `--tile-columns=1` gate arm added to prove it at runtime is RED for an unrelated reason (128x64 makes aomenc code an SB-level rect partition on the key frame: lane-sbpart's arm) and is ignored with that reason spelled out.
docs(gmaffine): r3 report -- lane-inter8 merged, SUB-vs-mi context index fixed, next divergent leaf namedAhmet Kaan Gümüş · 154097bBrowse files
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granularAhmet Kaan Gümüş · 7250c10
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granular lane-gmaffine r3, on top of the lane-inter8 merge. `decode_inter_block8` still indexed `neighbours.above_ref/above_ref1/above_filter` with `c` and `left_*` with `r` -- `outer_at`, the enclosing 16x16's SUB(16px) coordinates -- while every other read in the same function had moved to `cmi`/`rmi` (mi, 4px) with lane-inter8 r2's mi-granular bands. Wrong units, so a leaf's `read_single_ref` p1..p6 contexts and its `switchable_interp` neighbour rows came from an unrelated 16px column/row. Measured on the gate's own recipe (--min/--max-partition-size=8, gm and warp both off, 8-bit cq32): aomdec's EC_MODE_VAL ladder and ours agree on mode, mv, ref and range for the 16 leaves of the first 32x32 up to (6,4); leaf (6,6) had identical mode/mv/stack but post-mode-info range 41953 vs aomdec's 38345 -- the divergence sat after the mv, in the filter/ref tail. With mi indices that leaf and the next 15 now match to the range. Instrument kept: `EC_MODE_VAL8` under EC_TRACE_MODE, one line per 8x8 leaf (newmv/globalmv/ref0/mv/stack/rng), diffable against aomdec's EC_MODE_VAL. Both 8x8 motion gates are still RED: the next divergence is leaf mi=(0,14) of the same frame, where aomdec reads NEWMV (mv 0,-12) and we read not-new from a 3-entry stack.
Merge branch 'lane-sqchroma': square-partition tx-size-search chroma gate 8/10-bit (premise of a square-path chroma defect measured false on 52 streams); hue=s=0 guard removed from the rect gates (275/0 on branch)Ahmet Kaan Gümüş · e6343c5Browse files
docs(sqchroma): r1 report -- premise disproved, gate added, suite 275/0/23Ahmet Kaan Gümüş · 53e8047Browse files
Merge lane-part32 r6: intra 16-level PARTITION_VERT_B takes the vert has_tr/has_bl tables (last unguarded VERT_A/B site); table pin test; class closed at every level (270/0/24 on branch)Ahmet Kaan Gümüş · 9f28960Browse files
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tablesAhmet Kaan Gümüş · 1f9bde4
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tables decode.rs:7008 visits its two 8x8 squares TR then BR, out of raster order, so like the 32/64-level AB arms r5 fixed it must read libaom's has_tr_vert_8x8 / has_bl_vert_8x8 (get_has_tr_table / get_has_bl_table take the partition type). has_bl_8x8 is 0 where has_bl_vert_8x8 is 1 at all 16 even-row/odd-col 8x8 slots -- exactly the TR square -- so its below_left was wrongly false for the directional modes that read below-left (angle > 180: D203_PRED, D157_PRED with a positive delta). Class swept: this was the only remaining unguarded VERT_A/_B site at any level, intra or inter. Gated by a table pin (encode.rs) rather than a stream: a bounded 112-encode aomenc sweep produced no decodable 16-level VERT_B -- every stream that partitions that small first hits the still-refused HORZ_A/HORZ_B/VERT_A-below-16 or coded-rect-strip-below-16 arms. Counts in lanes/part32-r6.report.md. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 270 passed, 0 failed.
test(av1): gate the mi-exact mode neighbour for non-strip readers (two pinned rgbtestsrc arms, mode_mi_override_hits counter) + lane-rectx r5 reportAhmet Kaan Gümüş · 8a60151Browse files
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect stripAhmet Kaan Gümüş · 9ad0588
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect strip
Merge resolution: decode.rs `reconstruct_rect` keeps this lane's PALETTE_PRED
override and takes main's rect filter-intra call (`bw, bh`); refusal_inventory
loses the two strings both sides lifted ("a HORZ/VERT intra strip in a
screen-content frame", "a HORZ/VERT intra strip with a split transform").
The merge created a combination neither side had: a palette block on a rect
strip whose luma transform SPLITS. `decode_rect_split` (main, lane-rectsplit)
knew nothing about palette, so every transform unit predicted DC while the
coefficients were still read -- the entropy stream stayed in sync and the
block came out flat grey (smptebars 192x192 cq=35: luma x0..63 y0..127 wrong,
max |d| 52, rest of the frame exact). Palette prediction reads no edge pixels,
so a unit's window on the block's colour-mapped map IS its prediction:
RectStripModes now carries the Y map (sliced per unit) and the UV maps (the
chroma transform is never split), and the block bumps PALETTE_SPLIT_TX_HITS.
Both palette gates green: rect-palette 17/70 matched + 21 uncounted-exact,
palette_rect_hits=92; rect-screen-content 19/70 matched (14 through a
split-transform palette block) + 19 uncounted-exact. The r8 chroma-only U
mismatch (rgbtestsrc 128x128 cq=55) is gone -- main's deblocker chroma tx-size
fix (9b1297a) closed it.feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset tableAhmet Kaan Gümüş · c936fdc
feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset table r2's WIP (bf53652) built the SB-level per-transform-unit path and found the real cause of r1's RED gate: av1_nz_map_ctx_offset is packed COLUMN-major, so base_ctx read the TX_32X64/TX_64X32 offset tables [row][col] and desynced the first SB-level strip with a coefficient below row 1. r3 ran the gates it never reached: gate (b) 20/20 pixel-exact, SB-interior-TU delta 7; gates (a)/(c) green; refusal_inventory + gate_coverage green. Relabelled gate (b)'s summary line, which named the shared counter while asserting the SB-interior one.
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where it matters (lane-covbd r1). Six of the seven holes close with real-aomenc 10-bit streams, pixel-exact vs ffmpeg on every shown frame: - a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra, smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2 smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22). - a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named refusals; rect_partition_hits=32 partab_hits=4). - a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0, plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2. That is a real 10-bit loop-restoration defect for a follow-on lane; the gate is not weakened and enable-restoration stays a listed 10-bit hole. intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits / intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together and would have let a paeth-only stream "prove" smooth intra. ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over attempts that decoded AND compared, so a refused stream can never contribute a firing; a pixel mismatch panics with plane + first-diff index + both values + the firing deltas, never SKIPs. gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate exercises nothing) and recognises gates whose --passes=1 lives in the shared 10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.
docs(inter8): r2 report -- mi-granular inter bands, 3 leaf-context defects, 8-bit gate greenAhmet Kaan Gümüş · 581d074Browse files
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduceAhmet Kaan Gümüş · 213865e
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduce lane-rectsplit r1 recorded, in a comment on two live gates, that a plain SQUARE-partition intra key frame with real chroma and aomenc's tx-size search left at its default (ON) mismatches on the U plane, and guarded both gates with `-vf hue=s=0`. Re-measured at HEAD, that is false: seeds 42..61 at cq 45 and at cq 20, plus testsrc2/mandelbrot/smptebars/rgbtestsrc at cq 12/32, with and without CFL and filter intra, all decode pixel-exact against ffmpeg on all three planes (`--enable-rect-partitions=0`, the charter's own recipe). Seed 42 does fire the pairing the defect was attributed to -- 6 blocks with `tx_depth != 0` and uv_modes 0/1/2/5/11 -- and still matches. So this ships the gate that was missing rather than a fix: `a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact` sweeps 10 8-bit square streams (cq 20/40) plus one 10-bit stream of the same recipe (his films are yuv420p10le; sequence-header bit_depth asserted before any pixel compare), and hard-asserts a new `sq_chroma_tx_hits()` counter -- square blocks whose luma transform split under a non-DC `uv_mode` -- summed only over attempts that decoded AND pixel-compared, so a refusing stream cannot lend it firings. 11/11 exact, 23 firing blocks 8-bit + 2 10-bit, 0 refusals. The stale `hue=s=0` guard is dropped from both live rect gates (and the ignored SB-strip one); both stay green with real chroma, so they now cover chroma too.
Merge branch 'lane-hidden': EC_AV1_FINAL_DUMP oracle rung 12 (every decoded frame incl. hidden alt-refs, bit-depth-correct) + decode_all_frames_vs_oracle helper + first hidden-frame gate 8/10-bit (273/0 on branch)Ahmet Kaan Gümüş · bde15d8Browse files
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour arrayAhmet Kaan Gümüş · fbf038b
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour array
Merge branch 'lane-bd12': bit_depth 12 refused by name in decode_stream (warp/MC/wiener shifts change at 12-bit; no 12-bit gate), reachability testAhmet Kaan Gümüş · 3281246Browse files
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BITAhmet Kaan Gümüş · b933555
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BIT Also drops enable-dist-wtd-comp and enable-global-motion from NEVER_EXERCISED_10BIT: lane-cwarp's 10-bit compound global-warp gate passes =1 for both, so never_exercised_10bit_matches_the_gate_recipes was already failing at 9c35ecc. gate_coverage is green again after this commit. Conflict resolutions: warp.rs took main's (cwarp warp_inner/warp_affine_compound is a superset of hbdinter's const BD -> bit_depth()); mc.rs kept hbdinter's single (bd-8) diffwtd_mask round plus its combine_compound two-step and inter_pred_hits counter; stream.rs kept main's encode_10bit_gradients helper and cwarp gates plus hbdinter's a_real_aomenc_10bit_inter_sequence gate.
merge lane-inter8 ae69b25 into lane-gmaffineAhmet Kaan Gümüş · cadfff7
merge lane-inter8 ae69b25 into lane-gmaffine Conflict resolution (both sides kept, duplicates unified): - obmc chroma-above skip: lane-inter8's explicit BLOCK_4X4/4X8/8X4 match list (correct for 8x32/32x8, where lane-gmaffine's `w>=16 && h>=16` would have skipped chroma libaom blends). - OBMC neighbour filter: read from lane-inter8's now mi-granular `Neighbours::above_filter/left_filter`; lane-gmaffine's duplicate `MiGrid::filters` per-mi record (plus `grid_or_slot`) deleted as the same field recorded twice. - `decode_inter_block8`: one `global_motion` param (lane-gmaffine's) plus lane-inter8's `sign_bias_table`/`tpl_frame`; single `gm_table` build at the top; returns `(.., leaf_filter_syms, leaf_refs)`. - the leaf's temporal-mv `cur_offset_0` keys on the leaf's OWN reference (lane-inter8 hardcoded LAST because it refused every other ref). - per-leaf `record_inter_rect_mi` stamp keeps lane-gmaffine's REAL filter symbols instead of the `[3, 3]` intra sentinel; the coarse whole-16x16 `record_inter` and its last_filter/last_ref bookkeeping are gone. - the interior 16x16 SPLIT branch is lane-inter8's restructure (part16 read once, one shared leaf loop); refusal strings follow it.
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability testAhmet Kaan Gümüş · efb4f45
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability test
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdfAhmet Kaan Gümüş · cd8ea46
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdf libaom motion_mode_allowed (blockd.h:1484) drops WARPED_CAUSAL eligibility when av1_is_scaled(block_ref_scale_factors[0]), so a superres block reads obmc_cdf. We read motion_mode_cdf: the decoded value stayed SIMPLE_TRANSLATION, so nothing errored -- the stream decoded "OK: 24 frames" with quietly wrong pixels from the diverged coder state (frame 1: 1342 luma pixels off, growing to |d|=18 by frame 23). The existing warp refusal could not see it (warp_params is None there). Gate: the superres gate now runs --enable-warped-motion=1 by DEFAULT and hard-asserts scaled_warp_suppressed_hits() > 0 -- 12/12 pixel-exact, 25 blocks took the obmc_cdf arm only because of this fix. decode_probe gains EC_PROBE_OUT (raw yuv420p dump), the instrument that located it. Sibling site in decode_inter_block8 is unreachable (refused earlier) and carries a note.
Merge branch 'lane-cwarp': compound blocks warp per reference under a non-translational global model (warp_affine_compound into the compound intermediate); diffwtd_mask (bd-8) round; warp bd generic; gate 6/6 mutation-proven (verifier PASS, 271/0/23)Ahmet Kaan Gümüş · 1a194e3Browse files
fix(av1): eob_pt CDF kept no TX_CLASS_HORIZ/VERT row above 8x8 -- a V_DCT 16x16 var-tx leaf read the 2D table and desyncedAhmet Kaan Gümüş · 5ec0940
fix(av1): eob_pt CDF kept no TX_CLASS_HORIZ/VERT row above 8x8 -- a V_DCT 16x16 var-tx leaf read the 2D table and desynced
libaom picks eob_multi_ctx = (tx_class == TX_CLASS_2D) ? 0 : 1 at EVERY
eob_pt table size (decodetxb.c:200); this crate carried the class-1 sibling
only for 4x4 and 8x8 luma. TxMode::Select made the hole reachable: a 32x32
inter block's var-tx leaf is a 16x16 luma TU, whose inter tx set
EXT_TX_SET_DTT9_IDTX_1DDCT is the only 16x16 set holding V_DCT/H_DCT.
Adds eob_pt_256_luma_class1 and the three chroma siblings (an inter block's
chroma TU inherits its luma unit's tx_type, so 1D classes reach chroma too),
their defaults from av1_default_eob_multi{256,64,16}_cdfs[q][plane][1], and
their per-frame counter resets. 32-point and larger need none (DCT_IDTX /
DCTONLY hold no 1D type).
Found by msac range ladder vs instrumented aomdec on r1's failing seed-43
stream: first divergent element is the eob of the 16x16 leaf at mi (4,8),
ref eob=248 rng=65032 vs ours eob=247 rng=56584 with identical all_zero and
tx_type ranges. All four frames of that stream are now pre-filter bit-exact.
Gate a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact is
green and gains a 10-bit arm (-b 10 --input-bit-depth=10); suite 269 passed
/ 0 failed / 23 ignored.fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)Ahmet Kaan Gümüş · cbf9f54
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN) lane-inter8 r2. `Neighbours`' inter side bands (skip, skip_mode, is_inter, ref0/ref1, comp_group_idx, compound_idx, interp filter) were SUB(16px)-granular, so all four 8x8 leaves of a split 16x16 shared one slot. They are now mi(4px) granular (`record_inter_rect_mi` / `record_compound_ctx_rect_mi`, readers index by mi), which makes the r1 `prev_leaves` sibling-override hack unnecessary -- each leaf stamps its own 2x2-mi span right after it decodes. Two further defects that the granularity change exposed, both class context-read-from-one-cell: 1. `decode_inter_block8`'s COMPOUND arm `return`ed before the end-of-function `record_mi`/`fill_lf_grid` the single-ref arm falls through to. Every leaf in the gate's stream is compound, so a split 16x16 left `above_side_mi` at 16: the 16x16 below it computed partition ctx 0 instead of 1 and read PARTITION_NONE where aomdec read PARTITION_SPLIT. 2. `get_comp_group_idx_context`/`get_comp_index_context` took the leaf's ENCLOSING 16x16 corner (`outer_at`); they now take mi coordinates and the leaf passes its own. Also threaded the frame's temporal mv field (`tpl_frame`) into the leaf's two mv stacks, which passed `None` while `decode_inter_block` one level up always passed it (class parsed-then-discarded). Alignment only: it did not move this stream's ladder (no `use_ref_frame_mvs` here). Gate a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact is GREEN and un-ignored (4 frames pixel-exact vs ffmpeg, interior-split counter asserted). aomdec EC_MODE ladder 42/57 -> 57/57. The 10-bit twin stays ignored: it dies on "an INTER 32x32 partition type ... (value=9)", and `EC_TRACE=1 aomdec` proves that stream contains no value=9 anywhere -- our own desync (class refusal-from-own-desync), disproving the r1 ledger line that blamed aomenc for emitting PARTITION_VERT_4.
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gateAhmet Kaan Gümüş · 3f461cf
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gate Every pixel gate here compared decode_stream's output against ffmpeg/aomdec y4m, and both emit SHOWN frames only, so a hidden (show_frame=0) alt-ref frame -- which his films are full of, aomenc's default --lag-in-frames -- was decoded, stored into a reference slot and never compared to anything (class gate-blind-to-hidden-frames). - scripts/instrument-aom-oracle.sh rung 12: EC_AV1_FINAL_DUMP=<prefix> in the instrumented aomdec -> <prefix>.f<N> per DECODED frame (decode order, hidden included), after CDEF+superres+loop restoration, i.e. the frame as stored into the reference buffer; Y/U/V crop-sized rows, 8-bit u8 / high bitdepth u16 LE (bit-depth correct, unlike the u16->u8 narrowing debug dumps). - ec-av1 stream.rs: matching EC_AV1_FINAL_DUMP at the ref-slot store site, same layout; prefix from a thread-local (set_final_dump_prefix) falling back to the env var so a gate cannot race a sibling test's decode. - test helper decode_all_frames_vs_oracle() + gate a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact: aomenc --auto-alt-ref=1 --lag-in-frames=25 --arnr-maxframes=0 on moving content, 8-bit and 10-bit, hard assert hidden >= 2, byte-exact per decode-order frame. Result: 43 frames / 3 hidden each depth, all pixel-exact. --arnr-maxframes=0 is load-bearing and measured: with libaom's temporal alt-ref filter on, the same recipe emits 0 hidden frames (vacuous gate).
fix(av1): libaom-exact has_tr/has_bl rows for the 64x32/32x64 strips too + lane-rectx r4 reportAhmet Kaan Gümüş · 725112d
fix(av1): libaom-exact has_tr/has_bl rows for the 64x32/32x64 strips too + lane-rectx r4 report The rect reach tables' fallthrough arm was the 16x32 row; the superblock-level strips get their own transcribed has_tr_64x32/has_tr_32x64 and has_bl_64x32/has_bl_32x64 values now. Re-ran the four gates that reach those sizes: 4 passed, 0 failed.
wip(rectx): r4 capped at 75 turns -- preserved by orchestratorAhmet Kaan Gümüş · e86194fBrowse files
wip(rectsplit): r2 capped at 75 turns before running gates -- SB-level split-tx per-TU path + gate rewrite (per-attempt counters), preserved by orchestratorAhmet Kaan Gümüş · ec3268eBrowse files
Merge branch 'lane-covbd': gate_coverage derives coverage per (tool x bit depth); 19 of 26 tools never exercised at 10-bit, 7 of them enabled only by 8-bit gatesAhmet Kaan Gümüş · 1584c09Browse files
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)Ahmet Kaan Gümüş · 9235c22
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24) Merge fixup: lane-part32's new decode_block_rect/decode_block_rect64 call sites (4 AB arms + the strip64! macro) needed HEAD's added `reduced_tx_set` argument.
fix(av1): palette gates pixel-compare every decoded attempt, and sub-16 leaves clear their own palette neighbour stateAhmet Kaan Gümüş · 588a554
fix(av1): palette gates pixel-compare every decoded attempt, and sub-16 leaves clear their own palette neighbour state Gate integrity (class gate-skips-on-its-own-failure): both rect palette gates had a third bucket -- attempts that decoded fine but whose hit counter did not move skipped the pixel comparison entirely (16/70 per gate). The counter now only decides whether an attempt counts toward the hit assertion; every successful decode is compared. This immediately exposes a pre-existing chroma-only mismatch (rgbtestsrc 128x128 cq=55, U plane, 30 px, max |d| = 2), so both gates are RED -- proved pre-existing by stashing the decode.rs diff. Stale neighbour state (class cdf-row-held-constant): record_palette_y/uv_rect's 'for cell in 0..w / SUB' loops were no-ops below 16px, and neither decode_leaf_rect nor decode_leaf8 recorded anything, so a sub-16 leaf left a previous block's palette size and colours in the above/left arrays for the next block's ctx and colour cache. Both leaves now stamp size 0 over their own cell. Also corrects lanes/palette2-r7.report.md's aomenc command line, which named two flags the code never passes.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 0810a85
test(av1): gate coverage is per (tool x bit depth), not per tool Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration path was never exercised and two hbd defects (SGR box sums unscaled, Wiener clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone. gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed 26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an explicit --enable-<tool>=1 in a gate of that depth retires an entry. 45 gates, 4 of them 10-bit.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 969b81e
test(av1): gate coverage is per (tool x bit depth), not per tool Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration path was never exercised and two hbd defects (SGR box sums unscaled, Wiener clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone. gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed 26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an explicit --enable-<tool>=1 in a gate of that depth retires an entry. 45 gates, 4 of them 10-bit.
docs(sub8): round 5 report -- chroma edge-filter type root cause, gate green, suite 269/0/22Ahmet Kaan Gümüş · 278df5fBrowse files
Merge lane-rectsplit r1 (3627fe9): HORZ/VERT intra strips with split transforms decode per transform unit; filter intra over bw x bh; 32-level refusals lifted with gates (20/20, 40/40); SB-level split-tx arm stays refused (verifier PARTIAL: r2 owns the SB gate rewrite)Ahmet Kaan Gümüş · 2bfe1bbBrowse files
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406)Ahmet Kaan Gümüş · ae5d89d
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406) Two defects, both on the sub-16x16 rect strip path: 1. `Reach::of_rect` looked up `HAS_TOP_RIGHT_RECT`/`HAS_BOTTOM_LEFT_RECT` indexed by `bw == 16` -- tables transcribed for the 32x16/16x32 strips only. A 16x8 block therefore read has_tr_16x32/has_bl_16x32 (4 bytes) where libaom reads has_tr_16x8/has_bl_16x8 (16 bytes), and an 8x16 read the 32x16 rows. `top_right_rect`/`bottom_left_rect` are now libaom `has_top_right`/`has_bottom_left` verbatim at block granularity, with the 16x8/8x16 tables added. Symptom: a D203 16x8 strip's prediction was exact until the ray first reads BELOW its own height, then diverged (first diff at (44,18) of a 64x64 key frame, growing to the whole lower-right frame). 2. Cherry-picked lane-sub8 1841406's mi-granular intra-mode neighbour map (`sub8_mode_col/row`, `record_mode_mi`, `mode_above_mi`/`mode_left_mi`, plus `has_tr_4x4`/`has_bl_4x4` in encode.rs); the split-4x4 hunks are dropped, this branch has no `decode_leaf_split4`. `decode_leaf_rect` now reads through that map and records its own bw x bh span, which fixes the wrong `kf_y_mode` CDF row r3 located at leaf mi=(4,12). Gate `a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact` is green: pixel-exact vs ffmpeg, rect_leaf_coeff_hits=8 (6 non-skip 16x8 + 1 non-skip 8x16 luma transforms). Its recipe moved to mandelbrot start_x=-0.6 cq16 with --enable-filter-intra=0 (filter intra on a strip is a separate, still-refused predictor).
fix(av1): combine_compound folded two shifts libaom keeps separateAhmet Kaan Gümüş · cc39f29
fix(av1): combine_compound folded two shifts libaom keeps separate libaom's `av1_highbd_dist_wtd_convolve_2d_c` (and its lowbd twin) applies a TRUNCATING `>> DIST_PRECISION_BITS` to the weighted sum and only then `ROUND_POWER_OF_TWO(.., round_bits)`. We folded both into `Round2(sum, 8)`, which rounds one LSB high whenever `(sum >> 4) + 8` is one below a multiple of 16 and the dropped low 4 bits are non-zero. Bit-depth independent (the CONV_BUF round_offset cancels exactly in this crate's unbiased intermediate domain), so it is a rare off-by-one at any depth -- raised by lane-cwarp's measurement that 10-bit compound still mismatches frame 1 luma while single-reference 10-bit is 6/6 exact. Unverified against that fixture. cargo test -p ec-av1 --lib -j3 compound: 16 passed, 0 failed, 73.58s (includes the real-aomenc 8-bit compound and masked-compound gates).
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`Ahmet Kaan Gümüş · f034839
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`
`get_intra_edge_filter_type` (reconintra.c:974) picks the directional
edge-filter strength/upsample table from the CHROMA neighbours' `uv_mode`
for planes 1/2; `decode_leaf8` and `decode_leaf_split4` passed a hardcoded
`false` for every chroma reconstruct/read_plane, so a directional chroma
block next to a smooth-uv_mode one filtered its above edge with kernel
{0,4,8,4,0} (strength 1) where libaom uses {0,5,6,5,0} (strength 2).
The coarse SUB-grid `above_uv_mode`/`left_uv_mode` slots cannot name that
neighbour once a 16x16 is split into 8x8 leaves (the leaf above writes the
same row slot the block to the left owns), so this adds the `uv_mode` twin
of `sub8_mode_col`/`sub8_mode_row` -- `uv_mode_col`/`uv_mode_row`, written
by `record_rect`, `record_split_luma`, `decode_leaf8` and
`decode_leaf_split4`, read mi-exact by `smooth_uv_neighbour` with the
coarse slot as fallback.
lane-sub8's gate `a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact`
goes RED (4 chroma pixels, U/V row 20 cols 18-19, |delta| <= 3) -> GREEN
(4 firing + pixel-exact runs). Also drops the stale
"a partition below 16x16 other than a clean split" capability claim, which
r4's fixes removed from the decode path (refusal_inventory RED -> green).