Commits
Commits on
bbcf2acafa3bdfb644e4762f19fa23c145d6f3bd2026-09-26
ec-av1: lane-av1422mi24 -- the t422 inter ladder continued from the mi(24,60) first divergence: the first divergent symbol is the mi(24,56) 16x16 inter block's U dc_sign (ours dc_sign_cdf[0], oracle row 1; every level read around it matches rng-for-rng, so the SCAN placement is correct -- the codebase's row-major SCAN_8X16/SCAN_16X8 and libaom's column-major default_scan_8x16/16x8 enumerate identical (row,col) orders, verified cell by cell); root cause is the ctxgather lane's per-mi chroma gather class at ss (1,0) in three more block classes: decode_inter_block's block around (single-TU and var-tx arms, square + rect_tu), decode_rect_split's chroma_tiled else branch (the 16x8 intra-in-inter strip's (8,8) chroma unit at mi(26,60) read its U dc_sign one row high) and its unsplit single-TU arm, and decode_intrabc_rect's two chroma gathers (unreachable on the pinned fixture, gated-only verification); all edits gated ss_x==1 && ss_y==0 with the other arm verbatim; around_mi_422_chroma gains the EC_DCDUMP422 dump for diagnostic parity; frame-1 partition walk now matches the oracle rng-for-rng 300/300 and ALL frames 1-15 decode LUMA-exact at prefilt and postdeb (frame 0 stays exact at all stages); the residual is a chroma pixel-level class (entropy-identical), first site the mi(0,22) 8x8 leaf's chroma U rows 4..7 -- named for the owning lane; 4:2:0/4:4:4 identity by the 8 lossless gates (3 named) green; cargo check 0 warningsAhmet Kaan Gümüş · bbcf2acBrowse files
ec-av1: lane-av1422ctxgather -- the 4:2:2 strip chroma entropy context fixed at source: decode_inter_block's pair write and around_c gather kept the 4:2:0 pair span (16,8) for a HORZ strip that at ss (1,0) is its OWN chroma reference, so the strip at mi(8,4) zeroed left[9][1] under the mi(8,2) 8x8 leaf's level 5 and the mi(9,4) strip's U all_zero read one ctx row low (t422 frame 1, the parent lane's anchor; the write span is (16,4) at ss (1,0)); the strip chroma gathers (decode_rect4_16_strip's else arm, decode_inter_block's around_c, read_inter_rect_chroma's chunked units) route through around_mi_422_chroma at ss (1,0) -- one chroma column spans two luma mi at ss_x 1 and the per-mi gather double-counts each column's dc sign; 4:2:0/4:4:4 take the original expressions verbatim (all edits gated ss_x==1 && ss_y==0), lossless 4:4:4 stream gates green, frame 0 of the pinned t422 fixture exact at all ladder stages, the inter divergence drops 10x on frame 1 (Y 23948 -> 1739) with no frame regressed and the residual attributed downstream (first diffs Y (96,240), U (2,44), V (0,44)); the 4:2:2 header refusal stays unconditionalAhmet Kaan Gümüş · 76c3466
ec-av1: lane-av1422ctxgather -- the 4:2:2 strip chroma entropy context fixed at source: decode_inter_block's pair write and around_c gather kept the 4:2:0 pair span (16,8) for a HORZ strip that at ss (1,0) is its OWN chroma reference, so the strip at mi(8,4) zeroed left[9][1] under the mi(8,2) 8x8 leaf's level 5 and the mi(9,4) strip's U all_zero read one ctx row low (t422 frame 1, the parent lane's anchor; the write span is (16,4) at ss (1,0)); the strip chroma gathers (decode_rect4_16_strip's else arm, decode_inter_block's around_c, read_inter_rect_chroma's chunked units) route through around_mi_422_chroma at ss (1,0) -- one chroma column spans two luma mi at ss_x 1 and the per-mi gather double-counts each column's dc sign; 4:2:0/4:4:4 take the original expressions verbatim (all edits gated ss_x==1 && ss_y==0), lossless 4:4:4 stream gates green, frame 0 of the pinned t422 fixture exact at all ladder stages, the inter divergence drops 10x on frame 1 (Y 23948 -> 1739) with no frame regressed and the residual attributed downstream (first diffs Y (96,240), U (2,44), V (0,44)); the 4:2:2 header refusal stays unconditional
2026-09-25
ec-av1: lane-av1-422blockhalf -- decode_inter_block's 4:2:2 chroma half on the per-axis plane-block modelAhmet Kaan Gümüş · 8dcaf0a
ec-av1: lane-av1-422blockhalf -- decode_inter_block's 4:2:2 chroma half on the per-axis plane-block model The chroma prediction buffers (compound and single-ref arms, OBMC plan, interintra stride, skip pushes, rect/lossless chroma reader strides) take the plane block's own (side/2, side) shape at ss (1,0) instead of the enclosing square, and the masked compound blend reads its luma mask through the plane's real subsampling shifts -- the parent lane's stop-note direct mask read is gone; 4:2:0/4:4:4 reduce to the parent expressions verbatim. decode_rect_split codes the BLOCK_INVALID chroma planes of the tall/wide 1:2 and 1:4 strips as (4, 8) rect units -- the Release oracle's out-of-bounds max_txsize_rect_lookup[BLOCK_INVALID] byte (TX_4X8, lane-av1-422m) stepping the plane -- with per-chroma-cell contexts, mode-indexed intra tx type and per-unit skip prediction (a whole-plane zero push asked the intra predictor for a 1:8 rect it never builds); EC_RECTCHROMA_GAP now names only truly-unhandled shapes and prints zero times on the fixture. read_inter_rect_chroma assembles its block grid at stride x height, not stride squared. decode_inter_sub8_rect2 gates has_chroma per piece (is_chroma_reference): 4:2:2 codes both horz pieces and the odd-column vert piece (the 4:2:0 i == 1 rule verbatim), inter pieces through a new per-piece TX_4X4 arm at the floored cell, the 4:2:0 group tail gated off at 4:2:2. All 16 frames decode (the frame-11 (4,32) refusal is gone); frame 0 stays byte-exact at PREFILT/POSTDEB/POSTCDEF; frames 1+ remain divergent and are reattributed to a partition-dispatch defect upstream of the chroma half (ours dispatches SPLIT4 where the oracle codes HORZ at mi(8,10)) -- named for the next lane, exactness not claimed. Refusal unchanged; bypass never committed. cargo check 0 warnings; refusal gate green.
ec-av1: lane-av1-422sub8rect -- the sub-8 inter 4:2:2 chroma ported to its real shapesAhmet Kaan Gümüş · 19f693e
ec-av1: lane-av1-422sub8rect -- the sub-8 inter 4:2:2 chroma ported to its real shapes decode_inter_block8's whole chroma half moves to the BLOCK_4X8 plane block: one TX_4X8 ChromaRect8x4/SCAN_4X8 unit per plane through read_inter_plane_rect (offset-7 ctx, inherited luma tx type, around_mi_422_chroma walk), with the MC build, warp, masked-compound, interintra, OBMC and skip pushes reshaped per axis; the intra-in-inter arm reads the key-frame arm's rect reader. decode_inter_sub8_split4's shared group unit is replaced by what the oracle traces actually code at ss (1,0): every non-skipped odd-column piece is its plane's own chroma reference and codes U+V TX_4X4 at the floored chroma cell (build_inter_predictors_sub8x8 halves -- left from the left piece, right from own; mixed groups whole-from-own), intra pieces route through sub8_leaf_chroma422, and the 4:2:0 group tail is gated off at 4:2:2. Shared helpers made ss-exact (4:2:0/4:4:4 identical): blend_masked_compound and interintra_blend take per-axis mask subsampling (aom blend-a64-mask's four branches), obmc_plan/obmc_run derive chroma extents by the plane ss, TxParams::strided sizes stride*h (equal to the old square for every existing caller). decode_inter_block's square-cut 4:2:2 chroma blend keeps the pre-port direct mask read (stop-note: owning parent-lane surface). Frame 0 of the pinned t422 fixture stays byte-exact at all four stages; inter frames 1..10 decode and diverge ~15% less than the parent ladder (no frame exactness claimed -- further 4:2:2 classes remain, trace: EC_RECTCHROMA_GAP 16x8/8x32). Refusal unchanged; bypass never committed. cargo check 0 warnings; 4:2:0 inter pixel-exact witness and refusal gates green.
ec-av1: lane-av1-422inter -- the frame-9 read_coeffs_rect scratch panic fixed at the source: the 4:2:2 intra-in-inter side-64 chroma walks TWO stacked square TX_32X32 units per plane (av1_get_max_uv_txsize adjusts TX_32X64 down to TX_32X32, the key-frame path's own model) instead of one whole-plane-block 32x64 rect unit whose 36x68 levels frame the scratch never had; the reader's sizing guard and every other arm untouched, 4:2:0/4:4:4 byte-identical; frame 0 of the pinned t422 fixture stays byte-exact at PREFILT/POSTDEBLOCK/POSTCDEF/FINAL and all 16 frames now decode; the inter divergence is remeasured with the stage ladder (diverges from (0,0) at PREFILT from frame 1, filters track 1:1) and attributed by EC_ISTEP/EC_COEFF pairing to the first coded block's chroma tail: decode_inter_block8 models the 4:2:2 leaf chroma plane block (4x8, one TX_4X8 rect unit per plane) as a 4x4 square, which desyncs the entropy walk at frame 1 mi(0,0) -- a whole-chroma-half shape class (prediction, skip pushes, coefficient read, plus the sub8 split-group's Chroma4 read), not a one-site edit, so the lane stops with that site namedAhmet Kaan Gümüş · 08f3d51Browse files
ec-av1: lane-av1-422filter follow-up 2 -- the 444 LR review finding is RED, stopped and reported: on a 3-frame aomenc --profile=1 --enable-restoration=1 stream frames 0/1 diverge from aomdec and ffmpeg (~26k samples/plane, maxabs 255) while frame 2 is exact, the divergence is already fully present at EC_AV1_PREFILT_DUMP (frame 0 pre Y 6124 at (0,128), U 9176 at (160,64), V 10196 at (128,64)), and the parent commit measures the same or worse (26673/26310/158), so the defect is pre-existing 444 reconstruction around the row-64/128 superblock boundaries -- loop filters exonerated, this lane's ss_y fix strictly improves 444 (frame 2 to exact, frames 0/1 shrank) and no pixel-exact gate can be pinned over a stream whose reconstruction is still wrongAhmet Kaan Gümüş · 69cef8eBrowse files
ec-av1: lane-av1-422filter follow-up -- transcribe the 8-bit EC_AV1_POSTCDEF_DUMP rung into the oracle instrumentation generator as rung 15 (insert after the do_cdef block in decodeframe.c, full ALIGNED-buffer rows, marker EC_INSTRUMENTED_POSTCDEF, no-op on the already-patched tree), verified byte-identical to the hand patch by strip-and-replay on the live oracle tree and by a unique-anchor check on a pristine decodeframe.c; header rung list and the lane report's Decision note updated to matchAhmet Kaan Gümüş · 1b5835fBrowse files
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üş · 2c96591Browse files
ec-av1: lane-av1-422kf2 -- the remaining frame-0 class at U (108,72)/V (48,0) named and fixed: the sub-8x8 4:2:2 chroma unit decoded at the odd leaf's own chroma x where libaom anchors at the floored cell (zeros at 108..109, the named sample), answered reach from the square-4x4 table where the leaf's own has_tr_8x4/4x8 row says n_tr=0 (oracle EC_PRED self-report at mi(27,44)), and stamped its uv_mode into one mi cell of a two-column strip so the right neighbour lost the smooth-uv edge filter (mi(30,50) ft 1 vs 0); entropy was in sync throughout, prediction-side only; frame-0 PRE-FILTER reconstruction is now byte-exact vs the oracle EC_AV1_PREFILT_DUMP (Y, U, V), chroma prefilt diffs 533/869 -> 0/0, final dumps 1774/2165 -> 1236/1263 all introduced by the 4:2:2 loop filter (named for the next lane, V (48,0) its first sample); header refusal stays unconditional and fires by name, read_coeffs_rect untouched, 4:2:0 aomenc pixel-exact gate green, cargo check 0 warnings; report lanes/av1422kf2.report.mdAhmet Kaan Gümüş · 2cd34bfBrowse files
ec-av1: lane-av1-422kf -- the frame-0 U (0,23) first diff fixed: decode_rect_split's chroma_tiled arm never set the uv-palette prediction, so the square 4:2:2 chroma rows of a uv-palette strip decoded as plain DC (entropy in sync: pre-filter luma byte-exact and the unit's coefficient read pairs with aomdec by rng at both ends 48179/64520, levels identical); the arm now windows m.palette_uv per unit like every other chroma arm; U (0,23) decodes 49 == oracle, frame-0 U final diffs 4491->1774, V 4888->2165, pre-filter 3148->533, chroma422_square=24 (non-vacuity); remaining class named for the next lane at U (108,72)/V (48,0); header refusal stays unconditional, read_coeffs_rect untouched, cargo check 0 warnings, refusal-by-name + 420 aomenc gate green; report lanes/av1422kf.report.mdAhmet Kaan Gümüş · d785309Browse files
ec-av1: lane-av1-422r -- remeasure after the q Some(3): first remaining diff is still frame 0 plane U (0,23) ours=50 vs oracle=49, first of the 4491-sample decode_rect_split own-chroma keyframe gap (luma byte-exact, counts byte-identical to pre-fix), frames 1..8 diverge from (0,0) so the offset did NOT fix the inter walk, and the walk now panics at frame 9 in read_coeffs_rect (rect coeff scratch 36x36 < the 422 TX_32X64 chroma unit 36x68); stopped per charter (not one index), header refusal stays, report lanes/av1422r.report.mdAhmet Kaan Gümüş · 410f9c8Browse files
ec-av1: lane-av1-422q -- the chroma422_pair16 chunk passes the offset-10 skip rows (chroma_skip_offset Some(3)): the av1422p frontier's prime suspect applied; same measured rule as the 4x32 arm (plane_bsize BLOCK_INVALID for the pair's BLOCK_4X16 too, num_pels_log2_lookup[255] = 0xff at the 0xc0de70 decodetxb copy -> get_txb_ctx_general's offset-10 arm; the port's offset-7-first txb_skip_chroma_8 holds those rows at 3..6); the 4x32 arm's Some(3), every other caller's None, the 4:2:0 group-tail SKIP arm, and the 4:2:2 header refusal are untouched; cargo check 0 warnings, one 420 aomenc gate green; report lanes/av1422q.report.mdAhmet Kaan Gümüş · 3f9ab77Browse files
ec-av1: lane-av1-422p -- chunk the 4x32 chroma stop: BLOCK_INVALID plane_bsize reads max_txsize_rect_lookup[255] = TX_4X8 OOB (0x05 at the decode_token_recon_block copy 0xc0d030, objdump-measured), so an 8x32 luma strip's 4:2:2 chroma is FOUR stacked TX_4X8 units per plane (stepr = tx_size_high_unit = 2, chroma rows 0/8/16/24, plane-major, skip arm included) riding the ChromaRect8x4 class; read_rect_chroma_unit gains chroma_skip_offset (this arm Some(3): num_pels_log2_lookup[255] = 0xff at the 0xc0de70 copy -> offset 10 -> the +3 offset-10 rows; every existing caller None, behavior-identical); whole 16-frame stream decodes (probe OK, rect4_32 vert=1, 8 units at mi=(24,52), skip_ctx 3..5, chroma422_rect=172), pixels NOT exact -> header refusal stays byte-identical; frontier named: decode_rect4_16_strip's chroma422_pair16 chunk passes no offset (offset-7 rows where the same rule demands 10), decode_rect_split's own EC_RECTCHROMA_GAP chroma, 8 out-of-range u16 samples; 420 gate green (1 passed, 6 pixel-exact), cargo check 0 warningsAhmet Kaan Gümüş · 84698b3Browse files
ec-av1: lane-av1-422o -- name the (2,16) stop: libaom has no such transform; the ODD strip is the chroma reference (is_chroma_reference's column clause, bw == 1 mi) and codes the pair's (4,16) at ss(1,0) as TWO TX_4X8 units per plane (ss_size_lookup[BLOCK_4X16][1][0] = BLOCK_INVALID -> OOB max_txsize_rect_lookup byte TX_4X8; unit_width ROUND_POWER_OF_TWO(1,1) = 1, stepr = 2); the chunk's txb_skip_ctx rides num_pels_log2_lookup[255] = 255 (measured at the 0xc0db70 copy) into the offset-10 rows (+3); skip arm walks the same units; counter 100->107 over 8 units; header refusal stays (walk stops in decode_block_rect4's chroma shape set at 4x32, decode.rs:13550)Ahmet Kaan Gümüş · 5c27850Browse files
ec-av1: lane-av1-422n -- correct the 8x32 4:2:2 chroma chunk from eight TX_4X4 to four TX_4X8 units (reviewer fix on e24dc84b): BLOCK_INVALID is 255 and the out-of-bounds max_txsize_rect_lookup byte is TX_4X8, not TX_4X4; the units keep a tx type via the inherited luma type reduced into the TX_4X8 ext-tx set; header refusal stays (stream stops at the (2,16) rect-pair chroma shape, not pixel-exact)Ahmet Kaan Gümüş · 09ed914Browse files
ec-av1: lane-av1-422m -- chunk an 8x32 luma block's 4:2:2 chroma into TX_4X4 units like libaomAhmet Kaan Gümüş · 8cb8b42
ec-av1: lane-av1-422m -- chunk an 8x32 luma block's 4:2:2 chroma into TX_4X4 units like libaom ss_size_lookup marks that plane BLOCK_INVALID, so libaom never codes a (4, 32) unit: get_vartx_max_txsize resolves the invalid plane size to TX_4X4 and decode_reconstruct_tx never recurses for chroma, giving eight 4x4 chunks per plane. read_inter_rect_chroma now chunks that one shape (4:2:0/4:4:4 bit-identical by construction), drops the inherited tx_type (av1_get_tx_type is DCT_DCT at TX_4X4), and counts units in CHROMA422_CHUNK_HITS (decode_probe: chroma422_chunk). The header refusal stays: with the chunking the 16-frame fixture decodes past the old stop into the intra-in-inter 64x64 arm, which reads a whole (32, 64) chroma plane as one unit and trips the rect-coeff scratch bound; libaom chunks that plane to TX_32X32 units (av1_get_adjusted_tx_size). Named in lanes/av1422m.report.md for the intra 4:2:2 chroma lane.
ec-av1: lane-av1-422l -- name the rect-set refusal (4, 32); libaom marks it invalid, no row addedAhmet Kaan Gümüş · 74dab5c
ec-av1: lane-av1-422l -- name the rect-set refusal (4, 32); libaom marks it invalid, no row added The refusing inter chroma unit on the 422 probe fixture is (w,h)=(4,32), the 4:2:2 plane residual of an 8x32 luma block. Pinned oracle source: av1_ss_size_lookup[BLOCK_8X32][1][0] = BLOCK_INVALID and no TX_4X32 exists, so no entropy-set row is invented; the refusal stays. Env-gated EC_AV1_TRACE_422 print left at the arm for the owning lane. Report: lanes/av1422l.report.md.
ec-av1: lane-av1-422l -- key the inter-strip chroma pairing on the strip's own subsampled axisAhmet Kaan Gümüş · 9278c9a
ec-av1: lane-av1-422l -- key the inter-strip chroma pairing on the strip's own subsampled axis strip_has_chroma: horz keeps i%2==1 || ss_y==0 (no chroma row parity once ss_y==0, every 16x4 strip its own reference, mirroring the intra strip arm); vert becomes i%2==1 || ss_x==0 so 4:4:4 keeps self-paired strips and 4:2:2 keeps the 4:2:0 column pairing with an existing left neighbour. pair_mi self-pairs whenever the pair axis is unsubsampled, and prev carries pair motion only when the strip actually pairs. 4:2:0 and 4:4:4 are branch-identical to the previous code; 4:2:2 no longer underflows at_mi.0/at_mi.1 on strip 0.
ec-av1: lane-av1-422k -- size intra-in-inter chroma prediction from the plane block; refusal staysAhmet Kaan Gümüş · a880723Browse files
ec-av1: lane-av1-422j -- size inter chroma skip residual from the write rect; refusal staysAhmet Kaan Gümüş · dfeffbc
ec-av1: lane-av1-422j -- size inter chroma skip residual from the write rect; refusal stays decode_inter_block's chroma square was side >> ss_x, but reconstruct_mc_rect indexes the prediction/residual buffers row * chroma_side + col over the WRITE rect: at ss (1,0) that rect is side/2 x side, so frame 1's skipped 16-level VERT_B strip (4x16 chroma) read prediction[64..68] out of the 64-sample buffer. Size the square from the chroma rect's enclosing extents; 4:2:0 and 4:4:4 are bit-identical. Same-shape sweep: both chroma skip arms (single-ref + compound) share the fix; the luma arms are provably safe (side^2 >= (h-1)*side + w); the other inter-path slices fit their forwarded dims. The square non-skip chroma arm paired a chroma_side-square unit with the 4:2:0 scan (coefficient-count assert) and now routes non-square chroma rects through read_inter_rect_chroma; rect_inter_chroma_set and rect_scan gained the square rows the 4:2:2 strips' square chroma plane blocks need. Frontier moved to the intra-in-inter chroma read (intra machinery, not the ZERO_RESIDUAL class; named stop). Stream not pixel-exact, so the 4:2:2 refusal stays; probe bypass reverted. 420 gates green (refusal-by-name 1/1, aomenc skipped-8x8 tx-split 2/2), cargo check 0 warnings.
ec-av1: lane-av1-422i report -- bottom-SB-row gather already rng-exact at HEAD; refusal staysAhmet Kaan Gümüş · 3ed346eBrowse files
ec-av1: lane-av1-422h r1 -- 4:2:2 chroma refs rng-exact to the bottom SB row; refusal staysAhmet Kaan Gümüş · dcd6a07
ec-av1: lane-av1-422h r1 -- 4:2:2 chroma refs rng-exact to the bottom SB row; refusal stays The mi(8,10) premise was false: with EC_PART partition traces (the probe ships in the oracle tree, never enabled) both decoders read HORZ there. Four real defects fixed instead: decode_leaf_rect8 now decodes per-strip chroma under is_chroma_reference (both BLOCK_8X4 strips are refs), the 422 split4 column parity is odd-column per the formula (422f/g's even rule came from the misread), sub8_leaf_chroma422 anchors odd-column ctx read/ write at the floor chroma cell, and decode_leaf8's 422 chroma ctx reads the sampled dc votes. Frame 0 now pairs rng-for-rng with aomdec through 328 partition reads (tell +14 const) to the bottom SB row, where our partial-SB walk skips the gathered 64x64 partition symbol libaom reads at mi(32,0) -- named stop. All arms keyed on ss (1,0); 420 gates green; refusal byte-identical and re-proven.
ec-av1: lane-av1-422g report -- split4 never reached on t422, stop line decode.rs:14888Ahmet Kaan Gümüş · a43f862Browse files
ec-av1: lane-av1-422g r1 -- sub-8 even-column chroma-ref arm in decode_leaf_split4, behind the header refusalAhmet Kaan Gümüş · 6130e75
ec-av1: lane-av1-422g r1 -- sub-8 even-column chroma-ref arm in decode_leaf_split4, behind the header refusal 4:2:2 (ss 1,0): every even-mi-column 4x4 leaf is its plane's own chroma reference (is_chroma_reference's !(mi_col & ss_x)) and codes one TX_4X4 chroma unit per plane (ss_size_lookup[BLOCK_4X4][1][0] rounds the 2x4 plane area up to BLOCK_4X4), not 4:2:0's single bottom-right group unit. has_chroma now keys on the leaf's mi column at ss (1,0); new sub8_leaf_chroma422 reads the square unit through read_plane's Chroma4 route at the chroma position, with around_mi_422_chroma context reads (one chroma column spans two luma mi), per-leaf entropy stamping, and the skip/intrabc arms. New CHROMA422_SUB8_HITS witness counter. STOP: the arm is unproven on t422 -- the frame-0 walk never reaches decode_leaf_split4 (zero split8 calls before decode_rect4_16_strip's closed-shape panic at the 32x64 strip whose 16x64 chroma has no table row), so the divergence the 422f report attributed to the mi(9,10) sub-8 chroma begins EARLIER, at the 8x8 partition symbol. Refusal byte-identical; bypass reverted.
ec-av1: lane-av1-422f r1 -- square-block chroma is the plane block's own rect unit, behind the header refusalAhmet Kaan Gümüş · 4f08853Browse files
ec-av1: lane-av1-422e r1 -- leaf_rect chroma is an 8x8 square unit at ss (1,0), behind the header refusalAhmet Kaan Gümüş · 7607f60Browse files
ec-av1: lane-av1-422d r1 -- 8x8 leaf chroma is one 4x8 rect unit per plane at ss (1,0), behind the header refusalAhmet Kaan Gümüş · 4280e51
ec-av1: lane-av1-422d r1 -- 8x8 leaf chroma is one 4x8 rect unit per plane at ss (1,0), behind the header refusal decode_leaf8's non-444 arm hardcoded a 4x4 TxbSet::Chroma4 unit for every subsampled format. At ss (1,0) an 8x8 leaf's chroma plane block is 4x8, ONE rect unit per plane (av1_get_max_uv_txsize(BLOCK_8X8) = max_txsize_rect_lookup[BLOCK_4X8] = TX_4X8): all three arms (skip, single 8x8 unit, TX4) now read it through leaf8_chroma422_unit in the ChromaRect8x4 class with SCAN_4X8, mirroring sub8_leaf_chroma444's rect arm at the leaf's halved position. The intrabc DV copy covers the whole 4x8 plane block, and the leaf's UV palette colour-index map decodes over the true (side >> ss_x, side >> ss_y) extent instead of the squared (side >> ss_x). 4:2:0 keeps the 4x4 arm exactly; 4:4:4 untouched. Measured against the aom oracle on the lane fixture: all four leaf8 chroma rect reads of the first HORZ_A pair rng-for-rng through their full coefficient bodies. The stream still desyncs later at decode_leaf_rect's chroma arm (a 16x8 strip's 8x8 plane block read as a 4x8 rect), so the header refusal stays. Next site named in lanes/av1422d.report.md. Gate: a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_ decodes_pixel_exact (+ 10-bit twin) green, 6/6 pixel-exact matches.
ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusalAhmet Kaan Gümüş · 3439011
ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusal - decode_block tx-size arm: 4:2:2 branch keyed to ss (1,0) -- uv plane block (side/2, side), max uv tx = square tx of the smaller dim capped at TX_32X32; unit grid is (side/2)/tx wide by side/tx tall - all three chroma walks (skip / single-TU / multi-TU mu-chunk) generalized to cn_cols x cn_rows with per-axis luma anchors (around_mi_rect, tu_reach_rect, record_mi_chroma w/h, rect units tuples) - intrabc chroma prediction buffers sized chroma_side x chroma_height - Chroma8/Chroma16 txb_skip widened to six rows (+10 chroma rows, neutral per token_cdfs.h; mirrors the existing Chroma4/Chroma32 BIG assembly) -- fixes the txb_skip[3] index panic a 4:2:2 plane-bigger-than-transform read took - chroma422_square_hits() pub + printed by decode_probe; EC_PART/EC_PART_VAL traces (EC_TRACE-gated) at the 64/32/16/8 partition reads, format-matched to the instrumented aomdec oracle - header refusal untouched and still committed; bypass used for measurement only and reverted before commit; stop + next site in lanes/av1422b.report.md
ec-av1: lane-av1-422 r1 -- 4:2:2 chroma class fixes behind the header refusalAhmet Kaan Gümüş · 14d0a2f
ec-av1: lane-av1-422 r1 -- 4:2:2 chroma class fixes behind the header refusal Refusal stays: a 422 census stream still desyncs downstream of the square chroma sites (decode_block's square chroma walk is the next blocker). Landed slice, all unreachable at ss (1,1)/(0,0) by construction: - decode_rect_split: square chroma rows (8x8/16x16/32x32) through the tiled square reader; chroma_tiled extended accordingly - decode_rect4_16_strip: 422 strips are their own chroma reference (no 420 pair merge; ss_size_lookup[16X4][1][0] = BLOCK_8X4 per strip); fixed the lmi.1 - 1 underflow that arm change exposed - decode_leaf_rect chroma match: (16,16) and (8,32) rows - decode_block_rect4 chroma match: (16,8) and (8,4) rows; the closed-set unreachable now names the offending shape - cfl_ac_ss: cfl_luma_subsampling_422_lbd_c branch (horizontal pairs, full height) - mv_to_q4: 8 chroma MC sites passed ss_x for the row component; now ss_y - 1:4 strip has_chroma: i % 2 == 1 || ss_y == 0 (row-parity clause drops out when the chroma height is not subsampled), both call sites - CHROMA422_SQUARE_HITS counter + chroma422_square_hits accessor: counts square chroma coefficient units at ss (1,0) only; a restored /2 chroma height lands 422 squares on the rect rows and the counter reads 0 Witness gates for the landed paths are green (40-test sweep incl. the non-420 refusal gate and the cfl/filter-intra/palette pixel-exact witnesses); cargo check -p ec-av1 --all-targets: 0 warnings. Report: lanes/av1422.report.md
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)
Merge lane-av1-12bit and lane-av1-12bit-comp: 12-bit gate and compound liftAhmet Kaan Gümüş · 60c70a0
Merge lane-av1-12bit and lane-av1-12bit-comp: 12-bit gate and compound lift server-4 suite on the 12-bit commit: 611 passed, 0 failed, 60 ignored. Local compound suite: 605 passed, 6 failed, 60 ignored. The 6 panics were fs::write NotFound because TMPDIR did not exist. Re-ran those 6 by full name with the temp dir present: 6 passed.