Commits
Commits on
0b6be1696580c16b8f1347c9784e2c0eca20e8022026-08-30
fix(av1): derive the key-frame skip context; refuse a split-transform rect stripAhmet Kaan Gümüş · 0b6be16
fix(av1): derive the key-frame skip context; refuse a split-transform rect strip Two defects an adversarial source review found in the intra HORZ/VERT strip merge, both confirmed against libaom. The key-frame intra path read `skip` from `cdfs.skip[0]` unconditionally, while av1_get_skip_txfm_context (pred_common.h:175-181) is above_skip + left_skip. That was latent -- key frames rarely skip -- but the rect strips are skip-only, so every strip this decoder accepts guarantees a skip=1 neighbour, and the second strip of a HORZ pair would have read the wrong CDF row and desynced the rest of the tile. Fixed at all three intra call sites, not just the rect one: the defect is the class, and the pre-existing square site is now load-bearing. The context comes off the mi skip grid, which every path already fills, with an absent neighbour contributing 0 the way an absent above_mi/left_mi does. Second, tx_depth was read and then ignored: the predictor ran over the whole strip regardless, where libaom predicts per transform unit with each unit taking its edges from the previous unit's reconstruction. That is a silent pixel mismatch, and it violates this change's own skip-only contract, so a split transform now refuses by name until the per-TU loop is ported. Full lib suite 224 passed / 0 failed -- the skip-context fix is inert for every existing stream, as it must be.
fix(av1): pin streams to the durable fixtures dir, not a reaped scratchpadAhmet Kaan Gümüş · ae78393
fix(av1): pin streams to the durable fixtures dir, not a reaped scratchpad Three sites addressed a session scratchpad that tmpfs has since reclaimed. Two pinned-mismatch tests could only fail on the read, so pinned_golden4 -- whose bytes do still exist under fixtures/ -- had been dead rather than passing, and it decodes pixel-exact now that it can find them. golden3's bytes are genuinely gone; it now skips by name and says how to re-capture. Worse, the cdf-forwarding gate's unconditional mismatch pin wrote to that same dead path with .expect(), so a real mismatch would have aborted on the write instead of reporting itself. It now writes to fixtures/ and warns rather than panicking, leaving the pixel assert to be the thing that fails. Same class as the reaped-oracle failure that silently voided 20 gates: an instrument parked in a session-scoped directory stops being an instrument.
Merge branch 'lane-intradisp': intra HORZ/VERT strip dispatch (skip-only)Ahmet Kaan Gümüş · 0a532b3
Merge branch 'lane-intradisp': intra HORZ/VERT strip dispatch (skip-only) 32x16 and 16x32 intra strips now read every symbol the spec requires -- skip, y_mode, angle_delta, uv_mode, cfl_alphas, filter_intra, tx_depth -- so the arithmetic decoder stays in sync, and reconstruct pixels when the block is skipped. A non-skip strip, and a strip that selects filter_intra, each refuse by name. The ceiling is not this dispatch: chroma on these bsizes gets a genuinely rectangular TX_16X8 / TX_8X16 out of av1_get_max_uv_txsize with no square escape, and transform.rs has no rectangular transform at all. lane-recttx builds that primitive. Full lib suite 224 passed / 0 failed on the merge. The free-partition gate is flaky by construction (aomenc attempt selection): three runs gave 32/35/33 refusals and 8/5/7 pixel-exact of 40, no clean directional move, reported as such rather than as a win.
docs(av1): lane-intradisp r1 report -- verification of 15b588fAhmet Kaan Gümüş · 6da1ef3
docs(av1): lane-intradisp r1 report -- verification of 15b588f 224/0 full suite, 4/4 named intra gates pass (filter_intra, tx_select, directional_chroma, intra-with-deblocking), free-partitions gate flaky spread reported over 3 runs (aomenc RD attempt-selection, not a regression). golden3/golden4 pinned-test failures are pre-existing (commit bec2741, unrelated stale scratchpad path) -- not this lane. Scope-down (skip-only HORZ/VERT strips; rect-TX and filter_intra square-only ceiling) confirmed and accepted.
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stashAhmet Kaan Gümüş · 770cfc0
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stash Builder hit its turn cap with the whole implementation sitting in a stash; committed verbatim as recovered so it cannot be lost. Gate ladder, report and scope-down rationale still owed.
fix(av1): bound the 8x8-OBMC gate's ffmpeg source with -t; correct a false refusal claimAhmet Kaan Gümüş · 90aeec8
fix(av1): bound the 8x8-OBMC gate's ffmpeg source with -t; correct a false refusal claim The gate's EC_AV1_OBMC8_SOURCE override lets a caller supply a lavfi source that carries no `duration=` of its own; `testsrc2` is endless, so the y4m pipe never closed and the gate hung to its 300 s timeout. `-t` is the bound that holds for every source. Third instance of the class (mandelbrot `end_pts` twice before): bound the trim inside ffmpeg on decode, bound the duration with `-t` on generate. With the bound in place the gate runs 80 attempts in 7 s and shows why it has never fired one 8x8 OBMC block: decode.rs refuses every inter partition below 16x16. Its message claimed "this encoder never writes one", which the run disproves -- reworded to name the real gap.
docs(av1): lane-intradisp r1 charter (intra rect partition dispatch)Ahmet Kaan Gümüş · 0e4b5d5Browse files
Merge branch 'lane-intrarect': rectangular intra prediction (opus-verified vs libaom; 568-case C-dump proof, square paths bit-identical)Ahmet Kaan Gümüş · e33ddfaBrowse files
fix(av1): inter frames' intra blocks inherited a stale enable_intra_edge_filterAhmet Kaan Gümüş · d1585d0
fix(av1): inter frames' intra blocks inherited a stale enable_intra_edge_filter ENABLE_EDGE_FILTER is a thread-local set only by decode_key_frame_tile_with_cdfs; decode_inter_frame_tile never set it, so an inter frame's intra blocks read whatever the last key frame decoded on that thread left behind. Within one stream that is inert (its own key frame sets it first), but it makes decode impure across streams sharing a thread -- a real contamination path, and the shape that produces a suite-only flake. decode_stream now sets it from the sequence header for every stream, covering inter frames. Also teaches build-aom-oracle.sh to reconfigure a build tree that was configured under a different path instead of failing to regenerate.
docs(av1): record verifier PASS + correct two overstated claims in the intrarect reportAhmet Kaan Gümüş · 08bc484Browse files
test(av1): make the 8x8-OBMC gate's recipe searchable (it has never fired)Ahmet Kaan Gümüş · 62aad8f
test(av1): make the 8x8-OBMC gate's recipe searchable (it has never fired) The gate uses smooth gradients, so aomenc's RD never splits below 16x16: 45 attempts, 0 8x8-OBMC blocks, and it 'passes' by printing SKIP -- the owed 8x8-OBMC debt is exactly this. EC_AV1_OBMC8_SOURCE overrides the lavfi source and EC_OBMC8_ATTEMPTS bounds the loop, so a firing recipe can be searched for without a rebuild. No recipe found yet; the search is the next step.
test(av1): C-verify rect intra predictors against an independent transcriptionAhmet Kaan Gümüş · b526e26
test(av1): C-verify rect intra predictors against an independent transcription
lanes/intrarect_dump.c standalone-transcribes dc_predictor_rect,
smooth_predictor, paeth_predictor and the full directional path (edge
filter/upsample + z1/z2/z3, with the intra_edge_filter_strength
blk_wh<=12 fix) from libaom source read this round. intra.rs's new
rect_predictors_match_c_dump test drives the same synthetic neighbours
through crate::intra::predict for 8 rect shapes x 3 flat modes + 17
directional angles x {enable_edge_filter, smooth_neighbor} and
checksum-matches all 568 cases against lanes/intrarect_dump.expected.txt
-- 224/224 lib suite still green (was 223, +1 this test).feat(av1): widen intra::predict/Edges to rect (bw != bh)Ahmet Kaan Gümüş · 24d69ed
feat(av1): widen intra::predict/Edges to rect (bw != bh) Predictor + Edges::build now take (bw, bh) instead of one side: DC's dc_predictor_rect multiply-shift divide (derived, not tabulated, per libaom's own comment -- AV1's only rect ratios 1:2/1:4 leave d==3/5), smooth's separate width/height weight rows, and the directional walk's bw+bh reach with cross-axis edge-filter/upsample extensions (above extends by bh, left by bw -- reconintra.c's txwpx/txhpx swap). Also fixes a latent bug this widening surfaced: intra_edge_filter_strength was missing the blk_wh<=12 branch, unreachable for any square side sum but live for e.g. a 4x8 block. All 21 call sites still pass (side, side); full lib suite green (223/223) proves square behaviour is bit-identical. Tile dispatch still refuses rect/AB partitions -- next lane's job.
chore(av1): oracle build auto-detects nasm/yasm (SIMD when present, generic fallback)Ahmet Kaan Gümüş · 1db238b
chore(av1): oracle build auto-detects nasm/yasm (SIMD when present, generic fallback) nasm landed on the box, so the pinned rebuild now uses SIMD. Verified the SIMD oracle is functionally identical to the C-only one before swapping it in: EC_PART range ladder byte-identical, prefilt recon dumps 24/24 frames identical on rect-flake-2.
feat(av1): commit the oracle localization instrumentation (was lost with /tmp)Ahmet Kaan Gümüş · 6632737
feat(av1): commit the oracle localization instrumentation (was lost with /tmp)
scripts/instrument-aom-oracle.sh idempotently adds the two ladder rungs to the
oracle's aomdec, both env-gated so an uninstrumented run is unchanged:
EC_AV1_PREFILT_DUMP -> per-frame Y/U/V recon written after tile decode and
BEFORE loop filter/CDEF/LR (separates recon from filtering mismatches)
EC_TRACE=1 -> EC_PART/EC_PART_VAL with ctx, tell and msac RANGE per
partition symbol (the range ladder; compare ranges, never tell)
These existed only as hand edits in the reaped /tmp tree. Re-derived against
the pinned v3.13.3 source and verified byte-compatible with the pre-loss
instrument: EC_PART emits the identical rng values (frame 0 mi(0,0) bsize=9
rng=51744) and the dump is the same 4096+1024+1024 layout.
EVIDENCE: rect-flake-2.obu, oracle dump vs our EC_AV1_PREFILT_DUMP --
24/24 frames byte-identical.fix(av1): oracle lives in ~/.cache, not reaped /tmp -- 20 gates were silently vacuousAhmet Kaan Gümüş · 1fc2eb0
fix(av1): oracle lives in ~/.cache, not reaped /tmp -- 20 gates were silently vacuous A tmpfs reclaim wiped /tmp/libaom-src between sessions. aomenc_path()'s only default pointed there, so every one of the 20 aomenc gates hit the SKIP branch and the suite stayed green while proving nothing. - scripts/build-aom-oracle.sh provisions source + aomenc/aomdec under ~/.cache/aom-oracle (pinned v3.13.3, AOM_TARGET_CPU=generic since this box has no nasm; measured same 15.3s/gate as the old SIMD build). - aomenc_path() searches the durable location first, /tmp last (legacy). - EC_AV1_REQUIRE_AOMENC=1 turns a missing oracle into a hard failure so a batch run cannot report green off 20 skips. EVIDENCE: free-partition gate with EC_AV1_REQUIRE_AOMENC=1 -- 5 pixel-exact matches, rect_partition_hits=7 partab_hits=2, 15.34s.
2026-08-29
Merge branch 'lane-wii': wedge-interintra blend decodes (opus-verified vs libaom; gate fires wii_hits 2-7 per run, hard-asserted)Ahmet Kaan Gümüş · f03f2a3Browse files
fix(av1): wii gate -- bound mandelbrot with -t (end_pts never ends; 1h hang), drop vacuous refusal asserts, hard-assert wii_hits (verifier finding); reportAhmet Kaan Gümüş · 098e9a7
fix(av1): wii gate -- bound mandelbrot with -t (end_pts never ends; 1h hang), drop vacuous refusal asserts, hard-assert wii_hits (verifier finding); report
feat(av1): wedge-interintra blend (adapting wedge_idx symbol, fixed sign 0, box-averaged chroma mask); dedicated gateAhmet Kaan Gümüş · 841cf14
feat(av1): wedge-interintra blend (adapting wedge_idx symbol, fixed sign 0, box-averaged chroma mask); dedicated gate Flash-builder r2 output, orchestrator-committed: builder hit its cap without committing. Lib 221/0 + 14 pins green re-run by orchestrator; the slow wedge gate runs separately.
Merge branch 'lane-partab': HORZ_A/VERT_A/VERT_B inter partition arms decode (opus-verified vs libaom decode_partition; AB gate fires live, refusals forbidden)Ahmet Kaan Gümüş · 51096e8Browse files
style(av1): re-indent the free gate's summary eprintln (verifier nit)Ahmet Kaan Gümüş · e71b2deBrowse files
docs(av1): partab r1 report -- AB inter arms fire live, gates greenAhmet Kaan Gümüş · 1e925f7Browse files
wip(lane-partab): HORZ_A/VERT_A/VERT_B INTER arms decode; PARTAB_HITS atomic; dedicated AB gate (7 exact, hits=6)Ahmet Kaan Gümüş · edca059Browse files
wip(lane-partab): HORZ_A/VERT_A/VERT_B INTER dispatch arms decode (16x16 squares + 16x32/32x16 strips, PARTAB_HITS atomic); gate report prints partab_hitsAhmet Kaan Gümüş · b391634Browse files
chore: drop compiled wedge_dump binary from the repo (source + expected dump stay)Ahmet Kaan Gümüş · 35de25fBrowse files
Merge branch 'lane-wedge': COMPOUND_WEDGE mask codebook (checksum-verified vs independent C oracle) + blend; gate fires wedge liveAhmet Kaan Gümüş · 1381968Browse files
2026-08-28
fix(av1): overlappable_left steps by the neighbour's heightAhmet Kaan Gümüş · f1a6012
fix(av1): overlappable_left steps by the neighbour's height The OBMC left-column walk stepped by MiInfo.size (width); a 32x16 left strip swallowed the strip below it and its band blended the wrong neighbour prediction (rect-flake-3, +-2 in the second strip's band). Class sweep: all other grid walks step by the matching axis. Pin added; lib 221/0.
fix(av1): mvstack scan weight inc mins by the candidate's cross axisAhmet Kaan Gümüş · d6cb150
fix(av1): mvstack scan weight inc mins by the candidate's cross axis libaom's scan_row_mbmi mins inc by mi_size_high (candidate height), scan_col by width; ours used the scan's own axis at all 4 sites (single + compound). Square candidates hide it; a 32x16 strip above tied weights, reordering DRL entry 1 and suppressing the -5 extended row scan. rect-flake-2 byte-exact, pin added to the default list; lib 220/0.
fix(av1): rect-flake-1 byte-exact -- MiInfo size_h, rect warp samples/projection dims, OBMC per-pass overlap, deblock tx-height gridAhmet Kaan Gümüş · 8e2b541
fix(av1): rect-flake-1 byte-exact -- MiInfo size_h, rect warp samples/projection dims, OBMC per-pass overlap, deblock tx-height grid Three prediction-side root causes after the CDF rows: (1) neighbour records carry true height (size_h) so a rect strip donates warp samples at ITS center and col scans step/weight by height; find_projection gets the strip's true dims -- wmmat now matches aomdec exactly. (2) obmc_blend: per-pass neighbour caps (width-log2 above, height-log2 left) and overlaps (bh/2 above, bw/2 left). (3) tx_h_grid: deblock horizontal edges gate by transform HEIGHT; the single-scalar grid deblocked the strip seam wrong (1-px chroma drift).
docs(av1): lane-wedge r3 report -- full lib suite confirmed green (221 passed, 0 failed)Ahmet Kaan Gümüş · 3e6f7b1Browse files
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize rowAhmet Kaan Gümüş · ab0445e
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize row rect-flake-1 strip 1's motion_mode read diverged on the square-class row; with the true rows the whole HORZ block is entropy-exact (range ladder exact everywhere) -- residual pixel diff is prediction-side (warp).
docs(av1): lane-wedge r3 report (WIP pending background lib-suite result)Ahmet Kaan Gümüş · 50633e4Browse files
docs(lane-rect2): r2 report -- PARTIAL, mvstack caller fix narrows pin, not yet byte-exactAhmet Kaan Gümüş · 519a167Browse files
feat(av1): wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0); gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hitsAhmet Kaan Gümüş · 2803580
feat(av1): wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0); gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hits
wip(av1): rect bw4/bh4 derivation + grid stamp fix, HORZ/VERT arms resurrected -- pin narrows but not byte-exact yetAhmet Kaan Gümüş · 4a33f95Browse files
wip(av1): wedge mask codebook (square 8x8/16x16/32x32), checksum-verified vs independent C dumpAhmet Kaan Gümüş · 99ff391Browse files
Merge branch 'lane-partitions' (incl. lane-maskcomp2): DIFFWTD masked-compound blend decodes; rect write-footprint plumbing; HORZ/VERT strip mvstack defect pinned + refused for r2Ahmet Kaan Gümüş · 9cec3a2Browse files
Merge branch 'lane-maskcomp2' into lane-partitions (integration)Ahmet Kaan Gümüş · 9dc3c1eBrowse files
feat(av1): rect write-footprint plumbing; HORZ/VERT strips refuse by name pending rectangular mvstack (r2)Ahmet Kaan Gümüş · ebb03bd
feat(av1): rect write-footprint plumbing; HORZ/VERT strips refuse by name pending rectangular mvstack (r2) Square-context strip decode desyncs (pin rect-flake-1.obu, frame 16 strip 2: NEARMV picked a different DRL entry -- a 32x16 block's stack weights use n4_h=4). Full strip decode kept in history (4782e57) for r2; free gate recipe re-clamped, green 3/3; lib 220/0; 11 pins byte-exact. HORZ_B's top strip carries the same latent corner-cut -- r2 scope.
wip(av1): decode HORZ/VERT rect partitions (32x16/16x32 skip strips), rect-footprint neighbour/grid writesAhmet Kaan Gümüş · 1d71087Browse files
feat(av1): port the DIFFWTD masked-compound blend (comp_group_idx==1), wedge still refusedAhmet Kaan Gümüş · ddb5bef
feat(av1): port the DIFFWTD masked-compound blend (comp_group_idx==1), wedge still refused diffwtd_mask/blend_masked_compound in mc.rs, algebraically re-derived onto this crate's unbiased predict_compound_intermediate domain (libaom's round_offset bias cancels exactly in both the mask diff and the blend weight sum, proven in the doc comments -- no offset bookkeeping needed). Both comp_group_idx==1 decode.rs sites now build+apply the real blend for COMPOUND_DIFFWTD; COMPOUND_WEDGE still refuses by name (wedge codebook out of r2 scope per the charter's mergeable-partial fallback). Fixed a real latent bug while wiring this in: compound_idx was read unconditionally, missing libaom's comp_group_idx==0 outer gate (dead code before this round since the masked path always errored earlier). Gate a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact flipped to hard assert (masked_compound_hits() > 0) with DIFFWTD refusals now forbidden; hammered 8/8 green, zero pixel mismatches. Full ec-av1 lib suite: 220 passed, 0 failed, 17 ignored.
Merge branch 'lane-maskcomp' (incl. lane-rectgate): masked-compound syntax entropy-exact + free-partition gate; partition coverage gap localized (only NONE/SPLIT/HORZ_B decode)Ahmet Kaan Gümüş · 37a8819Browse files
Merge branch 'lane-rectgate' into lane-maskcomp: both gates kept (integration merge)Ahmet Kaan Gümüş · 18b88dcBrowse files
test(av1): masked-compound gate zero-hit run soft-skips instead of failing the default suiteAhmet Kaan Gümüş · 7aa15de
test(av1): masked-compound gate zero-hit run soft-skips instead of failing the default suite aomenc RD nondeterminism can leave a whole attempt window without a comp_group_idx==1 block; that run proves nothing and must not flake the suite. r2 flips this to a hard assert when the blend lands.
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refusedAhmet Kaan Gümüş · 09ba66a
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refused lane-maskcomp r1. Syntax entropy-exact per libaom decodemv.c 1634-1656: compound_type (COMPOUND_WEDGE/COMPOUND_DIFFWTD), then wedge_index+wedge_sign or mask_type. New CDF tables (COMPOUND_TYPE, WEDGE_IDX) wired through the 4-site checklist (cdf.rs default, cdf_state.rs field/init/reset_counts). Prediction (wedge/diffwtd mask blend) is NOT ported -- both refusal sites still return Err, now after consuming the symbols and naming the blend as the gap. New gate a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact + MASKED_COMPOUND_HITS proves the syntax fires without desyncing surrounding blocks (pixel-exact matches every non-masked-compound attempt). All 11 existing pins + full ec-av1 --lib suite unaffected.
feat(av1): rect/ab free-partition gate; localize real coverage gapAhmet Kaan Gümüş · a3f46bc
feat(av1): rect/ab free-partition gate; localize real coverage gap New gate lets aomenc pick a free partition instead of every prior gate's pinned min=max=32. Finding: charter's "extended partitions landed" premise was wrong -- decode_frame's inter-tile match only handles NONE/SPLIT/HORZ_B; HORZ/VERT/HORZ_A/VERT_A/VERT_B/HORZ_4/VERT_4 all correctly refuse (no silent miscoding). Empirically swept 3 recipes (120 aomenc attempts); no decode defect found, only a genuine 7-of-10-partition-type coverage gap plus an aomenc-side --enable-1to4-partitions=0 quirk (doesn't suppress VERT_4). Diversity counter added but its assertion shipped soft, not a hard panic, since PARTITION_HORZ_B never fires for this fixture regardless of clamp (confirmed against the already-green warp gate too). ec-av1 lib 219/0. Details in lanes/rectgate-r1.report.md.