Commits
Commits on
f3ecd38183e3fc7a97b58a1617f18e9bda2f844f2026-09-01
docs(cfl): r1+r2 report -- chroma edge filter type below 16x16, root cause + gate + suite totalsAhmet Kaan Gümüş · f3ecd38Browse files
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strengthAhmet Kaan Gümüş · 6c2db9e
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strength
libaom's get_filt_type (reconintra.c) picks the chroma intra-edge filter
strength from chroma_above_mbmi/chroma_left_mbmi's `uv_mode`. Two defects
stacked on the sub-16x16 path:
1. decode_leaf_rect / decode_leaf_8x8 passed a literal `false` for
smooth_neighbor_uv into every chroma reconstruct_rect call -- chroma edges
were never smooth-filtered below 16x16, whatever the neighbour was.
2. The coarse SUB (16px) above_uv_mode/left_uv_mode cells are written by
`for cell in 0..w / SUB`, which runs ZERO times for a block narrower than
16 -- so even the 16x16-and-up readers saw whatever a larger block had
left in the slot, not the real neighbour (class: context read from one
cell / neighbour map coarser than the block).
Fix: Neighbours::sub8_mode_{col,row} carry the uv_mode alongside the luma
mode, and uv_modes_above_left{,_mi} resolve the mi-exact chroma neighbour
with the coarse slot only as fallback (tile-edge guards inherited from the
luma twin). Every chroma reconstruct site now passes the derived
smooth_neighbor_uv; zero `None, false,` sites remain in decode.rs.
Gate: a_real_aomenc_stream_whose_chroma_edge_filter_reads_a_sub16_neighbours_uv_mode_decodes_pixel_exact
(mandelbrot start_x=-0.6 64x64, cq16, filter-intra on, reduced-tx-type-set=1,
min/max-partition-size 8/32) -- 8-bit arm pixel-exact vs ffmpeg with
cfl_blocks=15, angle_delta_uv_blocks=19, uv_mi_overrides=52 hard-asserted;
the 10-bit twin still refuses on another lane's sub-16 AB-partition gap and
is skipped from comparison, with a `compared > 0` assert keeping the gate
from passing vacuously.docs(rectx): r5 report -- mi-exact mode neighbour for every kf_y_mode reader, 32-mi reach stride, chroma-only residue localisedAhmet Kaan Gümüş · eb6a140Browse files
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
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
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
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
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): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tileAhmet Kaan Gümüş · 7f6f585
fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tile av1_filter_intra_allowed_bsize is 'both sides <= 32', so libaom reads the use_filter_intra flag for every DC_PRED 16x8/8x16 block; filter_intra_size_class_rect returned None at those two sizes, so decode_leaf_rect skipped a symbol the encoder wrote and every following block decoded from a desynced entropy stream -- silently, with no error and a whole-frame pixel mismatch. Adds default_filter_intra_cdfs rows 5 (BLOCK_16X8, 9394) and 4 (BLOCK_8X16, 12551) and an asymmetric pin for the pair. Root-caused against the instrumented aomdec EC_TRACE_COEFF ladder: at leaf mi=(2,4) ours and the oracle both decode mode=0 uv_mode=9 skip=0, our range 34808 vs the oracle's 40668; after the fix both are 40668 and the next transform block's all_zero reads 40269 in both. The same ladder proves r2's rect coefficient path (scans, eob alphabets, txb sets, nz-map/br/DC-sign contexts) bit-exact for a real non-skip TX_16X8 leaf and both its TX_8X4 chroma halves. Lane gate stays RED and no refusal is lifted: a second, independent defect (the rect leaf's kf_y_mode context comes from the coarse 16x16 neighbour grid, not the real mi grid) is located to the element in lanes/rectx-r3.handoff.md. cargo test -p ec-av1 --lib: 269 passed, 1 failed (this lane's own gate), 24 ignored.
2026-08-30
wip(rectx): round 2's in-flight work, committed at the turn cap by the orchestratorAhmet Kaan Gümüş · 1122732
wip(rectx): round 2's in-flight work, committed at the turn cap by the orchestrator State unverified: the agent stopped mid-run with no report.
wip(rectx): scan_8x4/4x8 asymmetric pin test vs real libaom scan.cAhmet Kaan Gümüş · 6c0af34
wip(rectx): scan_8x4/4x8 asymmetric pin test vs real libaom scan.c Sweeps the pair together against literal transcriptions of libaom's default_scan_4x8/default_scan_8x4 (av1/common/scan.c) read from ~/.cache/aom-oracle/src. A same-orientation bijection check cannot catch a swap between the two; this pins both arrays element-for- element against sources that differ from each other, so a swap fails deterministically. cargo test -p ec-av1 --lib: 267 passed, 0 failed prior to this test; refusal_inventory pins survived round 1's two refusal removals unmodified.
wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decodeAhmet Kaan Gümüş · 6253922
wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decode Uncommitted at the agent's turn cap, committed by the orchestrator. `cargo check -p ec-av1 --lib` clean; NO test run, NO gate, NO pixel-exact proof yet. Adds EOB_PT_128_LUMA and EOB_PT_32_CHROMA (the only tables the size actually needed -- av1_get_ext_tx_set_type puts TX_16X8/TX_8X16 under use_reduced_set in the SAME EXT_TX_SET_DTT4_IDTX the square Luma16 set already reads, so the adapted intra_tx_type_16[mode] table is correct to share and no new tx_type CDF was needed); TxbSet::LumaRect16x8 and ::ChromaRect8x4; SCAN_8X4/SCAN_4X8; an optional tx_type symbol in read_coeffs_rect, which previously hard-refused it; and the non-skip branch of decode_leaf_rect wired to real coefficient decode through the existing around_mi_rect/record_mi_rect machinery. Note for whoever reads the scan constants: this repo's SCAN_WxH naming is axis-swapped from libaom's -- repo SCAN_16X8 is libaom default_scan_8x16 verbatim. The new pair follows that established convention rather than re-deriving it, and it is NOT yet covered by a transposed-pair test.
Merge branch 'lane-tiny': filter-intra blocks read the wrong tx_type CDF rowAhmet Kaan Gümüş · d21774e
Merge branch 'lane-tiny': filter-intra blocks read the wrong tx_type CDF row A small AV1 key frame decoded SILENTLY WRONG -- no refusal, no error, every symbol reading as a valid value, and wrong pixels out. Measured before the fix, 10 seeds per size: 32x32 3/10 mismatch, 24x24 3/10, 16x32 and 32x16 2/10 each; 16x16, 48x48 and 64x64 clean. Wrong pixels returned as success is the worst failure this decoder can have, and nothing exercised it because every one of the 267 tests uses a frame larger than one superblock. Root cause: libaom's av1_read_tx_type indexes intra_ext_tx_cdf by fimode_to_intradir[filter_intra_mode] when use_filter_intra is set, NOT by the block's ordinary mode -- which under filter intra is always DC_PRED. Every read_plane call site passed the plain mode, so we read the DC_PRED row where the stream had used D157_PRED. One wrong CDF row desynced every coefficient read in the block from the first transform unit onward. Found by range ladder, after two rounds of hypotheses that the ladder then disproved: the mode-info layer matched libaom in value AND range through skip, mode, uv_mode, use_filter_intra, filter_intra_mode and tx_depth; all_zero matched; tx_type was the first divergence, both sides consuming exactly one symbol (37340 vs 42464) -- a wrong row, not a missing or extra read. Two dead ends are recorded in the lane report so they are not paid for twice: FILTER_INTRA_TAPS and the prediction recursion are byte-identical to libaom, and the no-neighbour edge fallback's shared `base` corner is correct. Boundary sweep after the fix: 32x32 10/10, 24x24 10/10, 16x32 10/10, 32x16 8/10. The 32x16 residual is chroma-only with luma bit-exact and is NOT closed -- it has its own round, and the boundary sweep becomes a hard-asserting gate when it is. Suite 267 passed / 0 failed.
docs(av1): lane-tiny r3 report -- root cause, fix, gate deltas, open residualAhmet Kaan Gümüş · c080720Browse files
Merge branch 'lane-rect16': HORZ/VERT intra strips below 16x16, and a vacuous gateAhmet Kaan Gümüş · 86a2b92
Merge branch 'lane-rect16': HORZ/VERT intra strips below 16x16, and a vacuous gate The lane's parked in-flight commit carried a gate whose aomenc recipe was the only one of 43 missing --passes=1, so aomenc silently ran two-pass and wrote an empty stream: the gate decoded zero bytes and asserted its hit counter against nothing. Fixed, with a !stream.is_empty() guard so the class cannot recur silently, and I swept all 42 aomenc recipes on main -- none of the others is missing the flag. The lane also re-checked its own premise before building on it, and it was wrong: mandelbrot's frontmost partition_w16 blocker is PARTITION_HORZ at mi=(0,7), not the VERT_B at mi=(3,2) the parked work targeted -- the earlier claim had confused z-order recursion with raster mi position. New: decode_leaf_rect, a real-mi-addressed sibling to decode_leaf8, needed because decode_block_rect's px = c * SUB cannot address a HORZ/VERT split's offset second strip. PARTITION_HORZ (16x8) and PARTITION_VERT (8x16) at 16x16 now decode, skip-only, with per-mi record/skip/lf grid bookkeeping and prev_leaf chaining. Ceiling stated rather than faked: a coded (non-skip) strip below 16x16 needs rectangular-transform tables this decoder does not have, and is refused by name. Mandelbrot now decodes past mi=(0,7) and stops there instead. Suite 267 passed / 0 failed.
fix(av1): filter-intra tx_type CDF row was the block's raw DC_PRED mode, not fimode_to_intradir(filter_intra_mode) -- desynced entropy stream at the first coefficient TU of every filter-intra block; 32x32/24x24/16x32 tiny-size gate goes 3/10,3/10,2/10 -> 10/10,10/10,10/10, 32x16 2/10 -> 8/10 (residual chroma-only defect open)Ahmet Kaan Gümüş · 3f037c3
fix(av1): filter-intra tx_type CDF row was the block's raw DC_PRED mode, not fimode_to_intradir(filter_intra_mode) -- desynced entropy stream at the first coefficient TU of every filter-intra block; 32x32/24x24/16x32 tiny-size gate goes 3/10,3/10,2/10 -> 10/10,10/10,10/10, 32x16 2/10 -> 8/10 (residual chroma-only defect open) Also lands the EC_TRACE_COEFF per-symbol range ladder in read_coeffs (eob/base_eob/after_bases/sign/post_golomb tags) matching the oracle's decodetxb.c instrumentation added this round, and the all_zero/tx_type entry-range traces that isolated the divergence.
wip(rect16): plain PARTITION_HORZ/VERT below 16x16 (decode_leaf_rect, real-mi addressed); fix vacuous vert_b gate (missing --passes=1)Ahmet Kaan Gümüş · 5925aeeBrowse files
wip(tiny): per-symbol mode-info tracing, and the fixture-path probeAhmet Kaan Gümüş · c690c67
wip(tiny): per-symbol mode-info tracing, and the fixture-path probe EC_TRACE_MODE_STEP-gated EC_ISTEP prints in the square read_intra_mode and read_tx_size, plus an #[ignore]d probe_tiny_fixture_trace that decodes a raw .obu from EC_TINY_FIXTURE_PATH so traces line up byte-for-byte with a saved fixture instead of a regenerated one. Purely additive; no logic changed. Committed by the orchestrator at the agent's turn cap.
Merge branch 'main' into lane-rect16Ahmet Kaan Gümüş · 870526d
Merge branch 'main' into lane-rect16 Brings in 10-bit decode, inter-frame superres, loop restoration, the rect64 qindex fix and the partition/tile work landed since 0bc2a83. Git resolved it cleanly and `cargo check --workspace --all-targets` is clean, so the lane's unverified in-flight edits from 34827e1 at least still compile against current main.
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defectAhmet Kaan Gümüş · d931dba
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defect Two #[ignore]d diagnostics in stream.rs (probe_tiny_frame_size_boundary, probe_tiny_32x32_trace) and a comment in intra.rs recording why the no-neighbour corner fallback is NOT the bug. Measured, 10 seeds per size: 16x16 is 10/10 pixel-exact (so the earlier report that 16x16 fails two thirds of the time was a different recipe and does not hold); 32x32 and 24x24 fail 3/10; 16x32 and 32x16 fail 2/10; 48x48 and 64x64 are 10/10. The clean sizes are the ones that take the SB-level PARTITION_NONE path at side=64, where filter_intra_size_class returns None so filter_intra never fires -- consistent with the cause. Toggling --enable-filter-intra=0 on the exact failing seed-45 32x32 stream flips it from mismatched to exact. Prediction math is ruled out: FILTER_INTRA_TAPS and predict_filter_intra's recursion were checked byte-for-byte against libaom reconintra.c:805-899. Committed by the orchestrator at the agent's turn cap. The agent believed it had reverted intra.rs; it had not -- the residue was comment-only and is kept.
Merge branch 'lane-rect64q': rect64 dequant reads the running qindexAhmet Kaan Gümüş · 1cfbf53
Merge branch 'lane-rect64q': rect64 dequant reads the running qindex decode_block_rect64 dequantized all three planes with the frame-constant base_q_idx parameter it was handed, while every sibling path -- decode_block, decode_block_rect -- reads the running per-superblock CURRENT_Q_IDX, which decode.rs:141-145 documents as the rule. The function reaches maybe_read_delta_q through its own read_intra_mode_rect call, so it updated that thread-local and then dequantized with its own stale snapshot. Merged as a latent-trap removal, with the negative result stated rather than hidden: NO stream in this repository currently makes the difference observable. The existing sb_rect gate traces 105/105 dequant calls with base_q_idx == current_q_idx == 180 (its recipe forces delta_q_present=0), and a sibling gate that drops --deltaq-mode=0 matched 15/40 attempts with the drift counter still 0 -- aomenc's objective delta-q never chose a nonzero delta on that small synthetic content. That gate is committed #[ignore]d with its negative documented, and RECT64_QIDX_DRIFT_HITS stays in the tree so the first stream that does drift says so out loud. Also recorded, so neither claim is trusted twice: lane-part32's seed-42 SB(0,1) mismatch does NOT reproduce here -- a hand-regenerated identical stream gives row 0 col 91 = 81, matching ffmpeg -- and that block has eob_nonzero=false, so no dequant change could move its pixels either way. Suite 266 passed / 0 failed, 20 ignored.
test(av1): instrument rect64 qindex drift, and record that nothing fires itAhmet Kaan Gümüş · 5361167
test(av1): instrument rect64 qindex drift, and record that nothing fires it Adds RECT64_QIDX_DRIFT_HITS plus an EC_AV1_TRACE-gated `TRACE rect64_dequant` line at each of decode_block_rect64's three dequant sites, and an #[ignore]d sibling gate that drops --deltaq-mode=0 in the hope aomenc's objective delta-q would vary q inside a rect64 superblock. It does not, on this content: the existing sb_rect gate traced 105/105 dequant calls with base_q_idx == current_q_idx == 180, and the delta-q-permitting gate matched 15/40 attempts with the drift counter still 0. So the fix in 1d2c3bb is correct by construction -- every sibling path reads CURRENT_Q_IDX, and decode.rs:141-145 documents that as the rule -- but no stream in this repository currently makes it observable. The counter is the instrument that will say so the moment one does. Committed by the orchestrator at the agent's turn cap.
Merge branch 'lane-hbd': 10-bit streams decode bit-exactAhmet Kaan Gümüş · 6b635d6
Merge branch 'lane-hbd': 10-bit streams decode bit-exact
Both of his AV1 films are yuv420p10le, so this is the wall his real
library actually hits. Four bit-depth assumptions were stacked behind
one another, each visible only once the one before it was fixed:
1. decode.rs passed a literal 8 as the bit_depth argument at all eight
dequant call sites while quant.rs was already picking the right
DC_QLOOKUP/AC_QLOOKUP row -- the whole frame came out ~4x low.
2. intra.rs's no-neighbour edge fallback (127/128/129) and dc()'s 128
were 8-bit constants, so predictions went negative and clamped. This
only appeared as a DIFFERENT failure shape after (1).
3. Deblock filter4/sclamp centring and the limit/blimit/hev_thr/flat
thresholds needed << (bit_depth - 8). Correct per libaom
loopfilter.c:517-628 but measured INERT on this fixture (identical
diffs before and after) -- unexercised here, not dead.
4. cdef_filter_block read its primary-tap-set parity off pri_strength
directly instead of pri_strength >> coeff_shift (libaom
cdef_block.c:147). At 10-bit coeff_shift is 2, so pri_strength was
always even and tap set {3,3} was silently never selected. That was
the last 1/4096 pixel.
Gate a_real_aomenc_10bit_stream_decodes_pixel_exact: 0/4096 diffs.
The blanket "bit depth is not 8" refusal is gone, narrowed to the one
case that still reaches unported code -- superres.rs's upscale_row is
still &[u8].
Merge resolution: the dequant sites take main's per-plane quant deltas
AND the lane's bit_depth(); the superres margin keeps main's
inter-frame-capable take_last_frame_wide_margin plus the lane's
10-bit-with-superres refusal.
Suite 266 passed / 0 failed.fix(av1): decode_block_rect64 dequant used stale base_q_idx snapshot, not running CURRENT_Q_IDXAhmet Kaan Gümüş · 528531aBrowse files
docs(av1): lane-hbd r7 report complete -- gate exact, suite green, workspace cleanAhmet Kaan Gümüş · abe00c9Browse files
Merge branch 'lane-superres': inter-frame superres decodes pixel-exactAhmet Kaan Gümüş · b8f30b8
Merge branch 'lane-superres': inter-frame superres decodes pixel-exact The inter-frame path stashed its LAST_FRAME_WIDE_MARGIN picture cropped to the superblock-padded width/height instead of the mi-aligned true_width/true_height the key-frame branch already used. Columns [true_width, width) are never coded -- the last partial superblock stops at true_width -- so the stashed chroma margin carried one column of stale PlaneBuf content past the real decoded extent, and upscale_row's right-edge replicate then consumed it one column early. Luma was exact only because this fixture's luma true_width equals its padded width (64 == 64); the chroma halves diverge by one, which is what made the defect visible at all. Same shorten-vs-replicate class as the truesize lane. superres.rs's per-plane (w + ss_x) >> ss_x step derivation was NOT the bug and matches libaom -- recorded so the next lane does not re-audit it. Gate: a_real_aomenc_key_and_inter_superres_sequence_decodes_pixel_exact, 3 frames pixel-exact, superres_hits=3, predict_scaled_hits=36. Suite 265 passed / 0 failed.
docs(av1): lane-hbd r7 report -- CDEF pri-tap coeff_shift root cause, gate closedAhmet Kaan Gümüş · f646bbdBrowse files
fix(av1): cdef pri-tap index must undo coeff_shift before parity bit (10-bit gate now pixel-exact)Ahmet Kaan Gümüş · d8be076Browse files
fix(av1): inter-frame superres margin used SB-padded width, not true_widthAhmet Kaan Gümüş · f06baba
fix(av1): inter-frame superres margin used SB-padded width, not true_width decode_inter_frame_tile_with_cdfs's LAST_FRAME_WIDE_MARGIN write site cropped the real-decoded margin to the superblock-padded width/height instead of the mi-aligned true_width/true_height the key-frame branch already used -- columns past true_width were never actually coded, so the chroma upscale's right-edge replicate read one column of stale buffer content one position early. Same shorten-vs-replicate class as av1-truesize; fix matches the key-frame branch line for line. Gate: a_real_aomenc_key_and_inter_superres_sequence_decodes_pixel_exact now passes (3 frames pixel-exact, superres_hits=3). Full lib suite: 265 passed, 0 failed, 19 ignored. cargo check --workspace --all-targets clean.
wip(hbd): scale CDEF strength/damping/direction-search by bit-depth coeff_shiftAhmet Kaan Gümüş · 50d59cc
wip(hbd): scale CDEF strength/damping/direction-search by bit-depth coeff_shift libaom cdef_block.c: coeff_shift = bit_depth - 8 scales pri/sec strength (<< coeff_shift) and damping (luma + coeff_shift, chroma one less), and cdef_find_dir normalises each sample (>> coeff_shift) before the -128 centring (cdef_block.c:74). Coded by lane-hbd r6, `cargo check -p ec-av1 --lib` clean, committed by the orchestrator at the agent's turn cap. NOT yet run against the gate.
wip(hbd): scale deblock limit/blimit/hev_thr/flat threshold by bit depthAhmet Kaan Gümüş · 9c66378Browse files
wip(hbd): scale intra no-neighbour fallback (127/128/129) by bit depthAhmet Kaan Gümüş · f973434Browse files
Merge branch 'main' into lane-superresAhmet Kaan Gümüş · 17c9a9c
Merge branch 'main' into lane-superres Resolves the scaled-MC conflict in decode.rs in favour of the lane's structure, and widens predict_scaled to u16 for main's high-bit-depth sample type (fixture included). Lane state after the merge: 264 passed, 1 failed -- the lane's own gate a_real_aomenc_key_and_inter_superres_sequence_decodes_pixel_exact. That is the lane's deliverable, not merge fallout, so this does not go to main yet.
wip(hbd): thread real bit_depth through dequant + deblock filter4 centeringAhmet Kaan Gümüş · 386939cBrowse files
Merge branch 'lane-sbpart': per-plane quantizer deltas threaded end to endAhmet Kaan Gümüş · 768b0da
Merge branch 'lane-sbpart': per-plane quantizer deltas threaded end to end delta_q_y_dc / u_dc / u_ac / v_dc / v_ac were parsed by ec-av1-syntax and used only to decide lossless[segment_id]; the dequantizer ignored them. This threads a QuantDeltas through stream -> decode -> transform so the per-plane offsets reach dc_q/ac_q. Blast radius measured, not assumed: every gate fixture aomenc writes has all five deltas zero, so the suite is unchanged (264/0) -- which also means this is not the rect64 luma mismatch's cause. lane-sbpart r11 disproved that hypothesis and named CURRENT_Q_IDX / segmentation qindex as the next suspect.
fix(av1): thread per-plane quantizer deltas (delta_q_y_dc/u_dc/u_ac/v_dc/v_ac) into dequantAhmet Kaan Gümüş · 8560456
fix(av1): thread per-plane quantizer deltas (delta_q_y_dc/u_dc/u_ac/v_dc/v_ac) into dequant Spec 5.9.12/7.12.2: these were parsed by ec-av1-syntax and used for nothing but the lossless[] check. Threaded QuantDeltas through dequant_coeff_wh/ dequant_wh/dequant_and_inverse_typed(_wh) and all 8 decode.rs leaf call sites, plane-correct (Y has no AC delta). decode_stream's 5 call sites now pass header.quantization.delta_q_*; convenience wrappers pass ::default(). Plain 4-arg dequant/dequant_coeff/dequant_and_inverse (~20 external callers in tile.rs/encode.rs/transform.rs) unchanged. Blast radius measured, not assumed: EC_AV1_TRACE now prints the 5 deltas at parse time. Measured zero on the r10 pinned repro (seed42.obu, base_q_idx 180) and on every stream the scoped decode::/quant::/transform:: suites exercise (27/27 green) -- no gate was passing "for the wrong reason". Charter's 81-vs-76 defect is NOT this: deltas are genuinely zero for seed42, disproven by measurement per the charter's own fallback clause. Pinned repro currently panics on an unrelated pre-existing gap (32x32 partition value=4, later superblock, same shape as the r9 part32-AB dead-end) before it can even reach the pixel comparison. Report names the next suspect (CURRENT_Q_IDX per-superblock delta-q state / segmentation qindex) with a one-line instrumentation step, left for the next round. Red: pinned_sbpart_stream_decodes_pixel_exact still fails (pre-existing, unrelated gap, not a regression from this diff).
docs(av1): lane-hbd r5 report -- steps 1-5 done, 10-bit gate lands redAhmet Kaan Gümüş · f49a7afBrowse files
feat(av1): 10-bit gate + lift the blanket bit_depth refusalAhmet Kaan Gümüş · 4112c99
feat(av1): 10-bit gate + lift the blanket bit_depth refusal ffmpeg_decode_sequence_10bit parses yuv420p10le u16 LE output, leaving the 8-bit helper untouched. a_real_aomenc_10bit_stream_ decodes_pixel_exact drives a real aomenc --bit-depth=10 stream, hard-asserts the parsed sequence header actually says bit_depth==10 before trusting any pixel comparison, then compares against ffmpeg's own 10-bit decode. The blanket "bit depth is not 8" refusal in stream.rs is gone in this same commit -- Picture is u16 now and BIT_DEPTH is wired (set_bit_depth). film_grain.rs/superres.rs keep their own narrow refusals from the previous commit. Currently RED: the gate runs for real (sequence header confirmed 10-bit, not a SKIP) but the decoded luma is off by roughly 4x from ffmpeg's reference (ours ~82-117, ffmpeg ~331-471 for the same gradient) -- a systematic scale defect somewhere in reconstruction for depth != 8, not the "small rounding delta" the charter expected. Landing red per charter; root cause is next round's first job.
feat(av1): narrow bit_depth != 8 refusals for film_grain and superresAhmet Kaan Gümüş · c0c9f9b
feat(av1): narrow bit_depth != 8 refusals for film_grain and superres film_grain.rs's grain LUT/blend and superres.rs's upscale_row are both hardcoded 8-bit. Both call sites now refuse by name on bit_depth != 8 instead of relying on stream.rs's blanket refusal, so lifting that blanket (next step) does not silently miscode either path. Declared in refusal_inventory.rs.
docs(av1): lane-sbpart r11 charter -- per-plane quantizer deltas are parsed then discardedAhmet Kaan Gümüş · add0a25Browse files
feat(av1): wire decode::set_bit_depth from stream.rs per frameAhmet Kaan Gümüş · 1da7ad6
feat(av1): wire decode::set_bit_depth from stream.rs per frame BIT_DEPTH silently defaulted to 8 forever -- set_bit_depth existed (decode.rs) but nothing called it. stream.rs now reads seq.color_config.bit_depth per frame (defaulting to 8 with no sequence header yet, matching every fixture) and sets it right next to set_enable_edge_filter, for the same cross-sequence-on-one-thread reason.
diag(av1): sbpart r10's EC_SBPART_DUMP64 trace; scratch probe strippedAhmet Kaan Gümüş · b615bdc
diag(av1): sbpart r10's EC_SBPART_DUMP64 trace; scratch probe stripped r10 hit its cap without committing. Keeping the env-gated dump in decode_block_rect64 (reusable); removed its throwaway transform test, which was hand-verification scaffolding and had served its purpose. Its scratch fixtures moved to fixtures/sbpart/ (gitignored) so the repro survives. Its finding is in the r11 charter: the defect is NOT in decode_block_rect64.
docs(av1): lane-hbd r5 charter -- wire set_bit_depth, narrow refusals, 10-bit gate, then his filmsAhmet Kaan Gümüş · 6820e1aBrowse files
Merge branch 'lane-hbd': Picture carries u16 samples; the encoder stays 8-bit at its own boundaryAhmet Kaan Gümüş · 8d71aab
Merge branch 'lane-hbd': Picture carries u16 samples; the encoder stays 8-bit at its own boundary This was the blocker the previous round found: Picture.y/u/v are shared by the encoder AND by decode_stream's return value and the DPB reference slots that motion compensation reads back on frame 2+, so the bit_depth != 8 refusal could not lift honestly until this type widened. Boundaries chosen deliberately: the encoder narrows its caller's Picture to local u8 at entry and widens its reconstruction back on the way out; motion::search stays 8-bit (SAD math) with a locally narrowed reference; film_grain and superres narrow at their own edges. Each of those is a place a future 10-bit path will have to earn, and each is now visible instead of implicit. The lane checked -p ec-av1 only, so it did not see that tools/ec-bench builds a Picture from 8-bit y4m; widened those three planes at the call site. 8-bit output bit-exact: 264 passed / 0 failed. Workspace --all-targets clean. Still owed before the refusal can lift: decode::set_bit_depth is written but never called, so the BIT_DEPTH thread-local is dead code defaulting to 8.
wip(hbd): Picture u16 widen complete, --tests compiles (0 errors)Ahmet Kaan Gümüş · fe38d3dBrowse files
wip(hbd): Picture.y/u/v widened to u16, --lib compiles (0 errors)Ahmet Kaan Gümüş · 502402cBrowse files
docs(av1): lane-sbpart r10 charter -- fix the truncated-corner reconstruction; landing red on the lane is allowedAhmet Kaan Gümüş · 2a9daf1
docs(av1): lane-sbpart r10 charter -- fix the truncated-corner reconstruction; landing red on the lane is allowed