Commits
Commits on
29a3d63a8c55d48bb9268dda9f59fafae1bef3dc2026-08-30
docs(av1): lane-hbd r2 report -- 42 -> 0 errors, 263/263 tests passAhmet Kaan Gümüş · 29a3d63Browse files
feat(av1): u16 widen compiles clean, 263/263 tests pass, 8-bit output bit-exactAhmet Kaan Gümüş · 35100f3
feat(av1): u16 widen compiles clean, 263/263 tests pass, 8-bit output bit-exact Closes the 42-error checkpoint from r1's saved diff. decode.rs/warp.rs/mc.rs call sites widened through OBMC and interintra blend chains; encode.rs and motion.rs's own buffers stay u8 (encoder is 8-bit only this round) with a local u16 round-trip box (intra_predict_u8 in encode.rs, inline conversion in mc_trial and motion::search_traced_from_step) at their 4 call sites into the now-widened intra::predict/mc::predict. bit_depth != 8 refusal untouched, no 10-bit gate added.
wip(hbd): --lib compiles clean (0 lib errors); encode.rs/motion.rs boxed to u16 locally (encoder stays 8-bit); 17 test-only errors remainAhmet Kaan Gümüş · f83f39fBrowse files
wip(hbd): 42 -> 5 errors -- mc/warp/obmc/interintra call sites widened, only encode.rs+motion.rs remainAhmet Kaan Gümüş · 04357c7Browse files
docs(av1): lane-hbd r2 charter -- 42 errors to zero, wip checkpoints allowedAhmet Kaan Gümüş · 4ad151bBrowse files
wip(hbd): r1's u16 widen in flight at the cap (does not compile; error count is the progress metric)Ahmet Kaan Gümüş · 31976a1Browse files
docs(av1): lane-hbd r1 charter -- fresh branch for the u16 widen, replay r10's saved diffAhmet Kaan Gümüş · c3da14bBrowse files
Merge branch 'lane-palette2': UV palette blocks decode pixel-exactAhmet Kaan Gümüş · 318c22b
Merge branch 'lane-palette2': UV palette blocks decode pixel-exact Both chroma planes now reconstruct from their palette and index map (read_palette_colors_uv written, PaletteUv reconstruction, record_palette_uv). The gate hard-asserts palette_uv_hits moved before comparing pixels; 2 UV palette blocks fire and match ffmpeg. The previous round's uncommitted tree needed exactly one fix -- an 8x8-leaf read_intra_mode call site still on the pre-UV signature -- so committing that tree verbatim at the cap was worth doing. The UV refusal string stays in the inventory: it is still live at two out-of-scope call sites (rect strip, inter-frame leaf). Suite 263 passed / 0 failed.
docs(av1): lane-palette2 r2 report -- UV palette landed, verdict DONEAhmet Kaan Gümüş · a6be5cfBrowse files
fix(av1): compile the r1 UV-palette WIP + gate it against a real aomenc streamAhmet Kaan Gümüş · 03d0151
fix(av1): compile the r1 UV-palette WIP + gate it against a real aomenc stream read_intra_mode's 8x8-leaf call site was still on the pre-UV 8-arg tuple/ 13-arg signature after r1's mid-edit commit -- fixed by threading the same None-palette-uv/&[] corner-cut that call site already used for palette_y. Everything else r1 wrote (read_palette_colors_uv, PaletteUv reconstruction into both chroma planes, record_palette_uv neighbour tracking) was already correct once it compiled. Added a_real_aomenc_stream_with_palette_uv_decodes_pixel_exact: testsrc2 at the same square-only recipe as the palette-Y gate, hard-asserting palette_uv_hits moved before checking pixel-exactness against ffmpeg (2 UV palette blocks fire; both frames match luma/U/V exactly). refusal_inventory.rs needed no edit -- "a block that actually uses a palette (UV)" is still genuinely present at two other call sites (the HORZ/VERT rect-strip and inter-frame 8x8-leaf paths), which stay refused and are out of this round's scope (steps 2/3).
docs(av1): lane-palette2 r2 charter -- finish UV reconstruction, merge already doneAhmet Kaan Gümüş · 168c232Browse files
wip(palette2): builder's in-flight edits, committed verbatim at the 75-turn cap (state unverified by me)Ahmet Kaan Gümüş · 7d58d31Browse files
fix(av1): reword a second capability claim my own probe disprovedAhmet Kaan Gümüş · 738a983
fix(av1): reword a second capability claim my own probe disproved "a partition below 8x8 (this encoder never writes one)" is false. Default aomenc at --cpu-used=0 --cq-level=20 over lavfi testsrc2, with palette and the rect/AB/1to4 partitions switched off so the earlier refusals cannot mask it, reaches that refusal directly. Three sites in decode.rs plus the inventory now describe the decoder instead. Method note for whoever probes the remaining two claims (angle delta, non-DC chroma on an 8x8 inter leaf): a claim can only be tested on a stream that gets PAST every refusal in front of it, so disable the tools whose refusals fire first rather than concluding the case is unreachable. Suite 262 passed / 0 failed.
docs(av1): lane-palette2 r1 charter -- UV reconstruction, rect strips, split-tx paletteAhmet Kaan Gümüş · 5feaca3Browse files
Merge branch 'lane-tiles': tile-group OBUs and non-uniform tile spacing, both proven liveAhmet Kaan Gümüş · 0bdb5a0
Merge branch 'lane-tiles': tile-group OBUs and non-uniform tile spacing, both proven live Both closed the same way r8 closed context_update_tile_id: staleness-checked first, and both turned out to already work. Several tile-group OBUs per frame decodes 20/20 pixel-exact; uniform_spacing_flag == 0 decodes pixel-exact too, reachable only through aomenc's --tile-width/--tile-height (present in the binary, absent from --help; --tile-columns/--tile-rows and --auto-tiles never set it, and --auto-tiles needs threads >= 2). Neither needed new decode code. What they needed was a gate, because an untested capability and an absent one look identical from the outside. Suite 262 passed / 0 failed.
fix(av1): reword a capability claim my own probe just disprovedAhmet Kaan Gümüş · 0653b15
fix(av1): reword a capability claim my own probe just disproved "a partition below 16x16 other than a clean split (this encoder never writes one)" is false. A plain default-settings aomenc run over lavfi mandelbrot (--cpu-used=4 --end-usage=q --cq-level=32, no --enable-* flags at all) hits that refusal on frame 0. The string now describes the decoder instead. Measured while re-taking the distance to a default-settings decode, five content classes, all at those same default settings: testsrc2 -> UV palette reconstruction mandelbrot -> this refusal (sub-16x16 non-split partition) smptebars -> HORZ/VERT intra strip in a screen-content frame rgbtestsrc -> HORZ/VERT intra strip in a screen-content frame life -> a palette block with a split luma transform Three of the five are palette-shaped. The remaining three "this encoder never writes one" claims (angle delta x2, sub-8x8 partition, non-DC chroma on an 8x8 inter leaf) are NOT cleared by this probe -- they were simply not reached. Suite 260 passed / 0 failed.
test(av1): non-uniform tile spacing gate -- decode already generic, staleness-checkedAhmet Kaan Gümüş · 2f03ac7
test(av1): non-uniform tile spacing gate -- decode already generic, staleness-checked Charter's second item: uniform_spacing_flag == 0 (spec 5.9.15). decode.rs's tile loop already walks tile_info.mi_col_starts/mi_row_starts generically for both branches read_tile_info produces -- no refusal exists for this on the decode side (the only "non-uniform tile spacing is not written" refusal in the crate is frame.rs's OBU *writer*, an unrelated encode path). aomenc never emits uniform_spacing=0 from --tile-columns/--tile-rows (always takes the uniform_spacing=1 branch in libaom's set_tile_info), and --auto-tiles only reaches the non-uniform path when g_threads>=2, ruled out by this charter's --threads=1. Found and hand-verified the CLI surface that actually reaches it: --tile-width=<sb-list>/--tile-height=<sb-list> (present in the binary, not printed by --help) -- checked live against av1_cx_iface.c's set_tile_info before writing the gate. New gate a_real_aomenc_stream_with_non_uniform_tile_spacing_decodes_pixel_exact (stream.rs): 256x64, --tile-width=1,3 --tile-height=1 --sb-size=64, probes the parsed header's tile_info.uniform_spacing directly and hard-asserts it false. 20/20 pixel-exact vs ffmpeg, 0 named refusals. Scoped suite (tile/mvstack/refusal_inventory/gate_coverage, EC_AV1_REQUIRE_AOMENC=1) green, full stream:: module 52/0 (6 pre-existing ignored fixture tests untouched). Both charter items now closed: several tile-group OBUs (r9's WIP edit, verified working this round, no changes needed) and non-uniform tile spacing (this commit) were both already-correct decode capabilities, gated and proven live rather than built fresh.
docs(av1): lane-tiles r10 charter -- check r9's uncompiled edit, then the tile-group gateAhmet Kaan Gümüş · bb6a29dBrowse files
wip(av1): tiles r9's in-flight tile-group gate edit, committed verbatim at the turn capAhmet Kaan Gümüş · 462b1bf
wip(av1): tiles r9's in-flight tile-group gate edit, committed verbatim at the turn cap
The builder stopped mid-edit ("delete lines 7881-7899 and write the replacement
gate"), so stream.rs may not even compile. State unverified by me: r10 checks
before believing anything here.Merge branch 'lane-lr': loop restoration reads and applies its filters, gate greenAhmet Kaan Gümüş · 53dfc78
Merge branch 'lane-lr': loop restoration reads and applies its filters, gate green Nine rounds. The last three chased a one-pixel SGR difference through lr_sample, the box-sum formula, stripe boundaries and the fast arm, all of which were correct: the cause was two mistranscribed SGR_X_BY_XPLUS1 entries (av1_x_by_xplus1[101] and [165..=169]). Two process facts worth keeping. r6's evidence for the divergence was wrong -- its oracle dump matched on a coordinate that recurs across the gate's attempt sweep, so it captured some other invocation, and r7 spent a full round proving that. And this lane sat nine rounds without merging, so each late round spent its whole budget on the merge instead of the work; r9 died at its cap having resolved every conflict without ever compiling. I finished that merge here: three of main's newer gate call sites were missing this branch's LoopRestorationParams argument -- text-clean, compile-broken, the same semantic conflict shape the delta_q merge produced. Refusal retired: "a frame with loop restoration enabled (this decoder never reads the per-unit lr symbols)". Suite 260 passed / 0 failed.
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.
docs(av1): lane-tiles r9 charter -- tile-group OBUs and non-uniform spacing, staleness-checked firstAhmet Kaan Gümüş · a1446baBrowse files
docs(av1): lane-lr r9 charter -- run the gate after r8's SGR table fix, then merge mainAhmet Kaan Gümüş · d516ed5Browse files
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.
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.
report(av1): lane-realworld r7 -- merge done and gated, hbd typing plan scopedAhmet Kaan Gümüş · d22f8c2Browse 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.
docs(av1): lane-lr r8 charter -- decode the pinned stream with a call-unique dumpAhmet Kaan Gümüş · 0698b04Browse files
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(lane-lr): r7 section -- VERDICT not green, SGR still one pixelAhmet Kaan Gümüş · dd702f0Browse files
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).
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.