Commits
Commits on
64940fde76eaa0c4270a4d579eb9ca2e348f81ee2026-09-27
Merge cc09f390 (444interband) — suite green: 444interband 628/0Ahmet Kaan Gümüş · 64940fd
Merge cc09f390 (444interband) — suite green: 444interband 628/0 # Conflicts: # crates/ec-av1/src/stream.rs
2026-09-25
ec-av1: 444 intra-in-inter tail reads its four chroma unitsAhmet Kaan Gümüş · 77c2b16
ec-av1: 444 intra-in-inter tail reads its four chroma units lane-av1-rect128recon: decode_inter_block's intra tail read ONE whole-plane chroma unit (block-level ctx, no +10 offset, TX_64X64 dqDenom corner) where 4:4:4 codes four plane-major TX_32X32 units. New ss00 arm walks per-unit contexts/stamps/reach. Witness 444_sb128rect_lr_witness.obu all 3 frames FINAL byte-exact vs aomdec and ffmpeg; gate extended take(2)->take(3).
lane-av1-444interband: pin t6 as the 444 inter-strip band gateAhmet Kaan Gümüş · edc72e0
lane-av1-444interband: pin t6 as the 444 inter-strip band gate Main-review P2: the t6 exactness claim had no in-tree gate. Pin the fixture (force-added, 32487 bytes, sha256 1e6dd4e05038c8d51e2c8d29f8c337 130c4fea0aed629415535e6e53af9a2c72, FNV1a64 52789f0fce2d1e52 per the crate's pin convention) and add a_lossless_444_defaultp_inter_strip_ stream_decodes_byte_exact: len+FNV pin, the 1:4 counter delta pinned to horz4=20 vert4=28 chroma_pairs=0, and the env-conditional aomdec arm requiring all 6 frames sample-exact (av1llpredgate2's pattern). Mutation-proven load-bearing: reverting the ss-0 filter makes the gate fail at the pre-fix Golomb-tail refusal; restored, green -- the a_lossless battery is now 8 passed 0 failed, cargo check 0 warnings.
ec-av1: lane-av1wavefront -- the recon wavefront replayed chroma against a default-seeded FrameCtx: wave_worker carries only bit_depth/enable_edge_filter into its fresh context, so every replay-side ss_x/ss_y read (the deferred chroma builds' mv_to_q4(.., ss_x(fctx)) reference positions and exec_intra's CfL AC signal) saw the 4:2:0 constructor default on any stream whose sequence says otherwise; at 4:4:4 each worker fetched its chroma prediction at HALF the true reference position and the 444_sb128rect witness lost its chroma planes at PREFILT (f1 U 17504 / V 3, f2 U 25472 / V 1472, Y exact) while every existing recon-threads gate stream stayed exact because 4:2:0 is what the default already was; WaveState now carries the frame's subsampling pair next to bit_depth and the worker seeds it, fixing all replay-side ss readers with one field and no op-shape change; serial byte-identical (inline path never builds a WaveState), recon=2 and recon=4 byte-exact vs serial on all three fixture frames, and the 1-vs-4 recon-threads gate pins the witness with a mutation proof (worker ss seed commented out fails exactly on the new fixture, frame 1 U differs)Ahmet Kaan Gümüş · ddf43e8Browse files
lane-av1-444sbf2: f2 still red after d5325172; gate not extendedAhmet Kaan Gümüş · ef0d01e
lane-av1-444sbf2: f2 still red after d5325172; gate not extended Measured the pinned 444 sb128 witness at 85ce04de with a fresh target dir and per-frame strided slices: f2 vs aomdec AND ffmpeg is Y 7308 / U 9685 / V 13854 (both oracles sample-agree with each other; f0/f1 byte-exact). Stage ladder: f2 diverges at PREFILT -- Y 6952 / U 9568 / V 13496, first diffs Y col128 row98, U col128 row64, V col128 row0 -- reconstruction, before any loop filter; deblock/CDEF/LR only carry it. Every rung matches av1lrflush r3's base measurements sample-for-sample, so the d5325172 entropy fix is inert on this fixture: the residual is DEFECT A unchanged, the inter rect-strip recon/band-stamping reads on f2's inter 64x128 at (128,0), no entropy desync. Gate stays take(2) (no wrong samples pinned); the stale LR scoping comment stays for the paired take(3)+comment edit once the entropy lane clears f2. Report-only commit; no decoder edit.
ec-av1: lane-av1lrflush -- honest pipeline row-0 witness (r4 review)Ahmet Kaan Gümüş · 4c11025
ec-av1: lane-av1lrflush -- honest pipeline row-0 witness (r4 review) Replace the gate's LR_STRIPE0_HITS delta with a new process-global LR_PIPELINE_ROW0 counter bumped by pipe_run_lr's own worker when a plane's RU row 0 enters the processed range: the thread-local stripe counter was satisfiable by frame 0's whole-frame LR on the gate's thread alone, so it witnessed nothing about the pipeline. Expected delta is 5 (frame 1 restores all three planes, frame 2 all but U). Mutation re-verified: disabling the RU-row-0 band release now goes red at the row-0 assert itself (0 vs 5); reverted, green. Report updated. cargo check 0 warnings; both a_444_sb128 gates and the EC_AV1_REQUIRE_AOMENC=1 restoration battery (10/10) green.
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-onlyAhmet Kaan Gümüş · 11dc087
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-only decode_inter_block's strip tail ran the lane-inter16ab pair-span chroma context rewrite unconditionally, but the pair form (16x8 / 8x16 span at pair_mi) only exists at 4:2:0. At ss 0/0 every strip is its own chroma reference and its own record already stamps exactly its own 16x4 (4x16) span, so the rewrite smeared the strip's chroma state over one extra row/col of cells: a skipped strip zeroed left[r+1] planes 1-2, erasing the 16x16-intra block to its left's U/V coefficient-context stamps, and the strip below read its chroma txb_skip off the wrong CDF row. Measured on the default-partition lossless 4:4:4 6-frame stream in /tmp/llkf (t6.obu, per av1llkf.report.md): decode refused mid-frame-1 at the 16x4 strip mi(2,8) with the strip's U unit reading txb_skip base 0 where aom reads base 1 (left[2][1] 0 vs 23; the oracle's cells trace to the intra block (0,4)'s U unit bc=3/br=2 as the last writer). Post-fix all 6 frames are byte-exact against fresh aomdec --rawvideo output, and INTER16_CHROMA_PAIR_HITS no longer fires on the pairless stream (31 -> 0 while the 48 strips still decode). Gates: cargo test -p ec-av1 --lib a_lossless 7 passed 0 failed (both 4:2:0 lossless libaom gates untouched, the 444 min-partition-64 and min-partition-8 inter gates, the sb128 pair, the 16x4 pair). cargo check -p ec-av1 --all-targets: 0 warnings, 0 errors. rustfmt --check reports no hunks inside the edited ranges.
lane-av1-444interband: report - the inter 1:4 strip pair rewrite is 4:2:0-onlyAhmet Kaan Gümüş · 808012fBrowse files
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-onlyAhmet Kaan Gümüş · 1ddefc1
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-only decode_inter_block's strip tail ran the lane-inter16ab pair-span chroma context rewrite unconditionally, but the pair form (16x8 / 8x16 span at pair_mi) only exists at 4:2:0. At ss 0/0 every strip is its own chroma reference and its own record already stamps exactly its own 16x4 (4x16) span, so the rewrite smeared the strip's chroma state over one extra row/col of cells: a skipped strip zeroed left[r+1] planes 1-2, erasing the 16x16-intra block to its left's U/V coefficient-context stamps, and the strip below read its chroma txb_skip off the wrong CDF row. Measured on the default-partition lossless 4:4:4 6-frame stream in /tmp/llkf (t6.obu, per av1llkf.report.md): decode refused mid-frame-1 at the 16x4 strip mi(2,8) with the strip's U unit reading txb_skip base 0 where aom reads base 1 (left[2][1] 0 vs 23; the oracle's cells trace to the intra block (0,4)'s U unit bc=3/br=2 as the last writer). Post-fix all 6 frames are byte-exact against fresh aomdec --rawvideo output, and INTER16_CHROMA_PAIR_HITS no longer fires on the pairless stream (31 -> 0 while the 48 strips still decode). Gates: cargo test -p ec-av1 --lib a_lossless 7 passed 0 failed (both 4:2:0 lossless libaom gates untouched, the 444 min-partition-64 and min-partition-8 inter gates, the sb128 pair, the 16x4 pair). cargo check -p ec-av1 --all-targets: 0 warnings, 0 errors. rustfmt --check reports no hunks inside the edited ranges.
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurementAhmet Kaan Gümüş · 3274825
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurement The pipelined LR band release provably flushes RU row 0: with the filter pipeline engaged (EC_AV1_FILTER_THREADS=4, recon serial, pipe_on witnessed by a new unconditional PIPELINE_TAKEN counter) the witness decodes byte-identical to the whole-frame path on all three frames, including the 128-root-rect inter frame; r2's stop-with-site was a stage-ladder mixup (its FINAL numbers are today's POSTCDEF numbers; f2 already diverges at PREFILT). The real f2 residual re-enters at column 128 inside the inter 64x128 at (128,0) -- the entropy lane's inter rect-strip site, untouched here. New defect named for its own lane: wavefront recon (recon threads>1) loses chroma writes at PREFILT on the inter frames (Y exact). Lands the refutation as a doubly non-vacuous gate (PIPELINE_TAKEN delta + LR_STRIPE0_HITS delta + pipeline==serial byte-exact + frames 0/1 vs aomdec and ffmpeg through the pipeline), mutation-verified red by disabling the RU-row-0 band release. cargo check 0 warnings; restoration battery (EC_AV1_REQUIRE_AOMENC=1) 10/10 green.
ec-av1: lane-av1-444sb r2 -- pin the 128-rect 444 witness for frames 0/1 and name the residual: the review's f1 rows-54/118 finding was the lane-av1-422filter LR boundary-band snapshot fix missing from this branch's ancestry (cherry-picked as 168442bd; frame 1 byte-exact after), and frame 2's remaining final-stage diff (Y 7308 / U 9685 / V 14012, deterministic) is a distinct stop-with-site defect: loop restoration never restores RU row 0 (rows 0..63, full width, all planes) on this inter frame -- PREFILT/POSTDEBLOCK/POSTCDEF are byte-exact and our final equals the post-CDEF plane above row 63 -- localized to the pipelined LR band accounting (pipe_run_lr's rrows branch plus the ls.note/ls.close band release) which never flushes RU row 0 when the top superblock row carries a 128-root rect block (the inter 64x128 at (128,0)); the new gate pins the fixture by length + FNV1a64, proves non-vacuity via the intra_sb128_hits delta and asserts frames 0/1 byte-exact against both aomdec and ffmpeg (pinning frame 2's current samples would freeze the named bug); r1's all-frames-exact claim is retracted -- its comparisons sliced the raw YUV at a plane stride instead of a frame stride so frame 2 was never truly comparedAhmet Kaan Gümüş · 14fead3Browse files
lane-av1sub8rect444: the lossless sub-8 rect leaf reads its 4:4:4 chroma per TX_4X4 unitAhmet Kaan Gümüş · 50b44b4
lane-av1sub8rect444: the lossless sub-8 rect leaf reads its 4:4:4 chroma per TX_4X4 unit decode_intra_sub8_leaf's chroma_444 && bw != bh arm read the lossless leaf's chroma as one TX_8X4/TX_4X8 rect unit per plane (read_coeffs_rect, skip ctx fixed at above+left) where lossless forces per-unit TX_4X4 -- the oracle reads FOUR units (plane-major, ctx 11 = the plane-block-bigger-than-transform +10 row) and the rect unit count desynced the tile at the leaf's own chroma. Route the arm through the read_plane per-unit walk (per-unit around_mi, the +3 chroma offset, the lossless tx_type drop, per-unit record_mi_chroma), skip the tail's whole-leaf chroma stamp for the walk -- nested INSIDE the chroma_444 branch so a walked leaf cannot fall into the 4:2:0 group tail and clobber the per-unit stamps with the group-composed state. 4:2:0 and the non-lossless rect path are byte-preserved; the 7 a_lossless gates stay green. Counter LLSUB8RECT444_CHROMA_WALK_HITS + decode_probe line; report in lanes/av1sub8rect444.report.md. Entropy witness on the parent lane's t6.obu: the named leaf's four chroma units now pair 1:1 with fresh aomdec (first mismatch moved from read #2326 to #2489, the 16x4 strip at mi(2,8) -- named there, llcpred's lane).
ec-av1: lane-av1-422filter -- the 4:2:2 loop-filter chroma class named and fixed: the LR boundary-band snapshot was taken on a 4:2:0 stripe grid (chroma bands hardcoded ss_y=1 at the keyframe/inter plane_snapshot calls, the pipeline's snap_band rows and pipe_run_lr's chroma dims), so 4:2:2 boundary substitution read uninitialised scratch at rows 54..57/118..121, and the CDEF chroma direction was the raw luma one where libaom remaps it through conv422 when xdec != ydec; frame 0 of the pinned t422 fixture is now byte-exact vs the instrumented aomdec at PREFILT/POSTDEBLOCK/POSTCDEF/FINAL on Y, U and V (final chroma diffs 1236/1263 -> 0/0; an 8-bit EC_AV1_POSTCDEF_DUMP rung was added to the oracle build to split CDEF from LR: post-CDEF was 251/259 first U (50,0)/V (48,0), the ticket's first final samples), chroma422_square=24 rect=96 sub8=26 non-vacuity, 4:2:0 paths bit-identical (ss_y=1 reproduces the old bands/rows/dims; the LR-symbol, skipped-8x8-aomenc and superres+CDEF+LR gates re-verified green), header refusal stays unconditional (bypass applied and reverted byte-identical), read_coeffs_rect untouched, cargo check 0 warnings, report lanes/av1422filter.report.mdAhmet Kaan Gümüş · 40e7f03Browse files
ec-av1: lane-av1-444sb -- the 128-rect chroma unit walk was hardcoded to the 4:2:0 mu-chunk span (one 32x32 unit per chunk, chunk offsets 32, clip step 8), so at 4:4:4 a 128-root HORZ/VERT intra block coded half its chroma units, left the remaining units' coefficients unread and desynced the tile from the first 128-rect block on; the walk is now ss-aware ((64 >> ss) / chroma_tx units per chunk, 64 >> ss chunk offsets, 16 >> ss clip step -- every expression reduces to the old constant at 4:2:0) and the stale debug_assert states the ss-aware invariant; a 192x160 3-frame aomenc --profile=1 --enable-restoration=1 --sb-size=128 witness (bands444, fixture sha 27825e14...) that diverged at PREFILT with Y 9700 at (128,64), U 12272 at (160,0), V 13175 at (128,0) decodes byte-exact vs the instrumented aomdec on all three frames at FINAL (frames 0/1 also byte-exact at PREFILT/POSTDEBLOCK/POSTCDEF); the LR-snapshot ss_y, sub8 rect chroma, leaf8 OOB and group-tail arms are untouchedAhmet Kaan Gümüş · f487a7aBrowse files
lane-av1llintercdf: the lossless sub-8 intra leaf reads its uv_mode off the canonical cfl_allowed_px alphabetAhmet Kaan Gümüş · 10366d7
lane-av1llintercdf: the lossless sub-8 intra leaf reads its uv_mode off the canonical cfl_allowed_px alphabet The t6 frame-1 all_zero divergence the llkf lane deferred was never a CDF adaptation desync: the all_zero rows were identical at the divergent read (the llkf report compared our PRE-update row snapshot against the oracle's POST-update cdf0 print). The states part one block earlier, inside the intra 8x4 leaf's uv_mode read -- decode_intra_sub8_leaf picked the 14-symbol uv_mode_cfl row unconditionally where av1_is_cfl_allowed forces the 13-symbol uv_mode_no_cfl row for a lossless block whose chroma plane block is not a single TX_4X4 (an 8x4 leaf at 4:4:4). The read now goes through the canonical cfl_allowed_px like every other uv site; 4:2:0 is arithmetically unchanged (every sub-8 chroma block is 4x4-or-smaller, predicate stays true). t6 frame 0 stays byte-exact; pairs 2316/2317 now match the oracle's (value, rng) and the ECIN bits delta returns to the constant +15. Frames 1..5 still differ through a second, independent site named in the report: the same leaf's chroma_444 && bw != bh arm reads one TX_8X4/TX_4X8 rect unit per plane where lossless forces per-unit TX_4X4 (oracle: four units, ctx 11) -- stopped with the site per the ticket. Gates: a_lossless 7 passed; cargo check --all-targets 0 warnings.
lane-av1-llkf: the 4x16/16x4 rect route records its lossless chroma units at their own ss-aware spanAhmet Kaan Gümüş · 97a9038
lane-av1-llkf: the 4x16/16x4 rect route records its lossless chroma units at their own ss-aware span The default-partition lossless 4:4:4 key frame's first entropy divergence (frame-0 all_zero read #452): decode_rect4_16_strip's lossless chroma walk recorded every TX_4X4 unit with record_mi_chroma(cu_mi, 8, 8, ...) anchored at oy/2, ox/2 -- the 4:2:0 subsampled form. At 4:4:4 a unit is ONE mi cell, so each record smeared the unit's state over a 2x2 mi block; a 4-wide strip's later units overwrote the NEXT COLUMN's above cell with their own state (aom's av1_set_entropy_contexts stamps exactly tx_size_wide_unit x tx_size_high_unit cells, one above + one left for TX_4X4), and the following block's all_zero read the wrong txb_skip row. Both record sites in the lossless_pair branch (skip and non-skip) are now ss-aware: anchor (oy << ss_y) / MI, (ox << ss_x) / MI, span 4 << ss. 4:2:0 is arithmetically identical; non-lossless and intrabc arms untouched. Entropy: all_zero rng ladders match the oracle on all reads of the whole key frame (testsrc2 2304/2304, mandelbrot 2304/2304; fail-before #452 and #208). testsrc2 single-key-frame decodes byte-exact vs fresh aomdec; the sibling dodge2.obu witness stays byte-exact; a_lossless gates 7/7; cargo check --all-targets 0 warnings.
lane-av1llpredgate2: pin the debug-exact minp8 444 stream for the ss-aware chroma-above skipAhmet Kaan Gümüş · 16748dcBrowse files
lane-av1-llpred2: skip_chroma_above reads the frame ss pair, not a rect-over-chroma_side ratioAhmet Kaan Gümüş · 0db45d1
lane-av1-llpred2: skip_chroma_above reads the frame ss pair, not a rect-over-chroma_side ratio obmc_plan derived ss from trailing_zeros(write / chroma_side) on ONE square side: a 4:2:0 16x8 strip read ss=(1,0) and lost its above-chroma skip (libaom's av1_skip_u4x4_pred_in_obmc skips the plane block 8x4 under frame ss (1,1)), and a 4:4:4 16x8 strip divided 8/16=0 so trailing_zeros(0)=64 panicked a debug build on the shift. The decision is now the pure obmc_skip_chroma_above(write_w, write_h, ss_x, ss_y) over the frame's own pair -- the same values obmc_run's chroma windows shift by -- fed by ss_x(fctx)/ss_y(fctx) at all three callsites (decode_inter_block, decode_inter_block8, the encoder's obmc_prediction). A unit check pins the 4:2:0 16x8/8x16 skip and the 4:4:4 shapes; the 6-frame 444 fixture is cmp-exact against aomdec in a debug decode probe, and the a_lossless 4:2:0 gates stay green.
lane-av1-llpred: chroma OBMC sizes follow the plane's own subsamplingAhmet Kaan Gümüş · ab30546
lane-av1-llpred: chroma OBMC sizes follow the plane's own subsampling The min-partition-8 lossless 4:4:4 stream's 2772 chroma pixel diffs were OBMC, not prediction input: obmc_run sized the chroma neighbour prediction and blend windows with a literal /2 (the 4:2:0 half) where libaom shifts by the plane's own subsampling (>>0 at 4:4:4), and obmc_plan's skip_chroma_above hardcoded the luma shape list that av1_skip_u4x4_pred_in_obmc only applies to 4x4/8x4/4x8 PLANE blocks, silencing the above-pass chroma blend of every 8x8/16x8/8x16 OBMC block at 4:4:4. First differing sample: frame 1 plane 1 x=88 y=4 (leaf mi(0,22), mv=(0,11)). Value-identical at 4:2:0. Stream now byte-exact vs fresh aomdec on all 6 frames; a_lossless gates 6/6; cargo check 0 warnings.
lane-av1-llintra8: the inter frame's 8x8 intra leaf lossless 444 chroma walkAhmet Kaan Gümüş · 3e0f682
lane-av1-llintra8: the inter frame's 8x8 intra leaf lossless 444 chroma walk decode_inter_block8's intra leaf read 4:4:4 lossless chroma as one TX_8X8 unit and hit TxParams::run's lossless WHT assert (8, 8) != (4, 4) -- the one arm the inter arms' leaf8_inter_chroma_lossless did not cover. Route it through read_intra_chroma_lossless (2x2 TX_4X4 raster per plane, plane-major) and stamp chroma_stamped_per_unit so the tail's record_mi keeps the walk's per-unit contexts. 4:2:0 keeps its single TX_4X4 unit. Same leaf, one read earlier: gate the uv_mode CDF row on cfl_allowed_px (decodemv.c:145, cfl.h:29 -- at lossless the CFL alphabet exists only when the chroma plane block is BLOCK_4X4), so the 4:4:4 lossless leaf reads the 13-symbol uv_mode_no_cfl alphabet instead of consuming a different partition at its own uv_mode symbol. Counter LLINTRA8_CHROMA_WALK_HITS + decode_probe line; report in lanes/av1llintra8.report.md. Witness: testsrc2 128x96 lossless 444 min-partition-8, EC_COEFF trace 11292/11292 all_zero rngs byte-matched against aomdec with the walk firing 34 times, key frame and all luma planes byte-exact; dodge2.obu stays byte-exact; a_lossless gates 6/6.
lane-av1-llsub8b: 444 lossless inter sub8 rect chroma rasterAhmet Kaan Gümüş · 92ce894
lane-av1-llsub8b: 444 lossless inter sub8 rect chroma raster decode_inter_sub8_rect2's chroma_444 coded arm read each 8x4/4x8 piece's U/V plane block as one TX_8X4 rect unit where lossless codes TX_4X4 on every plane (av1_get_tx_size) -- TxParams::run's WHT assert (8,4) != (4,4). A lossless+mono-gated arm now routes the piece through the sibling's read_inter_chroma_lossless walk at region (bw,bh), whose per-unit context stamps replace the whole-block record_mi_chroma (the leaf8 rule). 4:2:0 untouched: the branch lives inside chroma_444 and the reserved group-tail arm is not reached. The ll64 Golomb-tail refusal is gone; the streams now stop at decode_inter_block8's intra-leaf chroma arm reading one TX_8X8 at 4:4:4 lossless -- same class, llinter lane's function, named in the report. dodge2 (sibling bytes) exact 6/6; mandelbrot witness decodes 6/6 with 37 rect2 pieces; a_lossless gates 6/6; cargo check clean.
lane-av1-ll64: the rect64 64x32 chroma row is named and closed, not inventedAhmet Kaan Gümüş · 2b68d1d
lane-av1-ll64: the rect64 64x32 chroma row is named and closed, not invented libaom has no such transform to add: av1_get_tx_size forces TX_4X4 for every plane at lossless (blockd.h:1383) and av1_get_adjusted_tx_size collapses TX_64X32/32X64 to TX_32X32 for chroma outside it (blockd.h:1361-1367), so the four 64-axis chroma shapes are never one coded unit -- the lossless arm already walks them as TX_4X4 units and the chroma_tiled arm already tiles them. The EC_RECTCHROMA_GAP diagnostic fired on exactly those working routes and mislabelled them a gap (one lane report cited it as a decode stop); it now fires only at the refusal's exact precondition and names the libaom verdict. No decode-path edit: refusal wording byte-identical, 4:2:0 zero-change, decode_rect4_16_strip untouched. Gates: 6-frame inter gate pixel-exact through aomdec and ffmpeg; key-frame gate run for real on the pinned ll444-lossless-key bytes; both 4:2:0 lossless gates green. cargo check 0 warnings.
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fixAhmet Kaan Gümüş · 66a6553
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fix Pins the min-partition-64 dodge2 stream (aomenc profile 1, testsrc2 128x96 yuv444p, --lossless=1, --sb-size=64 --min/max-partition-size=64, 6 frames; 37658 bytes, sha256 5a070fa351a3f2109de855234f2b3d0a872970f3e 7f658db21f65c12eeb135b4) and asserts every frame pixel-exact through both aomdec --rawvideo and ffmpeg (new ffmpeg_decode_sequence_444 helper), with the existing chroma_split_tx_hits counter as non-vacuity. stream.rs resolved keeping both this lane's key-frame gate and the new inter gate. Lane report records the same-panic proof and the two deferrals: decode_rect4_16_strip (owning lane) and the ll444 rect64 64x32 chroma gap (named, non-panic).
lane-av1-llinter2: port 84acbd09, 444 lossless inter chroma rasterAhmet Kaan Gümüş · 988e528
lane-av1-llinter2: port 84acbd09, 444 lossless inter chroma raster Same-panic port. This tree's lossless inter path panicked exactly as the sibling's parent did: release 'range end index 24 out of range for slice of length 16' in reconstruct_mc_rect (inlined into exec_mc), debug the WHT assert (8, 8) != (4, 4), both through decode_inter_block8 -> read_inter_plane -> push_mc_rect_tx. Ported fixes 1-3 verbatim: the 8x8 inter leaf's single-ref and compound chroma arms route chroma_side == 8 && lossless && !mono through the new leaf8_inter_chroma_lossless per-unit walk with the tail record's chroma half saved/restored; read_inter_chroma_lossless and decode_inter_block's mu_chroma_units replay made subsampling-aware. Fix 4 (decode_rect_split) already present from lane-av1-llband2 and kept (with its RECT_SPLIT_LOSSLESS_CHROMA444_HITS counter); fix 5 (decode_rect4_16_strip span walk) EXCLUDED -- that function is owned by a live lane. 4:2:0 arithmetic unchanged everywhere (4 << 1 = 8).
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit spanAhmet Kaan Gümüş · f3e2fd4
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit span decode_rect_split's lossless chroma arm here is the same writer the reviewed sibling commit 01a34bc8 (edith_codecs-av1llband) fixed for the av1llsub8 stop at aligned step 19228 (16x8 leaf, U bc=2 br=0, txb_skip base 1 vs oracle base 0 off a polluted above-band cell). Same base tree 6cf92769, same defect site (hardcoded luma_span=8 at decode.rs:10458). Ported that fix instead of authoring a second one: unit luma span now derived from the plane subsampling (span_x=4<<ss_x, span_y=4<<ss_y) for the cu_mi step, around_mi_rect, tu_reach and the immediate + replayed record_mi_chroma stamps, plus the rect_split_lossless_chroma444_hits non-vacuity counter, the a_real_aomenc_lossless_444_key_frame gate over the pinned fixtures/ll444-lossless-key.obu, and the decode_probe llband line. Post-images cmp-identical to 01a34bc8; 4:2:0 arithmetic unchanged. Measured here: 444 lossless key frame 178 -> 0 differing bytes (sample-exact all planes, counter 160 units on the fixture); 4:2:0 lossless key + inter gates green; cargo check -p ec-av1 --all-targets 0 warnings. decode_rect4_16_strip, read_inter_rect_chroma, restoration.rs and the intra write-back untouched. Details in lanes/av1llband2.report.md.
lane-av1-llsub8: 444 lossless rect-leaf chroma reads per-4x4 unitsAhmet Kaan Gümüş · f0141f9
lane-av1-llsub8: 444 lossless rect-leaf chroma reads per-4x4 units Two symbol-level fixes behind the 4:4:4 lossless sub8 chroma miss, both named against the oracle's EC_COEFF ladder on the regenerated ll444 fixture: - read_intra_mode_sub8 read uv_mode off the 14-symbol CFL alphabet unconditionally; a 4:4:4 lossless BLOCK_8X4/4X8 leaf's plane block is the rect itself, so is_cfl_allowed is FALSE and the stream carries the 13-symbol uv_mode_no_cfl row (wrong-alphabet-same-value). - the rect leaf's lossless chroma is (bw/4)*(bh/4) TX_4X4 units with get_txb_ctx's +10 txb_skip rows, not one TX_8X4 rect unit off ChromaRect8x4's [1][0..2] rows; the lossless arm now walks plane-major per-4x4 units through read_plane(TxbSet::Chroma4, +3) with immediate per-unit entropy stamps (tail stamps per unit too). Key frame 15001 -> 178 differing bytes, first divergence pushed from aligned step 12136 to 19228 (named stop in lanes/av1llsub8.report.md: above-band cell state behind a 16x8 leaf's U bc=2 unit). 4:2:0 lossless gates stay green; cargo check 0 warnings.
lane-av1-llintra: 444 lossless intra-side fixes, key-frame exact at 64x64, sub8 chroma stop namedAhmet Kaan Gümüş · 25a6b5f
lane-av1-llintra: 444 lossless intra-side fixes, key-frame exact at 64x64, sub8 chroma stop named - decode_leaf8: 444 lossless leaf chroma is a plane-major 2x2 raster of TX_4X4 units per plane (oracle av1_get_tx_size forces TX_4X4 on every lossless plane), not one Chroma8 unit whose lossless WHT is 4x4-only and panicked reconstruct (index 16 len 16); skip arm predicts the four units per-unit; per-unit record_mi_chroma replaces the whole-leaf chroma band stamp for that shape. - read_intra_chroma_lossless: cu_mi divisor, tu_reach scaling and record_mi_chroma spans made subsampling-aware (byte-identical at 420). - decode_block whole-block chroma unit clip: plane span and overhang made subsampling-aware; the hardcoded 420 span clipped three quarters of a 444 block's coded units and desynced the tile (the 64x64 key frame luma diff). - cfl_allowed_px: lossless arm now mirrors is_cfl_allowed's plane_bsize == 4x4 rule, so a 444 lossless leaf reads the 13-symbol uv_mode CDF (wrong-alphabet-same-value). Verified: dodge2 key frame byte-exact vs aomdec --rawvideo; ll444 key frame no longer panics; a_lossless_libaom_inter_frame_decodes_sample_exact green; cargo check -p ec-av1 --all-targets 0 warnings. Stop: ll444 key frame still desyncs at the first sub8 leaf's chroma unit (sub8_leaf_ chroma444 square branch, symbol-level, site named in the report); inter frames panic in reconstruct_mc_rect via decode_inter_block8 (different function, out of lane).
2026-09-24
ec-av1: bound every piped test child (1800s, EC_AV1_CHILD_TIMEOUT_SECS) -- a wedged aomenc dies loud instead of hanging the suiteAhmet Kaan Gümüş · 38b6919
ec-av1: bound every piped test child (1800s, EC_AV1_CHILD_TIMEOUT_SECS) -- a wedged aomenc dies loud instead of hanging the suite The CFL lane's suite lost 11h41m to a_segmentation_census's aomenc wedged in anon_pipe_write: its tree predated the shared runner (a09c9c2a), so the y4m went in via inline write_all and aomenc's stdout pipe filled first. origin/main's run_with_stdin already drains stdin/stdout/stderr concurrently, so the pipe-fill shape cannot recur -- but nothing bounded a child that wedges for any other reason. run_with_stdin now drains both output pipes on reader threads from the first millisecond and enforces a deadline (default 1800 s, env override); on expiry it kills, reaps, joins all three threads (bounded: the dead child closed every pipe) and panics naming the command, the timeout, the signal and the class, instead of hanging the suite until doomsday. Class sweep: the runner is the crate's only stdin(Stdio::piped()) site (148 spawn sites); every other child is stdin(null) + .output(), which cannot deadlock on stdin. Proof: census test green over all 10 real arms (4.1 s); wedged-child probe (stub aomenc + 3 s bound) killed at 3.07 s with the class panic.
intra merge: close the ibcrect witness before the TX4 chroma gateAhmet Kaan Gümüş · 2b75a46
intra merge: close the ibcrect witness before the TX4 chroma gate The two added tests were concatenated without the first function's brace.
Merge lane-av1intrapred: intrabc TX4 chroma predicts from the frame copyAhmet Kaan Gümüş · 7bb8e2c
Merge lane-av1intrapred: intrabc TX4 chroma predicts from the frame copy Reviewer PASS on face0a6d. Gate re-ran, fixture committed, hits asserted. stream.rs conflict was two added witnesses at the same insertion point; both kept.
av1intrapred: gate the intrabc TX4-split chroma frame-copy routeAhmet Kaan Gümüş · 0c936b6
av1intrapred: gate the intrabc TX4-split chroma frame-copy route Pins the R5 stream (fixtures/intrabc_tx4_chroma_kf.obu, 7173 bytes, aomenc screen/cq20 key frame) as a committed regression fixture and adds stream::tests::an_intrabc_tx4_leaf_chroma_inherits_the_luma_type_and_ predicts_from_the_frame_copy. The gate runs unconditionally (no oracle binary, no skip path): it counter-asserts the new INTRABC_TX4_CHROMA_COPY_HITS non-vacuity counter (bumped when the TX4 arm's chroma reads consult the armed INTRABC_CHROMA_TX slot), pins the formerly-divergent U(184,4) and U(168,0)/V(168,0) chroma patches to the oracle bytes, and pins the whole decoded frame behind a dependency-free FNV-1a fingerprint (345600 bytes, 0xf271df27ce4dba66). Failure modes covered: missing INTRABC_CHROMA_TX arming (counter + patch asserts), chroma predicting from the unwrapped palette buffer instead of the frame copy (U(168,0)/V(168,0) asserts - verified live: removing the wrap fails the gate with 78182 chroma bytes wrong), and any other byte drift in the frame (fingerprint). Parent-commit non-vacuity: the decode desyncs at byte 82216 (R5) / 352 (W2 cq8 twin).
av1intrapred: intrabc TX4 leaf chroma predicts from the frame copyAhmet Kaan Gümüş · 3ab8e30
av1intrapred: intrabc TX4 leaf chroma predicts from the frame copy decode_leaf8 wrapped only palette_y_buf with intrabc_bufs (lane-t900 r32); the TX4 arm's chroma reads overrode prediction from the raw palette_uv_bufs, so an intrabc leaf whose var-tx tree split to TX_4X4 predicted its chroma units INTRA from the UV mode (intrabc's is DC_PRED) instead of copying the frame at the DV. decode_block already wraps its palette_uv_bufs with the intrabc copies (this file's single-TU/multi-TU chroma reads) - decode_leaf8 now does the same chroma twin wrap. With the previous INTRABC_CHROMA_TX arming fix, R5 (testsrc2 640x360 sb64 maxp64 cq20 screen intrabc, 1 frame) is now byte-exact vs aomdec AND ffmpeg; W2 (cq8 re-encode) byte-exact vs aomdec; R9 stays byte-exact vs ffmpeg; cached A1-A3/D1-D3 sweep byte-exact. Targeted intrabc/ lossless/screen tests: 14 passed, 0 failed. Full suite at the parent commit: 607 passed / 0 failed.
av1intrapred: arm INTRABC_CHROMA_TX for leaf8 TX4-split intrabc leavesAhmet Kaan Gümüş · 7fb533f
av1intrapred: arm INTRABC_CHROMA_TX for leaf8 TX4-split intrabc leaves decode_leaf8's resolved==4 (TX4 var-tx split) arm read each luma 4x4 TU off the 16-symbol inter tx_type set (correct) but never armed INTRABC_CHROMA_TX, so the group's chroma reads fell back to default_intra_tx_type(DC_PRED) = DCT_DCT and took the 2D eob row, 2D scan and 2D nz contexts where libaom (which classifies intrabc as is_inter_block) inherits the co-located luma TU's coded type. R5's first fork, mi (36,66): luma TU (0,0) coded H_ADST, chroma U decoded eob=11 off the 2D row where aomdec decoded eob=13 off the class-1 row. Also disarm the slot after the arm's two chroma reads: left set, the next leaf's chroma inherited the intrabc leaf's luma type instead of its own derivation (seen live at mi (54,24)). Gates: R5 entropy now aligns 3321/3321 all_zero reads rng-for-rng vs instrumented aomdec (was 2162); luma byte-exact; first pixel diff moved 82216 -> 231864, total chroma diffs 127862 -> 3305. W2 (cq8 re-encode) 352 -> 231848, 305032 -> 3254. R9 stays byte-exact vs ffmpeg. Suite: 607 passed / 0 failed (exit 0). Remaining chroma diffs are a new class - intrabc chroma frame-copy prediction (origin U(184,4), block mi (2,92), entropy identical) - documented with a trace line in the lane report.
Merge lane-av1mixloss: per-segment lossless gates onto main's qmatrix/ss tree; mixed-lossless witness sample-exact (3 aq arms) + 8 lossless gates greenAhmet Kaan Gümüş · 8a5feaa
Merge lane-av1mixloss: per-segment lossless gates onto main's qmatrix/ss tree; mixed-lossless witness sample-exact (3 aq arms) + 8 lossless gates green decode.rs conflict composition: - all lane per-segment !lossless gates kept (10 sites incl. the six tx-depth readers); main's fctx-aware smooth_uv_neighbour, qmatrix dequant and usize mv_to_q4 kept. - main's forced-4x4 lossless rewrite was MOVED by the lane to after read_intra_mode: at the old top-of-function site lossless(fctx) resolved against the PREVIOUS block's segment, so a mixed frame forced 4x4 units on lossy blocks (48807-sample frame-0 divergence). The merge had kept both copies; the stale copy is dropped and its 4:4:4 chroma arm is folded into the relocated one.
lane-av1mixloss: lossless-segment rect leaves code no tx-depth symbol (decodeframe.c:1203 precedes TX_MODE_SELECT) — 6 tx-depth readers gated, mix.obu byte-exact vs oracleAhmet Kaan Gümüş · 49ee9bdBrowse files
Merge commit 'c5ae648c' into lane-av1-qm-mergeAhmet Kaan Gümüş · f3c3235
Merge commit 'c5ae648c' into lane-av1-qm-merge # Conflicts: # crates/ec-av1/src/decode.rs # crates/ec-av1/src/refusal_inventory.rs # crates/ec-av1/src/stream.rs
lane-av1-mixloss: lossless-segment leaves code no tx-depth symbol (read_tx_size's lossless return precedes TX_MODE_SELECT) + env-gated EC_ECDUMP register dumpAhmet Kaan Gümüş · a2a84c7Browse files
warp merge: bool mv_to_q4 calls follow the ss-aware signatureAhmet Kaan Gümüş · a4e0578
warp merge: bool mv_to_q4 calls follow the ss-aware signature The auto-merge kept three luma=true/false call sites against the 444 signature that takes a subsampling usize. Luma passes 0. Chroma passes ss_x/ss_y. Same math the 444 merge used for 4:2:0.
Merge lane-av1-12bit-warp: 12-bit warp pixel-exactAhmet Kaan Gümüş · bddda13
Merge lane-av1-12bit-warp: 12-bit warp pixel-exact Reviewer PASS, including the 8x8 compound-warp leaf (hits_8=81). Local suite 607/6/60; the 6 panics were a missing TMPDIR. Re-ran 6/6 pass. Inventory conflict with the grain merge: both refusals stay lifted, both comments kept.
Merge lane-av1-12bit-grain: 12-bit film grain pixel-exactAhmet Kaan Gümüş · 8d28480
Merge lane-av1-12bit-grain: 12-bit film grain pixel-exact Reviewer PASS. Witness byte-exact, grain_hits=2, not a skip. Local suite 605/6/60; the 6 panics were a missing TMPDIR. Re-ran 6/6 pass.
Merge lane-av1-ibcrect: 128-root intrabc strips pixel-exactAhmet Kaan Gümüş · 64f82ca
Merge lane-av1-ibcrect: 128-root intrabc strips pixel-exact Reviewer PASS. Witness an_sb128_rect_strip_with_intrabc_decodes_pixel_exact byte-exact, hits advanced on HORZ, VERT, and 10-bit. The 10-bit comment that called that arm a coverage gap is corrected in e0bc18bd.
ibcrect: the 10-bit arm engages the 128-strip shapeAhmet Kaan Gümüş · 7c12512
ibcrect: the 10-bit arm engages the 128-strip shape The witness comment still said aomenc never takes that partition at 10 bit. The re-run measured intrabc_128rect_hits +15 on arm 3. That is not a coverage gap.
lane-av1-mixloss: rapport de session r1 (diagnostic fork de prédiction)Ahmet Kaan Gümüş · 322c515Browse files
lane-av1-ibcrect: intrabc on 128-root HORZ/VERT strips decodes pixel-exact; per-unit chroma replay after the end-of-block recordAhmet Kaan Gümüş · 6f2548b
lane-av1-ibcrect: intrabc on 128-root HORZ/VERT strips decodes pixel-exact; per-unit chroma replay after the end-of-block record
Lift the refusal "intra block copy on a HORZ/VERT/1:4 rect intra strip
(reconstruction is not ported at this shape)" for its last site, the
128 root: decode_block_128rect now routes use_intrabc blocks to the new
decode_intrabc_128rect (BLOCK_128X64 / BLOCK_64X128), porting libaom
decode_token_recon_block's inter arm at that shape -- the whole-block
prediction, the TX_64X64-rooted var-tx tree per 64x64 mu chunk, chroma
at av1_get_max_uv_txsize(BLOCK_128X64) = TX_32X32 one unit per plane per
chunk (av1_get_tx_type inheritance of the covering luma leaf's coded
tx_type), the lossless TX_4X4-chroma walk, and the skip arm's
av1_reset_entropy_context band reset. refusal_inventory.rs drops the
string and its pairing; decode_probe.rs prints the new counters
(intrabc_128rect, part128 census) and stream.rs exposes
intrabc_128rect_hits().
Root cause of the r2 desync (class override-slot-on-one-arm): the mu
chunk loop stamped each TX_32X32 chroma unit's own entropy state
(av1_set_entropy_contexts), but the end-of-block
record_split_luma_rect_mi re-stamped BOTH chroma planes over the whole
128x64 span with ONE neighbour_state composed from the full grids --
level = the SUM of both 64x64 chunks' units, dc = chunk-0's top-left
sign. The next block read txb_skip off the smeared state ("chunk-1 U
level 1 pollutes block 3's left band"). Fix mirrors the inter-128 path's
proven shape: a mu_chroma flag set on the lossless and TX_32X32 arms,
then after the record a per-unit replay -- slice each chunk's TX_32X32
(TX_4X4 when lossless) grid out of the composed plane grid and
record_mi_chroma it at its own luma-mi origin, in mu-chunk raster order
so a later unit still wins the shared seam cells.
Witness (the name refusal_inventory cites):
an_sb128_rect_strip_with_intrabc_decodes_pixel_exact -- real aomenc
--sb-size=128 --tune-content=screen --enable-intrabc=1 over the
deterministic geq sinusoid sources (gradients ignores its seed, the
flakes were that):
- arm 1 HORZ 384x320 cq32: 5 decode-order frames pixel-exact vs the
instrumented aomdec, intrabc_128rect_hits +14 (all skip=false 128x64);
- arm 2 VERT 512x512 cq45: 5 frames pixel-exact, +1 (unskipped 64x128
at mi(64,96));
- arm 3 10-bit decode-only: 5 frames pixel-exact, +15 -- the encoder
engages the shape at 10 bit here, so the per-depth firing assert was
NOT needed as a gated gap.
Both orientations hard-assert engagement + exactness; every
decode-order frame (hidden alt-refs included) compared via
decode_all_frames_vs_oracle.
Hunt r2 sweep (fixtures ~/.cache/ibcrect-hunt, Agent11-2): all four
128rect-engaging fixtures E1(hits=3)/E2(14)/E5/E8 decode 0 diff bytes
vs ffmpeg; the five diffing ones (A1/A2/A3/B1/D1) have
intrabc_128rect=0 -- pre-existing rect/leaf8-intrabc and part128-split
paths, not this lane's shape; C1/C2/E3/E4/E6/E7/F1/F2 clean. Sibling
gates green on the merged tree: intrabc family 13 passed, sb128 family
9 passed, lossless/rect_strip 16 passed, 128-none roots 6 passed,
screen/palette/leaf8 18 passed.lane-av1-mixloss: per-segment lossless table (WIP, not yet sample-exact)Ahmet Kaan Gümüş · 7531ed9
lane-av1-mixloss: per-segment lossless table (WIP, not yet sample-exact) The mixed-lossless/lossy lift: header lossless[MAX_SEGMENTS] goes into FrameCtx::lossless_per_seg and decode::lossless() resolves it through the block's own cur_segment_id (set before every mode/tx symbol by the spec-order segment_id read). read_tx_size takes libaom's TX_4X4 first line, intrabc var-tx tree is gated on !lossless, the old by-name refusal is lifted, and the witness gate is rewritten as a sample-exact witness (WHT-unit counter + ffmpeg pixel compare). STATE: 4 frames decode but frame 0 diverges -- Y first diff (40,0), U/V (16,0) [luma (32,0)]. EC_COEFF rng-chain alignment vs the aom oracle is exact through oracle TU#18 (mi 4,2, incl. its full eob/level/sign trail); the divergence starts in the following all_zero reads around blocks mi(6,0)/(6,1) (the oracle reads 2-TU luma groups there -- sub8/8x4 chroma-ref placement). Full traces in ~/.cache/tmp-av1mix/ (oraclesteps.txt, oursteps2.txt, oraclepred2.txt, ourpred2.txt, oracleistep2.txt, ouristep2.txt).
Merge 7f2c85c5 (lane-av1-444 10-bit film fix) into main: keep 12-bit compound MC and 4:4:4 chroma portAhmet Kaan Gümüş · c5a3cd1
Merge 7f2c85c5 (lane-av1-444 10-bit film fix) into main: keep 12-bit compound MC and 4:4:4 chroma port - decode.rs: unify on the lane's ss-aware mv_to_q4(pos, mv, ss) signature; main's luma=false call sites become ss_x(fctx)/ss_y(fctx) (identical math for 4:2:0), luma=true becomes 0. Intrabc chroma arm keeps main's structure with ss-aware MVs. Compound intermediate calls pass fctx and use the lane's chroma_side sizing (444-native, degenerates to 420 behavior). - encode.rs, refusal_inventory.rs, restoration.rs, stream.rs, tile.rs: auto-merged clean by git, both sides retained. - Verified: a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact and a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact both PASS (not skipped) on this merge.
lane-av1-444: 10-bit film regression fix -- sub8 group uv stamps gated !chroma_444 && !intra_chroma (port of lane-av1-cfl 7c6dad53); three same-class per-unit chroma re-stamps (decode_rect_split chroma_tiled, decode_block_rect64 bigger arm, read_inter_rect_chroma multi arm -> mu_chroma_units replay); report continuation 8 attribution corrected: both 10-bit film gates are THIS LANE's regression (fail at 1ad7e0fc/b9530604, pass on main 73f3ac64), now greenAhmet Kaan Gümüş · f6ca882
lane-av1-444: 10-bit film regression fix -- sub8 group uv stamps gated !chroma_444 && !intra_chroma (port of lane-av1-cfl 7c6dad53); three same-class per-unit chroma re-stamps (decode_rect_split chroma_tiled, decode_block_rect64 bigger arm, read_inter_rect_chroma multi arm -> mu_chroma_units replay); report continuation 8 attribution corrected: both 10-bit film gates are THIS LANE's regression (fail at 1ad7e0fc/b9530604, pass on main 73f3ac64), now green Gates re-run on lane-av1-444-film (CARGO_TARGET_DIR=~/.cache/cargo-target-av1444film): - a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact: ok (15 frames pixel-exact) - a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact: ok (33 frames pixel-exact)