Commits
Commits on
745cab94e6c81980b4a3aecfe5ff45652f1992472026-08-30
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+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.
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.
docs(av1): lane-palette r7 charter -- UV palette mode_info port + call-site reorderAhmet Kaan Gümüş · 85c5246Browse files
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.
report(av1): lane-palette r6 -- bisect closed, root cause pinned (UV palette mode_info skipped, index-map call site wrong), fix deferred to r7Ahmet Kaan Gümüş · b07f07aBrowse files
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).
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.
docs(av1): lane-tiles r8 charter -- tile rows, gate before liftAhmet Kaan Gümüş · 3290985Browse files
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.
docs(av1): lane-palette r5 report -- job 1 merged+green+committed, job 2 deferred (budget)Ahmet Kaan Gümüş · 2c35d53Browse files
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.
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.
docs(av1): lane-tiles r7 charter -- gate the lifted inter refusal firstAhmet Kaan Gümüş · 9e42602Browse 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.
docs(av1): lane-palette r5 charter -- merge main and resolve, then the bisectAhmet Kaan Gümüş · 51844ccBrowse files
docs(av1): document decode_probe, which 2be815f added without saying soAhmet Kaan Gümüş · e7ae36e
docs(av1): document decode_probe, which 2be815f added without saying so The previous commit measured where five real streams stop, and quietly carried the tool that measured them -- a nine-line example with the comment 'Temporary probe'. It is not temporary: it is the instrument that disproved three refusal strings, and the next lane will want it. Documented as such, with usage, the --obu-not-IVF trap spelled out (an IVF decodes as zero frames rather than as an error, which reads as success), and that case now reported instead of printing 'OK: 0 frames decoded'.
fix(av1): three refusals claimed the encoder never writes what it writesAhmet Kaan Gümüş · 177de6a
fix(av1): three refusals claimed the encoder never writes what it writes
Measured, not reasoned: five default-settings aomenc streams through the
decoder, one command each. testsrc2 192x128 at --cpu-used=0 refuses with "a
partition type this encoder never writes" -- a claim about the world, disproved
by the stream that produced it. The same family sits at the 32x32 level for
both the intra and inter paths.
All three now say what this decoder does not code, which is the true and useful
statement:
"a superblock-level partition type other than NONE or SPLIT (this decoder's
intra tile path codes only those two at 64x64)"
"a 32x32 partition type this decoder does not code (value={part32})"
"an INTER 32x32 partition type this decoder does not code (value={part32})"
Finding those needed a fix to the inventory itself: its scanner stopped at
`unsupported(` and so never saw `unsupported(format!("..."))`. Two refusals were
invisible to it, one of them the INTER claim above. It steps through format!
now, and both are pinned.
Where a default-settings stream stops today, measured this run: palette (Y);
delta_q/delta_lf, twice; the inter path's non-SPLIT superblock partition; and
the intra path's, at cpu-used=0. Four of the five are owned by live lanes; the
superblock-level partition family is not, and is the next lane to arm.
Suite 243 passed / 0 failed.docs(av1): lane-palette r4 report -- job 1 fixed+green, job 2 rung builtAhmet Kaan Gümüş · f1654a3
docs(av1): lane-palette r4 report -- job 1 fixed+green, job 2 rung built VERDICT: PARTIAL. Refusal-by-name shape landed and verified (235/0/17); job 2's palette range-ladder oracle rung (EC_TRACE_PALETTE) built and compiled, bisect itself not run -- handoff for next round included.
fix(av1): palette-Y refuses by name instead of decoding to wrong pixelsAhmet Kaan Gümüş · 71d8f67
fix(av1): palette-Y refuses by name instead of decoding to wrong pixels r3's gate proved a real palette-Y block reconstructs to pixels that mismatch libaom despite every symbol read (colours, index-map wavefront, context, CDF table) checked line-for-line correct -- and left the gate SKIPping on that mismatch, which hid a real stream decoding to silently wrong pixels from the whole suite. decode.rs's palette_y_mode arm now returns a named refusal right after decoding the colours/map (palette_hits still fires, so the read path stays proven non-vacuous) instead of handing the wrong reconstruction to the caller; all the landed reconstruction code stays in place, unreachable until the pixel desync is found. The gate (a_real_aomenc_stream_with_palette_y_refuses_by_name, renamed from ..._decodes_pixel_exact) now hard-asserts that refusal fires with palette_hits > 0, instead of SKIPping on a mismatch. Also adds an EC_TRACE_PALETTE=1 rung to the aom-oracle instrumentation (decode_color_map_tokens's per-pixel range + av1_read_uniform's map[0]) for the next round's range-ladder bisect, per charter job 2. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 235 passed, 0 failed, 17 ignored.
fix(av1): finish r5's set_tile_origin sweep -- key-frame tile loop now greenAhmet Kaan Gümüş · 1a6617f
fix(av1): finish r5's set_tile_origin sweep -- key-frame tile loop now green The two shorthand struct-init blocks r5 flagged (near decode.rs:11661/11673) already carried all four PlaneBuf fields; the actual break was the key-frame per-tile loop's own set_tile_origin(x0, y0) calls at decode.rs:4910-4912, still 2-arg after the signature grew to 4. Thread mi_col1/mi_row1 (this tile's own end, clamped to the plane's padded width/height) through as x1/y1 so the key-frame path's right/bottom reach bound matches the rest of the tree. cargo check clean.
wip(av1): lane-tiles r5 inter per-tile loop at the 75-turn cap (orchestrator commit, mid-edit, does not compile)Ahmet Kaan Gümüş · f79846bBrowse files
test(av1): pin the four gates that turn a decode error into a SKIPAhmet Kaan Gümüş · 2cf5984
test(av1): pin the four gates that turn a decode error into a SKIP A gate named ..._decodes_pixel_exact that cannot decode has failed. Four of them instead print SKIP and return, which keeps the suite green while the gate proves nothing -- the same vacuum as a gate whose feature never fires, reached from the other side. Found by sweeping the class after lane-palette's new gate did it too (it SKIPped on a pixel mismatch it had already diagnosed). Pinned rather than converted: turning them into hard failures without the attempt-loop pattern the newer gates use would trade a silent gate for a flaky one, and five lanes are editing stream.rs right now. The list cannot grow, and each entry comes off as its gate is converted. Negative-checked: dropping one entry fails naming that gate. Suite 243/0.
docs(av1): lane-palette r4 charter -- no SKIP on a known-wrong result; ladder the desyncAhmet Kaan Gümüş · 97e8e94
docs(av1): lane-palette r4 charter -- no SKIP on a known-wrong result; ladder the desync
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documentedAhmet Kaan Gümüş · 7e82cbf
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documented Verified r2's two milestones green first: 234/0 (matches the tree's baseline, nothing to commit for that step). New gate proves the reconstruction path is non-vacuous (palette_hits hard-asserted) but the reconstructed pixels mismatch ffmpeg's decode of the same bytes -- read_palette_colors_y, read_uniform, palette_color_index_context and the PALETTE_Y_COLOR_INDEX CDF table were all checked line-for-line against the aom-oracle source and match exactly, so the actual desync site is still unlocated (documented in the gate's own doc comment and lanes/palette-r3.report.md). SKIPs rather than fails so the suite stays green; removes enable-palette from gate_coverage.rs's NEVER_EXERCISED since a real block now reconstructs from it.
docs(av1): lane-tiles r5 charter -- inter multi-tile, right-edge reachAhmet Kaan Gümüş · 10b5545Browse files
Merge branch 'lane-tiles': key frames with two tile columns decodeAhmet Kaan Gümüş · 5e92401
Merge branch 'lane-tiles': key frames with two tile columns decode decode_key_frame_tile_with_cdfs takes tiles: &[&[u8]] and walks each tile with its own msac and its own copy of the frame's CDFs; Neighbours and PlaneBuf carry a tile origin so a block at a tile's left or top edge sees no neighbour there even though decoded pixels sit at that address. decode_stream threads the real tile buffers, and a 2-column key frame now decodes through decode_stream itself, 20/20 pixel-exact with the tile count hard-asserted > 1. The blanket "more than one tile" refusal is replaced by four scoped ones -- inter frames, tile rows, more than two columns, and loop filtering on -- so the cases that are genuinely unimplemented say which one they are. refusal_inventory records the swap. Two facts the lane paid for: aomenc's default 128px superblock makes a 128x64 frame a single superblock, so any tile fixture needs --sb-size=64; and AV1 has no loop_filter_across_tiles bit at all (unlike HEVC) -- deblocking crosses tile boundaries unconditionally, so the loop-filter refusal is really the same unimplemented right-edge reach bound as the 3-column one. The lane also caught a false PASS in its own draft gate: Tile::offset is relative to the slice parse_obu was handed, and without adding obu_offset back the decoder read garbage that compared EQUAL as flat DC, rather than erroring. Suite 242 passed / 0 failed.
Merge branch 'lane-realworld': the inter path stops assuming SPLITAhmet Kaan Gümüş · 0e15bcf
Merge branch 'lane-realworld': the inter path stops assuming SPLIT decode_inter_frame_tile_with_cdfs read the superblock's part64 symbol and threw it away (`let _ = part64;`), recursing as SPLIT regardless. A real non-SPLIT part64 in an inter frame silently miscoded the whole superblock -- the one failure mode this decoder does not tolerate. It now matches: SPLIT is still inferred for the three straddle/forced-half cases, and any other real value refuses by name before the quadrant recursion, with a hand-built PARTITION_HORZ stream as the test. refusal_inventory gained that string, as designed. The refusal describes what this decoder does, not what an encoder emits, so it is a plain refusal and not a capability claim. delta_q/delta_lf is scoped but unstarted; lanes/realworld-r3.report.md carries the verified default CDFs, the four call sites (the same four maybe_read_cdef_idx uses), and the finding that base_q_idx is read at only 2 of ~90 sites, so a thread-local running quantizer avoids threading a parameter through every block signature. The DeltaLF-to-deblocker path still needs per-block MiGrid state. Suite 240 passed / 0 failed.
docs(av1): lane-tiles r4 report -- multi-tile refusal lifted for key frames, scoped to loop-filter-off/cols<=2/rows==1Ahmet Kaan Gümüş · 8b31dcdBrowse files
feat(av1): lift the multi-tile refusal for key frames, scopedAhmet Kaan Gümüş · 4be6f4c
feat(av1): lift the multi-tile refusal for key frames, scoped decode_stream now threads a real tile_bufs: Vec<&[u8]> (all tiles, obu_offset-corrected the way r3's gate proved) into decode_key_frame_tile_with_cdfs instead of hardcoding &[tile_bytes], and the blanket "more than one tile" refusal is narrowed to four named cases instead of one: inter frames with cols > 1 (decode_inter_frame_ tile_with_cdfs has no per-tile loop at all), rows > 1 (untested this round), cols > 2 (non-last-column right-edge reach bound unimplemented for 3+ columns), and any multi-tile frame with loop filtering on (deblocking crosses tile boundaries by spec default -- confirmed AV1 has no loop_filter_across_tiles_enabled-style flag at all, unlike HEVC -- and PlaneBuf's tile origin cannot bound that reach yet). r3's two-tile-column gate now also runs straight through decode_stream (new test, --loopfilter-control=0 kept): 20/20 pixel-exact, tile_hits delta > 1 every time. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4: 234 passed, 0 failed, 17 ignored, 146.97s.
docs(av1): lane-realworld r3 report -- part64 desync fixed, delta_q/lf fully scoped for r4Ahmet Kaan Gümüş · 9167027Browse files
docs(av1): lane-palette r3 charter -- verify r2's milestones, then the gateAhmet Kaan Gümüş · 8671b8fBrowse files
docs(av1): lane-tiles r4 charter -- lift the multi-tile refusalAhmet Kaan Gümüş · d1f3af8Browse files
Merge branch 'lane-chroma': smooth, paeth and directional chroma decodeAhmet Kaan Gümüş · be7060a
Merge branch 'lane-chroma': smooth, paeth and directional chroma decode The lane went looking for chroma modes and found a luma bug first: reconstruct() hardcoded smooth_neighbor = false, so the intra edge filter took the wrong strength bucket whenever a directional block neighboured a smooth-predicted one. Its own comment called it a corner-cut. Twenty gates had never caught it because every one of them passed --enable-smooth-intra=0. Landed here: the luma fix with smooth_neighbor threaded properly, UV-mode neighbour tracking, the smooth/paeth chroma refusals gone (blocker 5 of the default-settings chain), and the directional-chroma sibling in decode_inter_block's intra-in-inter branch. Gate-proven for the key-frame path. The inter-frame intra-block path is a structural mirror of it plus a green suite, NOT proven by firing -- the lane disclosed this itself, and the owed gate is written down in lanes/chroma-r4.report.md: force an inter-frame leaf with such a uv_mode, assert smooth_uv_hits/directional_uv_hits and pixel-exactness. Both guards fired as designed and are updated: gate_coverage loses enable-smooth-intra and enable-paeth-intra, refusal_inventory loses the two round-2 chroma refusals. Suite 239 passed / 0 failed.
fix(av1): refuse non-SPLIT inter SB part64 by name instead of desyncingAhmet Kaan Gümüş · 6e8fc0b
fix(av1): refuse non-SPLIT inter SB part64 by name instead of desyncing decode_inter_frame_tile_with_cdfs read part64 then `let _ = part64;`, blindly recursing every superblock as SPLIT. A real non-SPLIT part64 in an inter frame would silently desync rather than refuse. Now the value is kept (SPLIT is still inferred for the forced-half/straddle cases, matching the intra tile's own three-way write) and any other value returns a named unsupported() error before the quadrant recursion runs. New refusal string: "an inter SB-level partition type other than SPLIT (this decoder's inter tile path only recurses a superblock as SPLIT)". Test: a_non_split_inter_sb_partition_refuses_by_name_instead_of_desyncing hand-writes a PARTITION_HORZ part64 symbol and asserts the named error comes back instead of garbage decode.
docs(av1): lane-tiles r3 report -- confirmed r2 green, two-tile gate landed, step 3 deferredAhmet Kaan Gümüş · ff1bf26Browse files
test(av1): two-tile-column key frame decodes pixel-exact, bypassing the multi-tile refusalAhmet Kaan Gümüş · a5441e8
test(av1): two-tile-column key frame decodes pixel-exact, bypassing the multi-tile refusal Proves r2's per-tile decode loop (fresh SymbolDecoder+CDF copy per tile, Neighbours::start_tile, PlaneBuf::set_tile_origin) actually decodes both tiles: a_real_aomenc_stream_with_two_tile_columns_decodes_pixel_exact calls decode_key_frame_tile_with_cdfs(&[tile0, tile1], ...) directly (decode_stream's cols>1||rows>1 refusal still fires and is untouched), 20/20 pixel-exact vs ffmpeg, tile_hits() delta hard-asserted >1 on every match. --sb-size=64 needed (this decoder hardcodes 64px superblocks; aomenc default 128px SB makes 128x64 a single superblock, nothing to tile-split). --loopfilter-control=0 needed: deblocking crosses tile boundaries by spec default and PlaneBuf's tile_x0/tile_y0 only clip left/top reach (the known r2-flagged gap), so a non-last column's right-edge deblock would misbehave -- sidestepped here since deblocking is not what this gate proves. Caught and fixed a real bug in the test's own OBU walk while wiring it: tile byte offsets are relative to the slice parse_obu was handed, not absolute in the stream (decode_stream already knows this, my first draft didn't) -- without the obu_offset fix every attempt decoded garbage-offset bytes as a flat all-skip DC block, silently 'matching' nothing real.
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring)Ahmet Kaan Gümüş · c2f121e
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring) Types in report sections 3-6: Neighbours above/left_palette_size/colors + record_palette_y + palette_ctx_and_cache (av1_get_palette_mode_ctx + av1_get_palette_cache, SB-row-boundary above-null rule); read_palette_colors_y (cache-accept bits + delta-coded remainder + merge_colors), read_uniform, palette_color_index_context (weighted neighbour score + selection sort + hash lookup table), decode_color_index_map (wavefront diagonal scan). read_intra_mode gains a `palette: Option<(ctx, cache)>` param: Some at decode_block's key-frame path (real decode), None at decode_leaf8 (old refuse-unconditionally behaviour preserved bit-for-bit). Palette prediction reaches PlaneBuf::reconstruct through a PALETTE_PRED thread-local (the existing ENABLE_EDGE_FILTER idiom). A palette block under a split luma transform refuses by name (untested against a real stream this round). palette_uv_mode still refuses (UV reconstruction is stage 2) but its context is now the block's own real just-decided Y palette use. Refusal strings changed: - REMOVED: "a block that actually uses a palette (Y) -- reconstruction is out of scope" from decode_block's key-frame path (still present, unreachable-changed, at decode_leaf8's excluded call site). - ADDED: "a palette block with a split luma transform (round 1)". - UNCHANGED (still present): the UV palette refusal string, verbatim. cargo check -p ec-av1 --tests: clean. Full suite not run this round (turn budget) -- next round's first job.