Commits
Commits on
32b53ec975a09a67d17242d232e9fb479ae933f72026-09-04
Merge branch 'lane-t900' (14d627be): intra-coded 128-root HORZ/VERT halves inside inter frames lifted from opt-in; edge-forced witness gated byte-exactAhmet Kaan Gümüş · 32b53ecBrowse files
feat(av1): lift the intra-128-in-inter opt-in -- a 128-root HORZ/VERT half coded INTRA inside an inter frame now decodes by default, gatedAhmet Kaan Gümüş · 0d45d3d
feat(av1): lift the intra-128-in-inter opt-in -- a 128-root HORZ/VERT half coded INTRA inside an inter frame now decodes by default, gated lane-t900 r18. The `EC_INTRA128_IN_INTER` opt-in (lane-inter128intra r1) had no witness: r16's 512x512 stream fired the arm only while desynced and fires it 0 times since r17's fix. What r16/r17 missed: libaom's RD does not PICK a 128-root HORZ/VERT in the frame interior at all -- the r16 witness codes its 128 roots as 96 NONE + 64 SPLIT and nothing else, and a textured 640x384 sweep the same. The shape exists where the frame EDGE forces it: a partial last superblock row makes `has_rows128 == false` so the 128x64 top half is implied, and a partial last column implies the 64x128 left half. Put content no reference holds in exactly those two bands of an inter frame and the encoder codes those forced halves INTRA. New fixture `intra128_in_inter_witness2.obu` (10-bit 704x320 = 5*128+64 by 2*128+64, panning noise interior, fresh smooth ramps in the two edge bands at frames 6/9/12, --lag-in-frames=0). Gate `an_intra_coded_128_half_inside_an_inter_frame_decodes_pixel_exact` asserts both arms fire (3x 128x64, 6x 64x128) and all 15 frames are byte-exact vs ffmpeg on every plane, with no env var set.
Merge branch 'lane-t900' (1416e926): a skipped var-tx inter block never reset its own luma coefficient contexts; 128-superblock skipped-var-tx witness gatedAhmet Kaan Gümüş · 0847527Browse files
fix(av1): a skipped var-tx inter block never reset its own luma coefficient contextsAhmet Kaan Gümüş · 125b0a9
fix(av1): a skipped var-tx inter block never reset its own luma coefficient contexts `read_block_tx_size` hands back var-tx leaves for a skipped inter block whenever the block is a 128 root (every one of them under TX_MODE_LARGEST). `decode_inter_block` then takes its `if skip` arm, which reconstructs straight from the predictor and never enters the per-transform-unit luma loop -- and the block-level `record_split_luma_rect_mi` deliberately writes no plane 0, on the premise that the loop already did. So the block left the PREVIOUS block's luma entropy levels standing where libaom's `av1_reset_entropy_context` zeroes all three planes over the block's footprint (class early-return-skips-tail). Measured on the 10-bit 512x512 --sb-size=128 witness, decode-order frame 1: the 128x128 is_inter=1 skip=0 block at mi(32,64) read txb_skip ctx 2 where aomdec reads 1, with equal entry range on both decoders, because the skipped 128x128 block at mi(32,32) never cleared left[32..48] (ours level 1, aomdec 0). Publishing the all-zero `luma_grid` on that arm is exactly the reset; the filtered EC_TRACE_COEFF ladder (all_zero/eob/after_bases) now matches 1397/1397 steps over all 10 frames and every plane is byte-exact vs ffmpeg. Sweep: the other three `record_split_luma*` callers are the intra bodies (decode_rect_split, decode_block, decode_block_128rect); all three publish per transform unit inside their loop even when `skip`, so the inter tail was the only instance. Both inter var-tx arms share that tail. The gate that pinned this is `intra128_in_inter_witness.obu`, built last round as an intra-128-in-inter witness. r16 measured three hits of that arm in it; with the stream decoding exactly the arm fires ZERO times, so those were desync artifacts (class counter-from-refused-stream) -- the EC_INTRA128_IN_INTER opt-in therefore STAYS, still ungated, and the test is renamed and repointed at the reset it actually proves (new counter `skip_vartx_luma_reset_hits`, 66 on this stream). Rungs added: EC_ECDUMP (the above/left luma level arrays and resulting ctx at every txb_skip read, matched by the same env var on the instrumented aomdec) and EC_ECPUB (every block/TU coefficient-context publication).
test(av1): pin the first stream that codes a 128-root HORZ/VERT half INTRA inside an inter frameAhmet Kaan Gümüş · afb49c4
test(av1): pin the first stream that codes a 128-root HORZ/VERT half INTRA inside an inter frame Adds crates/ec-av1/fixtures/intra128_in_inter_witness.obu (13066 B, 10-bit 512x512, 10 frames) -- 128-wide horizontal bands in the left two superblock columns and 64-wide vertical bands in the right two, with two hard scene cuts and --kf-max-dist=9999, so the cuts must be coded as inter frames whose content no reference holds. It is the first recipe found that fires the intra128_in_inter arm at all: 1x 128x64 + 2x 64x128. The EC_INTRA128_IN_INTER opt-in is NOT lifted. All three hits land in a frame this decoder does not decode exactly, and a counter read out of a desynced frame proves nothing. The blocker is measured and separate from this arm: the same source with every optional tool disabled fires the arm 0 times and desyncs on exactly the same frames, and the same source at --sb-size=64 decodes all 10 frames byte-exact. First bad, from the coefficient ladder against instrumented aomdec: decode-order frame 1, the 128x128 is_inter=1 skip=0 block at mi(32,64), its first luma TU (TX_64X64, bc=0 br=0) -- aomdec reads txb_skip ctx 1 (top == 0 && left == 0) and gets all_zero=1, we read ctx 2 and get all_zero=0, with the entry range equal on both. So the defect is in the luma entropy levels the preceding 128x128 inter block publishes into above/left, not in the intra arm. The gate is #[ignore]d with those coordinates in its doc comment; decode.rs gains an EC_INTRA128 trace line (under the existing coefficient-trace switch) that prints the arm's mi position, which is what proved the hits sit in a desynced frame.
2026-09-03
Merge branch 'lane-t900' (4dc075f9): the multi-tile compound mv-stack gate un-ignored (residue gone on the merged tip); straddling gate asserts a per-arm-class compared counterAhmet Kaan Gümüş · f5d348dBrowse files
test(av1): the last synthetic multi-tile residue is gone -- un-ignore the two-tile-column mv-stack gate and make the straddling gate's multi-tile twins non-vacuousAhmet Kaan Gümüş · 71319e8
test(av1): the last synthetic multi-tile residue is gone -- un-ignore the two-tile-column mv-stack gate and make the straddling gate's multi-tile twins non-vacuous Re-measured lane-tile2 r3's pinned 192x68 cq35 10-bit --tile-columns=1 stream on the merged tip: our decoder and the oracle aomdec now agree byte for byte over all 5 frames (195840 B, was 26 luma pixels differing on frame 3). The fixes that landed since (motion-field tile clamp, per-tile txfm/mode band resets, the 8x8 COMPOUND interp-filter read) already cover it, so nothing is fixed here -- the round converts the result into coverage: * a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact loses its #[ignore] (it passes), with the doc comment rewritten from "known open defect" to the re-measurement. * edge32_gate counts compared MULTI-TILE attempts separately and hard-asserts it, class counter-from-refused-stream: the aggregate compared > 0 was carried by the single-tile arms, so the --tile-columns=1 twins were free to refuse everything and keep the gate green. * that gate's refusal census was stale -- all 64 attempts now compare with zero named refusals (was: all 32 multi-tile attempts refused by name). Suite: 431 passed; 0 failed; 37 ignored.
Merge branch 'lane-streamsink' (2dc8d13b): decode_stream_with streams each picture to a sink; decode_probe writes frames as they complete; 4K peak RSS 6.3 GB -> 0.44 GB, flat in stream lengthAhmet Kaan Gümüş · 11648e0Browse files
docs(av1): lane-streamsink r1 report -- peak RSS 6.28 GB -> 0.44 GB on a 4K 10-bit window, flat in segment lengthAhmet Kaan Gümüş · d9a2cb4
docs(av1): lane-streamsink r1 report -- peak RSS 6.28 GB -> 0.44 GB on a 4K 10-bit window, flat in segment length Also ships the FIFO census runner used to verify it: our decoder streams frames into a FIFO, the comparer reads one frame per side at a time.
feat(av1): streaming decode entry point -- decode_stream_with emits each picture and drops itAhmet Kaan Gümüş · d994115
feat(av1): streaming decode entry point -- decode_stream_with emits each picture and drops it decode_stream returned every shown Picture in one Vec and decode_probe's EC_PROBE_OUT16 built a second full copy of the raw dump before one write, so peak RSS was 2x the whole decoded segment: an 8 s 4K 10-bit window exceeded 20 GiB and a whole-film decode was impossible. stream.rs: the decode loop is now decode_stream_with(data, sink), which hands each completed picture to the sink and drops it; only the 8 reference slots plus the current frame stay alive. decode_stream is a thin collecting wrapper, so every existing test and gate is unchanged. Hidden frames are reported with shown == false. decode_probe: writes each shown frame straight to EC_PROBE_OUT16/EC_PROBE_OUT (either may be a FIFO) as it completes; the OK/REFUSED/counter lines are unchanged.
Merge branch 'lane-t900' (90b9480d): OBMC neighbour span is the block's own side, never clamped at the frame edge; every sampled cut of both 10-bit films decodes byte-exactAhmet Kaan Gümüş · 8506f63Browse files
docs(av1): lane-t900 r14 handoff -- 1080p all-exact, 4K census owedAhmet Kaan Gümüş · 7f87c74Browse files
docs(av1): lane-t900 r14 report -- OBMC neighbour prediction size root cause, 1080p all-exact tableAhmet Kaan Gümüş · df61932Browse files
test(av1): assert the frame-edge OBMC neighbour span fires on the 128-SB inter witnessAhmet Kaan Gümüş · 7aad309
test(av1): assert the frame-edge OBMC neighbour span fires on the 128-SB inter witness obmc_edge_span_hits counts OBMC neighbour strips whose span runs past mi_rows/ mi_cols -- the shape the previous commit fixed. The 10-bit 1920x792 128-SB witness (198 mi rows, so every bottom-row block overhangs) fires it 33 times and the gate now hard-asserts it, so the fix cannot silently regress.
fix(av1): OBMC neighbour prediction size is the block's own width/height, not the frame-edge clampAhmet Kaan Gümüş · 715a65d
fix(av1): OBMC neighbour prediction size is the block's own width/height, not the frame-edge clamp libaom's foreach_overlappable_nb_above/left pass op_mi_size = AOMMIN(xd->width|height, mi_step); we clamped the span to end_col/end_row (mi_cols/mi_rows), so a block overhanging the frame edge predicted a SHORTER neighbour strip -- and at 4 chroma rows that flips the vertical kernel to the 4-tap narrow one (class narrow-block-sharp-kernel), giving a 1-off in the last valid chroma row of the blend. Predict at the full op_mi_size and clip only the write into this block's own buffer (obmc_blend_v gains the tmp stride). 10-bit 1920x792 267-frame cut: 36 differing frames (worst 13 B) -> 0.
Merge branch 'lane-t900' (deb9f6be): uv_mode grid counter asserted on the small-side GLOBALMV witness; OBMC blend rung on both decodersAhmet Kaan Gümüş · deea6ffBrowse files
2026-09-02
docs(av1): lane-t900 r13 report -- 4K offsets exact, OBMC-blend residue localisedAhmet Kaan Gümüş · 1afb820Browse files
test(av1): EC_MCB rung -- the chroma OBMC prediction before and after the blendAhmet Kaan Gümüş · aa6d526
test(av1): EC_MCB rung -- the chroma OBMC prediction before and after the blend
An env-gated dump matching the instrumented aomdec's own EC_MCB rung
("<plane>:<px>:<py>[:<frame>]", chroma only): it prints the block's chroma
prediction rows on entry to the OBMC blend and again on exit, so a bottom-edge
residue can be attributed to the base motion compensation or to the overlap
blend in one run. Trace only, no behaviour change.docs(av1): record the measured OBMC min-4 dead end at the chroma blend siteAhmet Kaan Gümüş · 07b88ab
docs(av1): record the measured OBMC min-4 dead end at the chroma blend site libaom clamps the OBMC neighbour PREDICTION's plane dimension to a minimum of 4 rows/columns, but the blend length stays the plain half (overlap >> ss), so flooring the chroma blend at 4 is wrong: measured on a 10-bit 1920x792 cut it took 36 differing decode frames to 266 and the worst frame from 13 to 11007 bytes. Comment only, no behaviour change.
test(av1): witness the mi-granular uv_mode grid on the small-side GLOBALMV gateAhmet Kaan Gümüş · 86dc1a6
test(av1): witness the mi-granular uv_mode grid on the small-side GLOBALMV gate The r12 chroma edge-filter fix (uv_mode read off the mi grid instead of a one-slot-per-column map) shipped without a gate asserting it fired. The existing 10-bit 1920x792 warp-reach fixture fires it 138 times, so the gate now hard-asserts uv_mode_grid_override > 0 and reports the count; decode_probe prints the counter too. No new fixture needed.
docs(av1): lane-t900 r12 handoff -- chroma edge-filter uv_mode grid root cause, film deltas, open bottom-edge residueAhmet Kaan Gümüş · 71fb25bBrowse files
fix(av1): the chroma edge-filter type reads the mi grid's uv_mode, not a one-slot-per-column mapAhmet Kaan Gümüş · f6d6eda
fix(av1): the chroma edge-filter type reads the mi grid's uv_mode, not a one-slot-per-column map get_intra_edge_filter_type takes the above/left uv_mode of the CHROMA neighbour mi (libaom set_mi_row_col: chroma_above_mbmi = base_mi[-stride]), and libaom writes one MB_MODE_INFO into every mi cell a block covers. Our neighbour band kept a single (last_row, uv_mode) slot per mi column, so a sub-8x8 pair's own first (non-chroma-ref) half stamped its DC_PRED over that column before the pair's chroma-ref half -- which snaps its read to the base (even) column -- looked at it: the mi-exact match failed and the coarse 16x16 band answered DC where a SMOOTH_PRED chroma block really sat one mi row above. The edge-filter type flipped 1 -> 0, changing the chroma edge filter/upsample decision: chroma-only +-1..3, luma bit-exact. Adds a full mi-granular uv_mode grid (superblock-padded, per frame, tile availability unchanged) read first, with the old maps kept as the fallback for cells no block has written, plus counter uv_mode_grid_override_hits. 10-bit 3840x1608 10 s head: 66 of 241 decode frames differed (first 161, worst 199 B) -> 0 of 241 byte-exact vs instrumented aomdec. 10-bit 1920x792 cut: 134 of 275 differed (worst 2410 B, the 1942 B chroma-only intra-in-inter frame included) -> 5, worst 3 B. Second 1920x792 cut unchanged (36 frames, 1-13 B, the open bottom-edge MC residue).
Merge branch 'lane-t900' (186f1390): mv clamp window keeps signed frame-edge distances for overhanging blocks; the 10-bit 3840x1608 head decodes 100 frames byte-exact, pinned witness + unit testAhmet Kaan Gümüş · 7f33a5eBrowse files
docs(av1): lane-t900 r11 handoff -- frame-edge mv clamp root cause, 4K head prefix exact, chroma-only KB wall localisedAhmet Kaan Gümüş · 810d4fcBrowse files
fix(av1): the mv-stack frame-edge clamp window is signed -- a block overhanging the bottom/right edge was never clampedAhmet Kaan Gümüş · 3bd2894
fix(av1): the mv-stack frame-edge clamp window is signed -- a block overhanging the bottom/right edge was never clamped libaom's `mb_to_right_edge` / `mb_to_bottom_edge` (`set_mi_row_col`, av1_common_int.h) are signed: a block that overhangs the frame's right or bottom edge keeps its full `bw4`/`bh4`, so `mi_cols - bw4 - mi_col` and `mi_rows - bh4 - mi_row` go NEGATIVE and `clamp_mv_ref` (mvref_common.h) narrows the predictor window by exactly that much. Our port computed both terms with `usize::saturating_sub`, which clipped them to 0 and left the window up to two block sizes too wide, so an edge block's stack entry was never clamped. On a 10-bit 3840x1608 stream (`mi_rows == 402`) every bottom-row 64x64 block overhangs by 14 mi units: the 64x64 NEWMV block at mi(400,368) of decode frame 88 took `mv0=(224,568)` where libaom takes `(32,568)` -- the entropy stream is identical (same range at EC_MODE and EC_MODE_MV), only the reconstructed value differed -- and its MC then read the reference's replicated last row instead of real rows 1604..1606. That frame was the only non-exact one in the 100-frame 4K head prefix (221 bytes); it is now exact. New counter `mvstack::mv_clamp_edge_overhang_hits` (also printed by decode_probe) counts stack entries the negative-edge window actually moves. crates/ec-av1/fixtures/reelb_head_mvclamp_witness.obu (72158 bytes, sha256 451a9b138995e636f22308847a123b5c8621d4908cd93772cf5bbf2b37df39d7, truncated twice to identical hashes) is the smallest prefix of that head firing it (N=79 -> 0, N=80 -> 5); new gate `a_10bit_film_frames_with_frame_edge_mv_clamping_decode_pixel_exact` decodes its 52 shown frames pixel-exact against ffmpeg on every plane and hard-asserts the counter. `clamp_mv_ref_window_is_signed_at_the_frame_bottom_edge` pins the ladder's exact numbers.
Merge branch 'lane-t900' (2aa87a34): sub-8x8 GLOBALMV blocks read their interp filter, warp-sample top-right probe uses max(w,h) with libaom's rect refinements, gate ffmpeg helpers no longer deadlock; no film cut refuses any moreAhmet Kaan Gümüş · 173b937Browse files
docs(av1): lane-t900 r10 report -- rect shape refinements complete the warp top-right probe, 1080p cut mode-exact, new small-side GLOBALMV witness gateAhmet Kaan Gümüş · 627a495Browse files
test(av1): witness gate for the small-side GLOBALMV and rect warp-reach paths, and 7 gate helpers that deadlocked ffmpegAhmet Kaan Gümüş · 2696d88
test(av1): witness gate for the small-side GLOBALMV and rect warp-reach paths, and 7 gate helpers that deadlocked ffmpeg New fixture `crates/ec-av1/fixtures/gm_small_side_witness.obu` (1158066 bytes, sha256 f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca, truncated twice independently to the same hash): the first 50 frame-carrying OBUs of a 2 s 10-bit 1920x792 128-superblock cut -- 34 decode-order frames, 33 shown, ALL 34 byte-exact against instrumented aomdec. It is the smallest prefix of that cut which fires `gm_nontrans_small_side` at all (49 OBUs fires 0, 50 fires 1); no fixture already in the repository fires it. Gate `a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact` compares the 33 shown frames against ffmpeg on every plane and hard-asserts `gm_nontrans_small_side_hits > 0` (1) and `tr_reach_longer_side_hits > 0` (2295). The 128-superblock inter witness gate additionally hard-asserts `tr_reach_longer_side` (600 there). Also: seven copies of one gate helper wrote the whole stream to ffmpeg's stdin INLINE and only afterwards read stdout, so any fixture whose raw output exceeds the 64 KiB stdout pipe buffer deadlocks before the input is fully written. The new 1.1 MB fixture (~150 MB of raw 10-bit frames) hung for 45 minutes with both processes at 0% CPU. All seven now write on a dedicated thread; the same test run finishes in 51.5 s.
fix(av1): the warp-sample top-right probe needs libaom's rect shape refinements, not just the longer sideAhmet Kaan Gümüş · 00aa449
fix(av1): the warp-sample top-right probe needs libaom's rect shape refinements, not just the longer side r9 changed `av1_findSamples`' top-right probe to libaom's `AOMMAX(xd->width, xd->height)` (mvref_common.c:1235) but left our `has_top_right` port without the two shape refinements libaom applies right after the mask loop (`av1_common_int.h:1419-1428`): is_last_vertical_rect = !((mi_col + width) & (height - 1)) [width < height] is_first_horizontal_rect = !(mi_row & (width - 1)) [width > height] Both are derivable from mi_row/mi_col/bw4/bh4 alone -- no partition context -- and they only bite when bw4 != bh4, i.e. exactly the blocks whose probe size r9 changed. Probing at the longer side WITHOUT them is half a port: it fixed the 64x128 block (bs=32 > 16, early-out, no top-right sample, 2-symbol obmc alphabet) and broke a 32-wide tall leaf in an earlier superblock, moving the first divergence of the 10-bit 1920x792 264-frame cut EARLIER (decode frame 49, mi(24,376) -> its successor mi(24,380) read a different rng). With the refinements ported, on that cut: * mode ladder vs the instrumented reference decoder over ALL 264 frames: 915 equal runs, 914 inserts (our per-sub-block prints the reference does not emit), ZERO replace/delete -- every EC_MODE (mi_row, mi_col, rng) triple the reference emits matches ours, previously the first mismatch was frame 49. * pixel compare vs the reference decoder: 231/267 frames bit-exact, 36 frames differ by 1-3 bytes each (the known chroma-MC bottom-row clamp residue, lane-t900 r8); was 218/267 frames differing, frame 49 alone by 2.26 MB. `tr_reach_longer_side_hits()` now counts blocks where the full probe disagrees with the old square-at-width probe (9936 on that cut). corner-cut: libaom's third refinement (PARTITION_VERT_A bottom-left square) still not ported -- it needs the parent partition type; ceiling and upgrade path recorded on `mvstack::has_top_right`.
docs(av1): lane-t900 r9 handoff -- sub-8x8 GLOBALMV interp guard, warp top-right reach, 4K head element-exact, frame 49 still openAhmet Kaan Gümüş · 91fac5aBrowse files
fix(av1): the warp-sample top-right probe uses the block's LONGER side, plus EC_MM/EC_MM2/EC_PROJ/EC_PROBE_HDR rungsAhmet Kaan Gümüş · 864b5c6
fix(av1): the warp-sample top-right probe uses the block's LONGER side, plus EC_MM/EC_MM2/EC_PROJ/EC_PROBE_HDR rungs libaom `av1_findSamples` (mvref_common.c:1235) probes the top-right neighbour with `has_top_right(cm, xd, mi_row, mi_col, AOMMAX(xd->width, xd->height))`; we passed the block's WIDTH. A 64x128 block therefore collected a top-right warp sample libaom never sees, so `num_proj_ref >= 1` made `motion_mode_allowed` resolve to WARPED_CAUSAL and read the 3-symbol `motion_mode_cdf` where libaom reads the 2-symbol `obmc_cdf` -- same value, different narrowing (class wrong-alphabet-same-value). Localised on the 10-bit 1920x792 264-frame cut, decode frame 49, block mi(64,144) 64x128 NEWMV ref0=1: after the mv both decoders sit at rng 47868; aomdec's motion_mode lands at 45539 (47868 * 0.951, the BLOCK_64X128 obmc row 31014/32768) and ours at 41629 (47868 * 0.870, the motion_mode row 28898/32768). The offending sample was the top-right cell, a 64x16 neighbour that `has_top_right(.., bw4=16)` reaches and `has_top_right(.., 32)` does not. Counter `tr_reach_longer_side_hits()` counts only blocks where the two probes disagree (1942 on that cut). NOT yet gate-asserted and the named gates were NOT re-run after this hunk -- see lanes/t900-r9.handoff.md. New rungs, all env-gated: EC_PROBE_HDR (one EC_HDR line per decode-order frame: type/show/base_q/primary_ref/ref_idx/refresh/order_hint/tiles/txmode/ interp/allow_warp/cdef/lr), EC_MM + EC_MM2 under EC_TRACE_MODE_STEP (the motion_mode eligibility terms and which ALPHABET was read -- a suppressed symbol prints nothing otherwise), and EC_PROJ_MI=<row>,<col> listing a block's warp-sample candidates in libaom's order.
fix(av1): a GLOBALMV block with a 4-px side must still read its interp filterAhmet Kaan Gümüş · defe73a
fix(av1): a GLOBALMV block with a 4-px side must still read its interp filter libaom `is_nontrans_global_motion` (mvref_common.h) returns 0 at `AOMMIN(mi_size_wide[bsize], mi_size_high[bsize]) < 2` BEFORE it looks at any global-motion model, so no block with a 4-px side is ever "non-translational global" and `av1_is_interp_needed` never suppresses its interp-filter symbol. Our two sub-8x8 readers (quad-4x4 and the 4x8/8x4 rect pair) and the compound arm of decode_inter_block computed `gm_nontrans` from the model alone and skipped that symbol -- a one-symbol entropy desync at the block, before any coefficient. The single-ref arm of decode_inter_block already carried the guard; the 8x8-leaf reader cannot hit it (min side 2). Counter `gm_nontrans_small_side_hits()` counts only the blocks where the guard flips our answer (printed by decode_probe). Measured on the 10-bit 3840x1608 head cut (170 decode frames), coefficient ladder vs aomdec (tags all_zero/eob/after_bases + rng): decode frame 99 was DIFF at element 11933 (we read txfm_split where aomdec read interp: our rng 60039 vs 46640 at block mi(40,637), the second 4x8 of a vertical sub-8x8 group, GLOBALMV ref0=5); it is now element-exact over all 69065 elements. Counter fires 109 times on that cut.
feat(av1): EC_TRACE_COEFF_FRAME rung, and the key-frame tile decoder clears TX_SELECT_INTERAhmet Kaan Gümüş · 42ede61
feat(av1): EC_TRACE_COEFF_FRAME rung, and the key-frame tile decoder clears TX_SELECT_INTER Cherry-picked from lane-frame80 c5b1020e WITHOUT its two tx_size_context delegations -- lane-frame80 r2 measured those redundant against this lane's per-call-site intra-in-inter switch (same wall, same golomb signature) and dropped them in d79559ab. EC_TRACE_COEFF_FRAME=<decode idx> narrows the EC_TRACE_COEFF rungs to one DECODE-order frame (a 4K stream prints gigabytes otherwise) and emits an EC_COEFF_FRAME marker per frame so our trace is splittable. decode_key_frame_tile_with_cdfs now clears TX_SELECT_INTER, which the inter tile decoder sets and ~15 sites read -- an independent thread-local leak.
Merge commit '434ac12c' into lane-t900: rect chroma warp guard deduped, rect interintra gate arm keptAhmet Kaan Gümüş · f5530c9
Merge commit '434ac12c' into lane-t900: rect chroma warp guard deduped, rect interintra gate arm kept Kept ONE copy of the per-plane warp guard: lane-t900 r5's `warp_plane_allowed(w, h)` call sites, dropping lane-midcut's equivalent `warp_luma_ok`/`warp_chroma_ok` bindings (same rule, same libaom source `av1_init_warp_params`). Kept lane-midcut's `intra_rect_in_inter_txctx_override_hits` counter and its interintra RECT ARM gate (the base recipe spells --enable-rect-partitions=0, so the rect delta assert was unsatisfiable without it).
docs(av1): lane-t900 r8 handoff -- inter blocks never stamped the mode maps, plus the open one-sample and frame-49 itemsAhmet Kaan Gümüş · 7fe1831Browse files
fix(av1): an inter block never stamped the luma/chroma mode maps, so a later intra block's edge-filter type fell back to a stale SMOOTH modeAhmet Kaan Gümüş · cb1dc1f
fix(av1): an inter block never stamped the luma/chroma mode maps, so a later intra block's edge-filter type fell back to a stale SMOOTH mode
`get_intra_edge_filter_type` (spec 7.11.2, libaom `reconintra.h`'s
`is_smooth`) reads the above/left neighbour's `mode` (luma) and `uv_mode`
(chroma). For an INTER neighbour libaom answers "not smooth" by
construction: `mbmi->mode` holds an inter mode (>= NEARESTMV) and
`is_smooth(mbmi, plane > 0)` returns 0 outright ("uv_mode is not set for
inter blocks"). Our mi-exact mode maps were written only by intra paths,
so an intra block whose neighbour was an 8x8 inter leaf found no mi entry
and fell back to the coarse SUB-row band -- which still held a SMOOTH
mode from an earlier block in that pixel row. The directional edge filter
then ran at strength 3 where libaom uses 2, and `use_intra_edge_upsample`
can flip with it.
`record_inter_rect_mi` now stamps DC_PRED into both maps for every inter
block. New counter `inter_neighbour_not_smooth_hits` counts the reads
where the coarse band would have said SMOOTH and the mi-exact map does
not; the 128-SB inter witness gate asserts it (375 hits, still pixel-exact
on all 15 shown frames). The square-block `OUR_PRED` trace now prints
`ft=` like the rect one, which is what localised this.
Decode-order compare against aomdec on a 10-bit 1920x792 125-frame cut:
frame 11 luma+U now exact (was 28 luma / 3 U samples off), whole-cut
differing bytes 18108 -> 12780.docs(av1): lane-midcut r3 handoff -- finished 24-offset decode-order tableAhmet Kaan Gümüş · 2721bbbBrowse files
docs(av1): lane-midcut r3 handoff -- dedup verdict, rect chroma warp guard, 126-sample residueAhmet Kaan Gümüş · 1496390Browse files
test(av1): give the interintra gate an arm that can actually produce a rect interintra blockAhmet Kaan Gümüş · 30e3110
test(av1): give the interintra gate an arm that can actually produce a rect interintra block The interintra gate's recipe spells `--enable-rect-partitions=0 --min-partition-size=32`, so it cannot emit a rectangular block at all and lane-midcut r1's `interintra_rect_hits` delta assert was unsatisfiable on it (40 pixel-exact matches, counter 0 -- the gate disabled the very shape the assert claims to prove). Added a RECT ARM that re-encodes the same source with `--enable-rect-partitions=1 --min-partition-size=8 --max-partition-size=64` appended (aomenc keeps the LAST occurrence of a repeated flag) and compares every decode-order frame of that stream against aomdec, running per seed until the counter fires. Result: seed 46's rect arm decodes 24/24 decode-order frames pixel-exact with interintra_rect_hits=4, and the gate is green again (1 passed, 11.7 s).
fix(av1): a rect block's chroma warp was gated on the square prediction buffer's side, not the plane's block dimsAhmet Kaan Gümüş · 00a6ca0
fix(av1): a rect block's chroma warp was gated on the square prediction buffer's side, not the plane's block dims libaom `av1_init_warp_params` (reconinter.c) bails out per PLANE at `block_width < 8 || block_height < 8`, so the 8x4 / 4x8 chroma of a 16x8 / 8x16 luma block keeps the translational prediction even when the luma warps. `decode_inter_block` allocates a SQUARE prediction buffer and tested `chroma_side >= 8` -- the buffer's side -- so every rect block with a warp (local or global) warped its chroma where libaom does not, and a 4-wide or 4-tall luma block warped its luma. Guard on `write_chroma_w/h` and `write_w/h` instead (class rectchroma2 / narrow-block-sharp-kernel: dims read off the enclosing square buffer). Measured on the 2-frame cut of the 10-bit 3840x1608 stream (decode-order PREFILT16 compare vs instrumented aomdec, frame 0 already exact): frame 1 goes from 1317 wrong samples (Y 115, U 342, V 860) to 126 (Y 115, U 11, V 0).
refactor(av1): drop the duplicate in-inter tx-depth ctx override, keep the counter on the band readAhmet Kaan Gümüş · eec9297
refactor(av1): drop the duplicate in-inter tx-depth ctx override, keep the counter on the band read lane-t900 r2 fixed the same defect at every rect intra reader's call site (`tx_size_context_txfm_rect` under `INTRA_IN_INTER_MODE`), so this lane's override inside `tx_size_context_rect` is now unreachable: every remaining `tx_size_context_rect` call is in the `else` arm of exactly that condition. Removed it and moved `intra_rect_in_inter_txctx_override_hits` into `tx_size_context_txfm_rect`, where it still counts only the blocks whose CDF row the deblock-grid approximation would have read wrong. Verified on the 2-frame cut of the 10-bit 3840x1608 stream: with t900's call-site switch alone, decode-order frame 0 is EXACT and frame 1 has the same 1317 wrong samples (Y 115, U 342, V 860) this lane measured with its own override, i.e. the two fixes are equivalent and no site needs both.
Merge branch 'lane-t900' (19f7af9a): sub-8x8 inter chroma inherits the chroma-reference sub-block's tx_type; 128-SB witness extended to 16 decode framesAhmet Kaan Gümüş · f6360d3Browse files
docs(av1): lane-t900 r7 handoff -- instruments, extended witness, and the one-sample frame-41 residueAhmet Kaan Gümüş · 0f359c0Browse files
docs(av1): lane-t900 r7 report -- sub-8x8 chroma tx_type from the chroma-reference sub-block, extended witness, film frontierAhmet Kaan Gümüş · 18a7ed3Browse files
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block'sAhmet Kaan Gümüş · 3898141
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block's `av1_get_tx_type` (libaom `av1/common/blockd.h:1291-1305`) scales the chroma transform's `blk_row`/`blk_col` back by the subsampling and indexes `xd->tx_type_map` -- which `set_mi_offsets` (`av1_common_int.h:1679`) re-points to the CURRENT sub-block's mi. For a sub-8x8 group the current block at the chroma read is the chroma-reference (last) sub-block, so the group's one 4x4 chroma unit per plane inherits THAT sub-block's first transform unit's tx_type. Both sub-8x8 inter paths took the group's FIRST sub-block instead. No chroma tx_type symbol is coded, so the entropy stream stayed perfectly in sync and the defect only inverted a chroma unit on the wrong basis: on the 10-bit 1920x792 128-superblock stream, decode-order frame 14 differed in exactly 14 U pixels inside one aligned 4x4 chroma TU (V exact -- its unit was all_zero), where instrumented aomdec reads tx_type=7 (ADST_FLIPADST, the bottom 8x4 sub-block's own) and we read DCT_DCT (the top 8x4 sub-block was skip). New counter `sub8_chroma_tx_from_ref_hits` counts the groups that tell the two rules apart: chroma-reference tx_type != first sub-block's AND the chroma unit codes coefficients. The 128-SB witness fixture is extended from 19 to 23 frame-carrying OBUs (14 -> 16 decode-order frames, 12 -> 15 shown, 177773 bytes, sha256 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc, two independent cuts hash identically) so the gate covers frame 14, and it hard-asserts the new counter (2 hits) alongside the eight it already had.
Merge branch 'lane-t900' (d650227f): six inter-frame fixes for the 10-bit 1920x792 128-SB stream (intra-in-inter tx ctx + txfm bands, non-chroma-ref contexts, rect interintra, mi-exact edge filter, per-plane warp bail-out, cdef_transmitted per 64x64 unit), pinned 14-frame witness, intra 16x4-in-inter liftedAhmet Kaan Gümüş · 873b00aBrowse files