forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on aadcbfd0003eb5aa044c168e9ab84b0b1d7905b0

2026-08-30

Merge branch 'main' into lane-lr; LR gate is GREEN after the SGR table fixAhmet Kaan Gümüş · aadcbfd
Merge branch 'main' into lane-lr; LR gate is GREEN after the SGR table fix

r9 resolved every conflict and hit its turn cap before compiling. I finished
it: three of main's newer gate call sites were missing this branch's
LoopRestorationParams argument (git merged the text cleanly and the result did
not compile -- same semantic-conflict shape as the delta_q merge), and main's
"a frame with loop restoration enabled" refusal is retired by this branch, so
refusal_inventory drops it.

The result: a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly
PASSES. The one-pixel SGR gap that survived rounds 5, 6 and 7 was
7ad6d77's mistranscribed SGR_X_BY_XPLUS1 entries, not a sampling or
stripe-boundary defect.

Suite 260 passed / 0 failed.
Merge branch 'lane-palette': palette-Y blocks decode pixel-exactAhmet Kaan Gümüş · 2195bbd
Merge branch 'lane-palette': palette-Y blocks decode pixel-exact

Blocker (3) closed. Root cause was call ORDER, not a table: every symbol was
already bit-exact through read_palette_colors_y, and the range diverged exactly
at decode_color_index_map's entry because libaom reaches decode_color_map_tokens
from parse_decode_block AFTER the whole mode-info decode, including UV palette
mode_info and filter_intra. We called it inline after the Y colours and never
read UV palette mode_info at all. Fix: read UV palette mode_info, defer the
index map past filter_intra. UV palette reconstruction stays refused by name.

enable-palette leaves NEVER_EXERCISED with positive evidence -- the new gate
passes --enable-palette=1 -- so intrabc is now the last entry.

Two conflicts resolved here, both additive-vs-additive:
- Neighbours' delta_lf_grid (lane-realworld) and the palette neighbour cache
  (lane-palette) are independent fields; kept both.
- Three lanes each numbered their new oracle instrumentation rung "6".
  lane-palette's two are renumbered 8 and 8b behind superres's 6 and 7.

Suite 256 passed / 0 failed.
Merge branch 'lane-superres': key-frame superres decodes pixel-exact (3/3 frames, superres_hits=3)Ahmet Kaan Gümüş · eb818a1
Merge branch 'lane-superres': key-frame superres decodes pixel-exact (3/3 frames, superres_hits=3)

Root cause was deblocking the mi-alignment margin: libaom's set_lpf_parameters
early-returns TX_4X4 once x >= dst.width or y >= dst.height -- the CODED frame
dimensions, not the mi-grid-padded extent our true_width/true_height used. That
early return is also why r6's two oracle trace points never fired.

Two guard adjustments the merge forced, both tightening rather than relaxing:
- refusal_inventory gains the lane's new inter-frame superres refusal.
- gate_coverage now closes a coverage hole only on POSITIVE evidence -- some
  gate passing . It used to retire an entry as soon as a
  gate merely left the flag off its command line, which this merge would have
  done to palette and intrabc: aomenc's default for both is content-dependent,
  so 'defaulted' means unknown, not exercised. Negative-checked: flipping one
  gate's --enable-palette to =1 fails the test by name.

Suite 255 passed / 0 failed.
docs(av1): lane-palette r7 reportAhmet Kaan Gümüş · 745cab9Browse files
Merge branch 'lane-realworld': delta_q/delta_lf decode 40/40 pixel-exact (delta_q_hits=delta_lf_hits=1920, hard-asserted)Ahmet Kaan Gümüş · a74bb66
Merge branch 'lane-realworld': delta_q/delta_lf decode 40/40 pixel-exact (delta_q_hits=delta_lf_hits=1920, hard-asserted)

Blocker (2) of the default-aomenc-settings chain closed. Recipe needs
--deltaq-mode=2 (mode 1 is content-dependent) plus the separate
--delta-lf-mode=1.

The merge was textually clean but semantically broken: lane-tiles' new
tile-row gate calls decode_key_frame_tile_with_cdfs with 16 args while this
branch gave the function a 17th (DeltaParams). Added header.delta at
stream.rs:6396 to match the four sibling call sites.

Suite 249 passed / 0 failed.
fix(av1): SGR_X_BY_XPLUS1 mistranscription (av1_x_by_xplus1[101] and [165..=169])Ahmet Kaan Gümüş · 09e8afa
fix(av1): SGR_X_BY_XPLUS1 mistranscription (av1_x_by_xplus1[101] and [165..=169])

Call-unique debug dump (gated on the pinned stream's own decoded xqd ==
[-16,-32], not a reused coordinate) traced r6's 3110-vs-3109 divergence to
the dense-arm "u" tap's A value: our compute_ab produced (254,303) for
z=101 where libaom's real table gives (253,454). The 9-byte input window
was already correct (r7); the bug was in the const table itself, off by
one at index 101 and short 5 entries in the 254 run at 165..=169.
Regenerated both SGR tables straight from
~/.cache/aom-oracle/src/av1/common/restoration.c to rule out any other
slip (SGR_ONE_BY_X already matched exactly). Pinned stream
fixtures/lr-sgr-r7.obu now decodes pixel-exact on all three planes.
Merge branch 'lane-tiles': tile ROWS decode pixel-exact (bypass + decode_stream gates, edge and interior row boundaries, loop filter ON; rows>1 refusal lifted)Ahmet Kaan Gümüş · e89401f
Merge branch 'lane-tiles': tile ROWS decode pixel-exact (bypass + decode_stream gates, edge and interior row boundaries, loop filter ON; rows>1 refusal lifted)

Also closes context_update_tile_id != 0 with no code change: decode.rs already
read it generically at both tile loops, and stream.rs carried a stale comment
claiming a refusal that never existed anywhere in the crate. Proven live
instead of shipped forward -- aomenc picks 1/2/3 across the four-tile-row
gate's seed sweep, all pixel-exact, hard-asserted.

Suite 248 passed / 0 failed.
fix(av1): palette-Y decode order -- UV mode_info + defer index map past filter_intraAhmet Kaan Gümüş · 37efa9f
fix(av1): palette-Y decode order -- UV mode_info + defer index map past filter_intra

r6 pinned the root cause by range trace: decode_color_index_map was called
inline right after the Y colours, but libaom's av1_visit_palette runs it
only after the WHOLE mode-info read (UV palette mode_info +
filter_intra), from parse_decode_block. Ports the UV palette mode_info
read (mode symbol + refusal-by-name if it fires, no need to read
size/colours since we bail immediately either way), moves the Y
colour-index-map decode to after filter_intra, and removes the r3/r4
"index map decodes but pixels don't match" refusal now that the real
gate is pixel-exact against ffmpeg.

Gate a_real_aomenc_stream_with_palette_y_decodes_pixel_exact (renamed
from *_refuses_by_name) now asserts a real pixel match instead of the
old named refusal; refusal_inventory.rs drops the retired string.
docs(av1): lane-superres r7 report -- gate closed, deblock clip is the root causeAhmet Kaan Gümüş · 0642e9c
docs(av1): lane-superres r7 report -- gate closed, deblock clip is the root cause

Merge note and stage-4 (inter-frame superres) deferred per charter.
docs(av1): lane-tiles r8 reportAhmet Kaan Gümüş · a8f1aedBrowse files
fix(av1): deblock clips to coded frame_width/height, not the mi-aligned marginAhmet Kaan Gümüş · 81df735
fix(av1): deblock clips to coded frame_width/height, not the mi-aligned margin

Charter hypothesis 1 confirmed: libaom's loop filter never visits the
padding between the coded frame_width/height and the next mi-aligned
true_width/true_height (the margin reconstruction still fills but the
filter loop skips). deblock_plane/apply_deblock now bound their x0/y0
loops by frame_width/frame_height (frame_height.div_ceil(2) for chroma),
closing the superres gate: a_real_aomenc_superres_key_frame_sequence_
decodes_pixel_exact now passes (3/3 frames, superres_hits=3). Full
ec-av1 suite: 238 passed, 0 failed, 17 ignored -- no regression.
docs+test(av1): drop the stale context_update_tile_id refusal claim, hard-assert it liveAhmet Kaan Gümüş · 99f3d63
docs+test(av1): drop the stale context_update_tile_id refusal claim, hard-assert it live

stream.rs's multi-tile comment claimed a context_update_tile_id != 0
refusal existed "further down" -- it did not; decode.rs has read
tile_info.context_update_tile_id generically (never hardcoded to 0) at
both tile-loop sites all along. Confirmed live via a probe on the
four-tile-row gate: aomenc's own RD-driven tile-size heuristic picks
1/2/3 as often as 0 across the 20-seed sweep, all pixel-exact. Fixed
the stale comment and added a hard assert
(saw_nonzero_context_update_tile_id) to
a_real_aomenc_stream_with_four_tile_rows_decodes_pixel_exact so this
proof can't silently stop firing.
Merge branch 'main' into lane-realworld: multi-tile decode meets delta_q/delta_lfAhmet Kaan Gümüş · 772ae7b
Merge branch 'main' into lane-realworld: multi-tile decode meets delta_q/delta_lf

Resolves nine conflicts (eight gate-body hunks in stream.rs, one in
decode.rs's inter tile function): kept both new stream.rs gates
(delta_q/delta_lf and main's two-tile-column-inter-frame test) as
separate functions rather than interleaving them, kept main's bit-depth
refusal alongside this branch's already-landed delta_q/delta_lf reads
(dropping main's now-stale delta_q/delta_lf refusal), and threaded
DeltaParams' frame-level flags (set once) plus CURRENT_Q_IDX/
CURRENT_DELTA_LF (reset per tile, mirroring the key-frame tile function)
into main's new per-tile loop in decode_inter_frame_tile_with_cdfs. Also
fixed a missed decode_key_frame_tile_with_cdfs call site (the
four-tile-columns test) that main added without the DeltaParams arg this
branch's signature already carries.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 246 passed, 0 failed,
17 ignored.
test(av1): interior tile-row boundary gate (four rows), mirroring r7's four-column gateAhmet Kaan Gümüş · 2451a89
test(av1): interior tile-row boundary gate (four rows), mirroring r7's four-column gate

a_real_aomenc_stream_with_four_tile_rows_decodes_pixel_exact --
--tile-rows=2 (TileRows=4), 64x256, loop filter ON, through
decode_stream. Proves an interior row boundary (row 1/2, neither top
nor bottom frame edge) the two-tile-row gate's edge case (row 1 is
also the bottom edge) couldn't exercise, same reason r7 needed 4
columns rather than 2. 20/20 pixel-exact vs ffmpeg, 0 refusals, hard
tile_hits > 2 assert.
feat(av1): lift the tile-rows refusal, gated through decode_streamAhmet Kaan Gümüş · b6920d4
feat(av1): lift the tile-rows refusal, gated through decode_stream

Same order as r7's column lift: the r8-stage-1 bypass gate proved the
underlying per-tile row decode + row deblocking correct (20/20, loop
filter ON), so this commit lifts decode_stream's tile_info.rows > 1
refusal and adds
a_real_aomenc_stream_with_two_tile_rows_decodes_through_decode_stream
to re-prove it through the real entry point (20/20 pixel-exact, 0
refusals, hard tile_hits > 1 assert). refusal_inventory.rs's pinned
list drops the matching string in the same commit so
capability_claims_are_declared_not_scattered and
the_decode_path_refuses_exactly_the_listed_cases stay in sync with the
live refusal set.

Tile columns (any count) and tile rows (2, proven) are no longer
capped; only non-uniform tile spacing, several tile-group OBUs per
frame, and context_update_tile_id != 0 stay refused.
diag(av1): EC_AV1_TRACE range-ladder inside decode_color_index_map + palette Y mode/size/colors (lane-palette r6)Ahmet Kaan Gümüş · f62adbf
diag(av1): EC_AV1_TRACE range-ladder inside decode_color_index_map + palette Y mode/size/colors (lane-palette r6)

Range-ladder bisect against aomdec's EC_TRACE_PALETTE rung (rungs 6/6b)
on the r3/r4 smptebars gate fixture: every symbol up through
read_palette_colors_y matches the oracle's ranges exactly
(partition_w32 rng, skip/y_mode/uv_mode, palette_y_mode, palette_y_size,
palette colours all bit-identical). The desync starts right after --
libaom's decode_color_map_tokens is NOT called inline from
read_palette_mode_info; it runs later, from parse_decode_block via
av1_visit_palette, after palette UV mode_info (mode/size/colors, which
this decoder does not read at all yet) and filter_intra. Our
decode_color_index_map is called immediately after the Y colours
instead, so it reads the color-index symbols against the wrong point in
the bitstream whenever a block is chroma-referenced with UV_DC_PRED
(this gate's block: bsize_ctx=4, uv_mode=0). Confirmed by patching a
throwaway EC_PRE_PALETTE/EC_PALETTE_Y_MODE/SIZE/COLORS print into the
oracle's decodemv.c (not committed, reverted after use) -- ranges
matched ours field-for-field through EC_PALETTE_Y_COLORS rng=39432, then
the oracle's own decode_color_map_tokens entry read rng=51752, proving
UV palette mode_info consumed real bits in between that this decoder
skips.

Adds an EC_AV1_TRACE-gated EC_PAL/EC_PAL_VAL print inside our own
decode_color_index_map (row/col/ctx/n/rng before, color_idx/rng after,
plus the map[0] uniform read) and TRACE prints around the Y palette
mode/size/colors reads, matching the oracle rung's field names so a
future round's bisect doesn't have to re-instrument. No behaviour
change: the palette_y_mode `&&` short-circuit (only read the symbol
when mode == DC_PRED) is preserved exactly.

Refusal strings: none added or removed -- the palette-Y refusal stays
in place; removing it needs the reorder fix (read/skip UV palette
mode_info in the right position, defer the Y+UV color-index-map reads
to after filter_intra) which is next round's job, not this one's.

Suite: EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4 -- 244
passed, 0 failed, 17 ignored (unchanged).
instrument(av1): SGR real per-tap A/B ground truth + LR gate stream pinAhmet Kaan Gümüş · fb35afc
instrument(av1): SGR real per-tap A/B ground truth + LR gate stream pin

Adds rung 6 to instrument-aom-oracle.sh: drops `static` from libaom's
calculate_intermediate_result (restoration.c) so an external harness can
call it directly. Extends lr-sgr-pin-harness.c to call it with the same
uint8->int32 border-extend copy av1_selfguided_restoration_c does, and
print the real per-tap A/B for all 9 dense-arm neighbours of the r6
failing pixel (row=61,col=6, V plane, seed 46, ep=6/xqd=[-16,-32]).

Result: real libaom's "u" tap (physical row 60) is (253,454), not the
(254,303) r6 recorded -- but this round's live EC_LR_SAMPLE_DUMP trace
(temporary, reverted) shows our own lr_sample already returns the
correct raw bytes (111/154/194 at that column across the 3 box rows,
matching the harness's own /tmp/lr_full.bin buffer bit for bit), and an
independent Python replica of compute_ab's box-sum/z/A/B formula fed
those exact 9 bytes reproduces libaom's (253,454) exactly. So neither
the samples nor the formula, evaluated in isolation, are wrong -- r6's
(254,303) could not be reproduced this round and needs re-derivation
from a uniquely-identified call, not a coordinate-matched one (multiple
frames/seeds share v_start=60).

Also wires EC_AV1_GATE_DUMP into
a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly
(mirroring the masked-compound gate's existing pattern) so a mismatching
seed writes its stream for direct, unambiguous re-decode -- ran once
this round, pinned seed 46's stream to fixtures/lr-sgr-r7.obu (gitignored,
not in this commit).
test(av1): gate tile rows below decode_stream's refusal (bypass)Ahmet Kaan Gümüş · b50bec7
test(av1): gate tile rows below decode_stream's refusal (bypass)

a_real_aomenc_stream_with_two_tile_rows_decodes_pixel_exact -- 64x128,
--tile-rows=1 (TileRows=2), calls decode_key_frame_tile_with_cdfs
directly (decode_stream still refuses tile_info.rows > 1). Loop filter
left ON per the charter, not bypassed with --loopfilter-control=0 --
deblock_plane runs once over the whole picture with no tile-axis
distinction, and the per-tile loop is already row/col-generic
(tile_num / tile_info.cols, set_tile_origin's y0/y1 symmetric with the
column gate's x0/x1). 20/20 pixel-exact vs ffmpeg, 0 named refusals,
hard tile_hits > 1 assert. Proves the underlying row decode + row
deblocking correct before the refusal is touched.
report(av1): lane-realworld r6 -- gate green, intrabc declined this roundAhmet Kaan Gümüş · c4df0cd
report(av1): lane-realworld r6 -- gate green, intrabc declined this round

Job 1 (real-aomenc delta_q/delta_lf gate) done and committed 6981ef5.
Lane declines --enable-intrabc: needs its own DV-prediction machinery
(assign_dv/av1_find_ref_dv equivalents), sized for a dedicated lane per
every comparable feature's multi-round history here, not a same-round
addendum after the charter's stated priority.
style(av1): drop two bindings the multi-tile merge left deadAhmet Kaan Gümüş · 547a1fa
style(av1): drop two bindings the multi-tile merge left dead

decode_stream's `tile`/`tile_bytes` were the single-tile path; every tile is
decoded through `tile_bufs` now, so the first binding survived only to spell
the 'frame OBU with no tile group' refusal -- said directly instead -- and the
second was pure dead computation. A test's `obu_offset` went the same way.
Refusal string unchanged, so the inventory is untouched.

Suite 245 passed / 0 failed.
gate(av1): real-aomenc delta_q/delta_lf gate, both halves proven liveAhmet Kaan Gümüş · 93b89f5
gate(av1): real-aomenc delta_q/delta_lf gate, both halves proven live

r5 ported maybe_read_delta_q/maybe_read_delta_lf and removed the
whole-frame refusal on nothing but code-vs-spec review -- no fixture
anywhere set delta_lf_present, so the removal was an unproven claim.

a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact:
--deltaq-mode=2 (DELTA_Q_PERCEPTUAL) sets delta_q_present_flag
unconditionally once base_qindex>0, sidestepping the default
--deltaq-mode=1 (DELTA_Q_OBJECTIVE)'s extra alt-ref-eligibility/RD
gating (checked against libaom encodeframe.c:2192-2225, not assumed);
--delta-lf-mode=1 ANDs delta_lf_present_flag on top
(av1_cx_iface.c:1269-1270). 128x64 (2 SBs) gives the per-superblock
symbol somewhere to differ; --cpu-used=4 sidesteps the multi-SB
HORZ_4/VERT_B-at-part64 gap the cdef gate's comment already documents.
40/40 attempts: pixel-exact vs ffmpeg, delta_q_hits=1920,
delta_lf_hits=1920, both hard-asserted >0.

Noted but not gate-provable: libaom hardcodes delta_lf_multi =
DEFAULT_DELTA_LF_MULTI == 0 (enums.h:73) with no CLI flag to set it,
so this gate cannot and does not claim to exercise the decoder's
delta_lf_multi (4-plane) branch -- only the single-plane path is
gate-proven by a real stream.

cargo test -p ec-av1 --lib: 243 passed, 0 failed, 17 ignored.
diag(av1): superres gate stream dump + deblock horz-edge trace at mi_col 11Ahmet Kaan Gümüş · 397bfd7
diag(av1): superres gate stream dump + deblock horz-edge trace at mi_col 11

lane-superres r6: localized the 2-pixel gate residue to horizontal-edge
deblock filtering at the rightmost mi column (x0=44..47) of the coded
(pre-superres) frame. EC_SUPERRES_STREAM_DUMP (stream.rs) and
EC_AV1_DEBLOCK_TRACE (decode.rs, HEDGE line at x0==44) are new
env-gated diagnostics, off by default, left in place for the next round.
docs(av1): lane-lr r7 charter; commit r6's SGR pin harness out of the reapable scratchpadAhmet Kaan Gümüş · e33c385
docs(av1): lane-lr r7 charter; commit r6's SGR pin harness out of the reapable scratchpad
docs(av1): lane-lr r6 -- rule out lr_sample, isolate dense-arm 1-LSB gapAhmet Kaan Gümüş · c4474e0
docs(av1): lane-lr r6 -- rule out lr_sample, isolate dense-arm 1-LSB gap

Real libaom (av1_apply_selfguided_restoration_c, linked from
~/.cache/aom-oracle/build/libaom.a) given our exact lr_sample bytes
produces the correct 194, disproving r5's stripe-boundary suspicion.
Fast (r0) arm is bit-exact; divergence isolated to the dense (r1) arm's
flt1 (3109 real vs 3110 ours) though all 9 individual A/B taps
independently reproduce via a from-scratch box-sum of the real bytes.
No code change -- diagnosis only, instrumentation reverted.
merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index readsAhmet Kaan Gümüş · 7b81e30
merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index reads

Resolved six decode.rs conflicts (Neighbours' palette fields + main's
tile-origin fields coexist on the struct/constructor; read_intra_mode
gained both the palette ctx/cache param and main's mi_r/mi_c param,
updated at both call sites; PlaneBuf::reconstruct keeps the palette-buf
override + filter_intra branch and now threads real smooth_neighbor
instead of a hardcoded false) and one gate_coverage.rs conflict
(NEVER_EXERCISED = enable-intrabc only: main's cdef/chroma lanes already
retired enable-cdef/paeth-intra/smooth-intra, this lane's own real
palette gate already retired enable-palette). Added the two refusal
strings the merge introduced (palette-Y pixel-mismatch refusal, split-
luma-transform-under-palette refusal) to refusal_inventory.rs's pinned
list -- suite failed once on the missing one, fixed, green after.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 244 passed, 0
failed, 17 ignored.
Merge branch 'lane-tiles': multi-tile decode, gated on real streamsAhmet Kaan Gümüş · 97ae517
Merge branch 'lane-tiles': multi-tile decode, gated on real streams

Four tile columns with the loop filter ON decode pixel-exact, and so do two
columns across an inter frame -- three new real-aomenc gates, 20/20 each.
decode_inter_frame_tile_with_cdfs has the same per-tile loop the key-frame path
has, and the MV-candidate scan is bounded by giving the shared MiGrid tile
bounds, which clamps all four find_mv_stack* call sites through one choke point
instead of widening their signatures.

Three refusals gone: more than two tile columns, multi-tile with loop filtering
enabled, and inter frames with more than one tile. Only tile ROWS still refuse.

The round before this one had lifted the inter refusal with only a green suite
behind it -- which exercises nothing the refusal guarded -- so the branch was
held out of main until the gate existed. Writing it found that
decode_inter_frame_tile_with_cdfs never incremented TILE_HITS: the gate's own
tile-count assert would have passed while blind. That is twice now that "the
suite is green" stood in for evidence, and twice that the gate found something
the suite could not.

AV1 has no loop_filter_across_tiles bit at all, unlike HEVC -- deblocking
crosses tile boundaries unconditionally -- so the loop-filter refusal was
really the same right-edge reach bound as the column-count one, and both lifted
together once PlaneBuf's tile clamps received real values.

Suite 245 passed / 0 failed.
docs(av1): lane-tiles r7 reportAhmet Kaan Gümüş · 5183637Browse files
feat(av1): lift >2-tile-column and multi-tile-loop-filter refusalsAhmet Kaan Gümüş · cd5068f
feat(av1): lift >2-tile-column and multi-tile-loop-filter refusals

Charter stage 2: re-ran the 2-column key-frame gate with
--loopfilter-control=0 removed -- 20/20 pixel-exact (PlaneBuf's tile_x1/
tile_y1 clamps already receive real values at every call site after r6).
Added a_real_aomenc_stream_with_four_tile_columns_decodes_pixel_exact
(--tile-columns=2 -> 4 columns, loop filter ON, an interior tile boundary
the 2-column fixture can't exercise) -- also 20/20 pixel-exact, proving
the >2-columns cap too. Lifted both refusals from decode_stream (they
were the same underlying PlaneBuf reach-bound gap per r5's note),
updated refusal_inventory.rs's pinned list to match. Tile rows stay
refused (unproven).
fix(av1): refuse a stream whose bit depth is not 8Ahmet Kaan Gümüş · cee9a3d
fix(av1): refuse a stream whose bit depth is not 8

Both AV1 files in this box's own library -- a 2160p HDR10 encode and a 1080p
one -- are yuv420p10le. Probed through examples/decode_probe, both got past
every header refusal this decoder has and stopped at delta_q/delta_lf, which
is a header-level refusal: it says the headers parse, nothing about blocks.

What it was hiding: Picture's y/u/v are Vec<u8>, and nothing in decode.rs reads
bit_depth at all. Once delta_q lands -- which is in flight -- those two files
would have been reconstructed into 8-bit planes and compared against a 10-bit
reference. Not a desync; no symbol goes unread. Just quietly truncated pixels,
which is the failure mode this decoder is built not to have.

Refused by name until the planes are widened. Both films now say so.

Suite 243 passed / 0 failed.
test(av1): gate r6's inter tile-loop lift -- real >1-tile-column INTER streamAhmet Kaan Gümüş · a4b8abf
test(av1): gate r6's inter tile-loop lift -- real >1-tile-column INTER stream

a_real_aomenc_stream_with_two_tile_columns_and_an_inter_frame_decodes_pixel_exact
proves decode_stream's lifted "inter frame with more than one tile" refusal:
2 tile columns, --limit=2 --kf-max-dist=1000 for a genuine inter frame 1,
gradients_source's default speed=0.01 rotation gives real motion so the MV
stack actually crosses the tile boundary. 20/20 pixel-exact vs ffmpeg, hard
tile_hits > frames assert.

Also fixes decode_inter_frame_tile_with_cdfs never incrementing TILE_HITS
(only the key-frame loop did) -- the gate's own tile-count assert would have
been vacuously blind to the inter path without this.
feat(av1): delta_lf -> deblocker path (maybe_read_delta_lf, delta_lf_grid, lf_level)Ahmet Kaan Gümüş · 46e63c7
feat(av1): delta_lf -> deblocker path (maybe_read_delta_lf, delta_lf_grid, lf_level)

New design piece the r3 plan flagged: DeltaLF is a per-superblock running
state (CURRENT_DELTA_LF: Cell<[i32;4]>, same shape as CURRENT_Q_IDX, spec
DeltaLF[FRAME_LF_COUNT]), read by maybe_read_delta_lf (spec
read_delta_lflevel/read_delta_lf_params, same 4-symbol-CDF-then-Golomb-tail
shape as maybe_read_delta_q, called right after it at all 4 block-decode
sites) and snapshotted per 4x4-mi block into a new Neighbours::delta_lf_grid
field (fill_lf_grid_rect, mirroring ref_grid's snapshot pattern -- !multi
mode broadcasts index 0 into all 4 slots at write time so lf_level's
reader never needs the multi flag). lf_level takes the per-block delta and
applies it to the base level (clamp 0..63) before the existing
ref_deltas/mode_deltas scaling, per spec 7.14.4; edge_params looks it up
at both the current and previous mi position via a new plane/dir ->
FRAME_LF_COUNT index map, same as its existing ref_grid lookup.

Removed the stream.rs delta_lf_present refusal (both halves of Job 2 now
read and apply). Refusal removed from refusal_inventory.rs's REFUSALS
list: "a frame with delta_lf_present set (this decoder never applies
per-superblock loop-filter deltas)" -- no replacement string, the
capability is no longer absent.

Full ec-av1 lib suite still green (242/0/17, EC_AV1_REQUIRE_AOMENC=1);
no existing fixture sets delta_lf_present, so this is code-verified
against the spec/libaom read shape, not yet gate-proven against a real
aomenc stream (charter step 4, unstarted this round -- next lever).
docs(av1): lane-tiles r6 reportAhmet Kaan Gümüş · dc4ab21Browse files
feat(av1): inter frame per-tile decode loop, MV stack bounded per tileAhmet Kaan Gümüş · aaa4b1b
feat(av1): inter frame per-tile decode loop, MV stack bounded per tile

decode_inter_frame_tile_with_cdfs now takes tiles: &[&[u8]] + &TileInfo and
grows the same per-tile loop decode_key_frame_tile_with_cdfs already has:
fresh SymbolDecoder + CDF copy per tile, PlaneBuf::set_tile_origin threaded
with real x1/y1 (right/bottom reach bound), only context_update_tile_id's
own adapted table kept as the frame's own output.

mvstack.rs: MiGrid gets tile_row0/col0/row1/col1 bounds (set_tile_bounds,
called once per tile) so scan_row/scan_col/scan_top_right's grid.get()
cannot see a cell outside the current tile -- bounds all four
find_mv_stack*/find_mv_stack_compound call sites through the one grid they
all read, without touching their own signatures.

Lifts the "an inter frame with more than one tile" refusal (verbatim,
removed from stream.rs and refusal_inventory.rs's pinned list). The
>2-columns and multi-tile-with-loop-filter refusals stay -- not
gate-proven safe to lift this round (deferred, see report).

cargo check clean; scoped tests green: tile/frame/mvstack/stream tile
tests (44), refusal_inventory (2), gate_coverage (2), including the
existing mi_units_outside_the_tile_contribute_nothing tile-bound test and
both real-aomenc two-tile-column gates.