Commits
Commits on
552edc4cede0dfd9bebbc4e344242802802d15cc2026-09-04
Merge branch 'lane-t900' (6429a980): palette on 8x8 leaves inside inter frames; every sub-8x8 tail publishes its palette state; 128-root screen strip refusal censusedAhmet Kaan Gümüş · 93b8225Browse files
docs(av1): census the 128-root screen-content strip refusal (site B, r23)Ahmet Kaan Gümüş · f79247a
docs(av1): census the 128-root screen-content strip refusal (site B, r23) Its premise is already false by the spec -- 5.11.46 codes palette only for `Block_Width <= 64 && Block_Height <= 64`, so a 128x64/64x128 half consumes no palette syntax and `allow_screen_content_tools` changes nothing about it -- but 6 aomenc encodes at `--sb-size=128 --tune-content=screen` (704x320, the edge-forced size r18 proved for the non-screen twin; screen cell content at cq 10/20/40 and r18's own panning-texture-plus-fresh-ramp shape) code ZERO 128-root halves of any kind, so there is nothing to gate a lift with and the refusal stays with its census written down.
feat(av1): reconstruct palette blocks on 8x8 leaves inside inter framesAhmet Kaan Gümüş · cdef95e
feat(av1): reconstruct palette blocks on 8x8 leaves inside inter frames `decode_inter_block8`'s intra arm read `palette_y_mode`/`palette_uv_mode` off hardcoded CDF row 0 and refused the moment either said "yes". It now reads the whole `read_palette_mode_info` syntax with this leaf's REAL `av1_get_palette_mode_ctx` and colour cache, decodes both colour-index maps after the mode info (`av1_visit_palette`) and predicts from them through the existing PALETTE_PRED slot, per transform unit when the leaf's `tx_depth` splits -- the same shape the >=16 intra-in-inter block already ran. A palette block on an 8x8 leaf also made a pre-existing hole in the palette neighbour bands reachable: a sub-8x8 group published nothing, so the row's `left_palette_size` kept an earlier 8x8 palette block's size and `av1_get_palette_mode_ctx` read 1 where libaom gathers 0 (decode-order frame 1, mi(30,30): palette size decoded as 8 instead of 2). All three sub-8x8 tails now publish the all-zero state, as does `decode_inter_block8`'s own compound early return (class early-return-skips-tail). New rung `EC_PALPUB=1` prints every publication into those bands, which is what named the gap. Gate `a_screen_stream_with_palette_8x8_leaves_in_inter_frames_decodes_pixel_exact`: 15 frames pixel-exact on every plane vs ffmpeg, 25 palette-Y and 12 palette-UV 8x8 leaves inside inter frames -- exactly the 25 `bsize=BLOCK_8X8 palette_size>0` blocks aomdec's `EC_PALSYN` counts past the key frame. The `(UV)` refusal string is gone from the decoder entirely (this leaf was its only site); the `(Y)` one survives only as the defensive `palette.is_none()` guard no caller can reach.
Merge branch 'lane-perf2' (10a21e5e): separable MC kernels restructured (contiguous passes, i16 horizontal multiply, whole-pel shortcuts, unscaled router for compound); byte-exact on 1080p and 4K dumps, mc self time 38% to 15%Ahmet Kaan Gümüş · 6352a70Browse files
wip(av1): r23 palette on sub-8x8 leaves / 128-root screen strip, partial (committed by the orchestrator at the builder's turn cap)Ahmet Kaan Gümüş · 4b093b1Browse files
Merge branch 'lane-t900' (78e0079b): palette reconstruction inside inter frames (square intra-in-inter + rect strips), variable-alphabet CDF counter reset; screen witnesses gated byte-exact at 8 and 10 bitAhmet Kaan Gümüş · 2b9468dBrowse files
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter resetAhmet Kaan Gümüş · 6a16223
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter reset
An intra block in an inter frame refused by name the moment it actually used
a palette ("reconstruction is out of scope"), at both the square
(`decode_inter_block`) and the rect (`decode_intra_rect_in_inter`) path. Both
now read the real syntax -- mode/size/colours off this block's own
`av1_get_palette_mode_ctx` context and `av1_get_palette_cache` colour cache,
the two colour-index maps deferred past `filter_intra` exactly as
`av1_visit_palette` runs them -- and predict from the map (per transform unit
where the luma transform splits), the same machinery the key-frame paths use.
Every block of an inter frame now also stamps its palette state (all-zero for
an inter block) into the mi-granular neighbour bands, which is what libaom's
mode-info grid holds and what the next block's cache and mode context read.
The witness then desynced at the FIRST inter-frame palette block's colour
index map, third symbol: the two palette colour-index tables are this
decoder's only variable-alphabet CDFs (the reader takes `[..=n]` of a
`[u16; 9]` row, so `update_cdf`'s symbol counter lives at index `n`), and
`Cdfs::reset_counts` zeroed the array's last slot instead. Every colour-index
row therefore crossed a frame boundary with a saturated count and adapted at
rate 6 where libaom, counting from zero, adapts at 4 (class
cdf-counter-not-reset). Swept: those two are the only `[..=n]` readers here.
Also lifted, as a stale premise: the 16x4/4x16 arm of "a HORZ/VERT intra strip
in a screen-content frame (palette syntax is consumed for square blocks
only)" -- that arm routes through `decode_rect4_16_strip`, which takes
`allow_screen_content_tools` and reads the whole palette syntax already. The
128-root arm keeps the refusal (its body reads none, and no --sb-size=128
screen witness exists).
Gates (aomenc --tune-content=screen --enable-palette=1 --enable-intrabc=0
--sb-size=64, 15 frames, key + inter, 8-bit and 10-bit twins):
a_real_aomenc_screen_stream_with_palette_blocks_decodes_pixel_exact and
a_screen_stream_with_16x4_intra_strips_in_inter_frames_decodes_pixel_exact --
all 15 frames byte-exact vs ffmpeg on every plane, with inter-frame palette
counters y/uv > 0 so neither gate is vacuous.perf(av1): whole-pel axes skip the pass they do not needAhmet Kaan Gümüş · c8bf4a0
perf(av1): whole-pel axes skip the pass they do not need A motion vector with a whole-pel component still ran the full two-pass filter. Fraction 0 is the identity tap, so each axis has an exact shortcut: Round2(128 * s, InterRound0) == 16 * s horizontally, and vertically Round2(128 * a, InterRound1) == Round2(a, InterRound1 - 7) (== a for the compound round), which also means the 3 rows above and 4 below the block never have to be filtered -- a 4-tall chroma block drops from 11 horizontal rows to 4. Byte-exact: 1080p 10-bit and 2160p HDR EC_PROBE_OUT16 dumps both cmp identical to the pre-lane binary. Interleaved medians on the 1080p segment, 6 pairs against the previous commit: 19.08 s -> 17.42 s (faster in 5 of 6).
perf(av1): horizontal MC taps multiply at 16 bitsAhmet Kaan Gümüş · dcac6b3
perf(av1): horizontal MC taps multiply at 16 bits The interior horizontal row had auto-vectorised, but into pmuludq/pshufd chains: an i32 x i32 lane multiply is three instructions on SSE2. A tap is |x| <= 128 and a sample is bounded by the bit depth (<= 4095 at 12-bit), so narrowing both factors to i16 before the widening multiply gives exactly the same products and one instruction per pair. Byte-exact: 1080p 10-bit and 2160p HDR EC_PROBE_OUT16 dumps both cmp identical to the pre-lane binary. Interleaved medians on the 1080p segment: 22.25 s base -> 16.64 s.
wip(av1): palette reconstruction, r22 partial (committed by the orchestrator at the builder's turn cap)Ahmet Kaan Gümüş · 236830dBrowse files
perf(av1): unscaled compound MC leaves the scaled walkAhmet Kaan Gümüş · 8c7cbe4
perf(av1): unscaled compound MC leaves the scaled walk horizontal_scaled_pass was 14% of decode self time, and almost none of that was scaling: every compound prediction routed through it whatever the reference's scale, so an unscaled block paid a per-column integer-position derivation, a per-column filter-phase lookup, a column-major read of the reference and a per-tap clamp. At REF_NO_SCALE that walk reduces algebraically to the fixed x0/xfrac split (pos_x_q10 == x_q4 * 64 + 32 makes int_pel == x_q4 / 16 and (x_qn & 1023) >> 6 == x_q4 % 16 for every column), so a new horizontal_pass router sends it to the contiguous unscaled pass and leaves the general walk for superres. Both vertical passes now accumulate tap-major over contiguous slices and reuse the thread-local scratch, as the single-reference one does. Byte-exact: 1080p 10-bit (299 frames) and 2160p HDR EC_PROBE_OUT16 dumps both cmp identical to the pre-lane binary. Interleaved medians on the 1080p segment: 23.39 s base -> 18.21 s (12.8 -> 16.4 fps).
perf(av1): unscaled MC does one contiguous horizontal pass, no per-call allocAhmet Kaan Gümüş · 62f159c
perf(av1): unscaled MC does one contiguous horizontal pass, no per-call alloc predict_with_filters_kern spent 17% of decode self time in a doubly nested per-sample loop: every tap re-read the filter table, every sample went through the Clip3 edge helper, and each call allocated its own (h+7)-row intermediate. Restructured dav1d style, keeping the rounding chain untouched: taps are fetched once into a [i32; 8]; a row whose whole 8-tap footprint is inside the reference's true extent is one contiguous slice walked with windows(8) (the clamped form stays for edge rows and is what a past-the-edge motion vector still takes); the vertical pass accumulates tap-major over two contiguous i32 slices and skips the zero taps the 4-tap kernels carry; the whole-pel case copies a row at a time. The intermediate is a thread-local scratch buffer instead of a per-call Vec. Byte-exact: EC_PROBE_OUT16 dumps of a 299-frame 1080p 10-bit segment and a 4 s 2160p HDR segment both cmp identical to the pre-change binary. Interleaved medians on the 1080p segment: 22.61 s -> 20.66 s.
Merge branch 'lane-t900' (074283d1): screen-content inter frames code palette syntax on rect intra strips; partition-alphabet and var-tx leaf enumerations prove 5 more refusals (13 proven)Ahmet Kaan Gümüş · b0b1b47Browse files
test(av1): enumerate the 128-root partition alphabet too, keyed by the refusal itselfAhmet Kaan Gümüş · 5b764e4
test(av1): enumerate the 128-root partition alphabet too, keyed by the refusal itself The 32x32 enumeration generalises: find each partition match by the refusal in its own fallback arm rather than by line number, expand inclusive-range patterns (the four AB shapes at the 128 root are one guarded arm), and check the arms against the alphabet that match's CDF codes -- eight symbols for partition_w128, ten for partition_w32. A mutation run that narrowed the AB range to VERT_A reported the missing value.
feat(av1): code the palette syntax on a rect intra strip inside a screen-content inter frameAhmet Kaan Gümüş · 7ee6680
feat(av1): code the palette syntax on a rect intra strip inside a screen-content inter frame read_palette_mode_info has no square-only term: a --tune-content=screen inter frame writes palette_y_mode (and palette_uv_mode) for every block whose shape palette_bsize_ctx_wh admits, intra strips included. The inter path's intra arm skipped both symbols and refused the whole case by name, and a real stream reaches that refusal -- measured with decode_probe on testsrc2 256x192 --tune-content=screen --enable-palette=0 --enable-intrabc=0: an 8x16 strip at 8-bit, a 16x8 one at 10-bit. The 2:1 reader now codes the syntax itself (mode context 0 and no cache: no block this decoder produces can USE a palette, and the arms it shares with the key-frame path refuse that by name), and the 1:4 arm goes through read_intra_mode_rect, which already did. Both arms of the new gate decode ten frames pixel-exact against ffmpeg with 63 strips counted each. Six earlier encodes with the palette SEARCH on never reach an inter frame at all: the key frame stops on the separate palette-reconstruction refusal first (class refusal-hides-a-defect).
test(av1): enumerate the var-tx leaf domain against the two too-large-leaf refusalsAhmet Kaan Gümüş · 8f932d5
test(av1): enumerate the var-tx leaf domain against the two too-large-leaf refusals read_var_tx_size emits a leaf only as the unit it entered with or a sub_tx_size_map step below it, so the reachable leaf set of an entry never exceeds that entry. Both callers enter at or below their own ceiling; the single exception -- a 64px block entering at TX_64X64 under a 32 ceiling -- is one unit whose only above-ceiling leaf is the whole block, i.e. exactly the `single` case each refusal is guarded by.
test(av1): enumerate the 32x32 partition alphabet against the arms that code itAhmet Kaan Gümüş · 34574f5
test(av1): enumerate the 32x32 partition alphabet against the arms that code it partition_w32 is a ten-symbol CDF and symbol_fixed cannot return outside 0..nsyms, so PARTITION_NONE..=PARTITION_VERT_4 is the whole domain of part32. Both matches -- intra and inter -- carry an arm for each value, so neither trailing refusal is reachable. They stay in the code (part32 is a usize, the match needs a fallback, and a named refusal beats a panic) with the enumeration as their proof. The arm scan is token-exact on purpose: a mutation run that renamed one arm constant passed a substring version, because a misspelled constant in a pattern position is an irrefutable binding that compiles and swallows the alphabet.
test(av1): register the 12-bit and intrabc-on-rect-strip proofs in the refusal inventoryAhmet Kaan Gümüş · 0c4727a
test(av1): register the 12-bit and intrabc-on-rect-strip proofs in the refusal inventory Both gates already existed -- one negative (a hand-built 12-bit sequence header is refused by that exact string), one witness (a real aomenc screen key frame reaches intrabc on a rect strip) -- but neither was named as the proof of its refusal, so the inventory's numerator undercounted.
Merge branch 'lane-t900' (b80c4577): four shape-keyed refusals proven by block-shape census + table enumeration; refusal inventory gains PROVEN registryAhmet Kaan Gümüş · 1a54674Browse files
test(av1): prove the rect transform table/scan refusals over the measured shape domainAhmet Kaan Gümüş · 517f8b4
test(av1): prove the rect transform table/scan refusals over the measured shape domain Refusal D is three arms -- rect inter luma set, its chroma sibling and the rect scan table. Each is enumerated against the block-shape census over the shapes it is actually handed: the block footprint, the 4:2:0 chroma unit (the pair's 8x4/4x8 for a 1:4 strip), the rectangular var-tx leaves (sub_tx_size_map[TX_16X4] == TX_8X4) and the min(w,32) x min(h,32) coded corner, whose 32x32 case goes through the square reader instead. All 12 rect census shapes below 128 px are covered, so none of the three can fire for a shape a real stream presents.
test(av1): census-prove the intra 16x4/4x16 chroma-pairing refusal unreachableAhmet Kaan Gümüş · 48ada7f
test(av1): census-prove the intra 16x4/4x16 chroma-pairing refusal unreachable Refusal C fires for an intra footprint with a side below 8 that carries no chroma-pair record. The census says the only sub-8 footprints three real streams present are the 16x4/4x16 strips of a 16x16-level 1:4 partition, and that caller sets INTER_STRIP_CHROMA for every one of its four strips before the block is decoded; the sibling counter shows the SUPPORTED path firing 16x4=337 4x16=580 (439 chroma-paired) inside streams that decode with no refusal at all.
test(av1): prove the intra-in-inter size-group refusal names a shape no stream presentsAhmet Kaan Gümüş · 86c64ab
test(av1): prove the intra-in-inter size-group refusal names a shape no stream presents
Refusal B ("an intra-coded {bw}x{bh} block on the inter block path") sat on a
match whose reachable domain nothing checked; after r18 lifted the 128 halves
its measured arrivals all take an earlier branch. The match is now
`intra_in_inter_size_row`, and a test enumerates it against the block-shape
census: `decode_intra_rect_in_inter` has one call site (`write != side`), a
sub-8 footprint is either the 16x4/4x16 strip16 branch or refused there, a
128-px one returns from the 128-root branch, so the lookup can only ever see
the ten rectangular census shapes with 8 <= min side and max side <= 64 --
each of which has a row.test(av1): census-prove the rect-residual refusal unreachable over three real streamsAhmet Kaan Gümüş · 81b0ef9
test(av1): census-prove the rect-residual refusal unreachable over three real streams
Refusal A ("a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs
rectangular residual coding") was an unmeasured claim about a SHAPE.
`inter_piece!` sets `reject_residual` only when the block's true footprint
differs from its square CDF context, so the refusal needs a footprint that is
both non-square-in-context and missing from `rect_inter_residual_supported`.
`INTER_BLOCK_SHAPES` + `inter_block_shape_mask()` record every
`(side, write_w, write_h)` triple decoded on the thread (bit 31 = a triple the
table does not list, so the gate is a census and not a restatement of itself).
Three real streams present exactly 18 triples -- four square ones, where
`reject_residual` is false, and all fourteen rectangular AV1 block shapes,
every one of them covered by the residual table.
Also adds `PROVEN` to the refusal inventory: which refusals have a proving
witness or census test, printed as the inventory's numerator.perf(av1): read every EC_* debug flag once instead of per blockAhmet Kaan Gümüş · ba458d2
perf(av1): read every EC_* debug flag once instead of per block `std::env::var*` is a getenv + strlen + CStr validation on every call, and this crate reads its trace flags from per-block, per-TU and per-MC-call paths -- 11.6% of a 1080p10 decode's self time went to that, with the two worst sites inside the motion-compensation kernels themselves. Nothing in the crate or its tests calls `set_var`, so each name is a process constant. New `envflags` module: `env_flag!(NAME)` keeps one `LazyLock<bool>` per CALL SITE (atomic load after the first call, no hashing), `envflags::var` serves the value sites from a single snapshot of the environment. Semantics are unchanged at every site -- `is_some()`, `is_none()` and the `Result<String, VarError>` shape are preserved -- and the decoder's output is byte-identical. 160 sites in decode.rs, 2 in mc.rs. Header/tool-lookup sites that run once per stream are left alone. 1080p10 299-frame segment, interleaved medians of 3: 24.47 s -> 22.03 s (12.2 -> 13.6 fps), output byte-exact. (cherry picked from commit 318e0cce54fe7697a2d23c02d3b0d385f0e1401a)
Merge branch 'lane-t900' (c14f0c99): loop-restoration coefficient reference reset per tile (spec decode_tile RefLrWiener/RefSgrXqd); multi-tile inter gate un-ignoredAhmet Kaan Gümüş · 5165af7Browse files
fix(av1): the loop-restoration coefficient reference must reset at every tileAhmet Kaan Gümüş · f546cd0
fix(av1): the loop-restoration coefficient reference must reset at every tile Spec 5.11.2 `decode_tile` resets `RefLrWiener` / `RefSgrXqd` to the midpoint filter at the top of EVERY tile. `decode.rs` declared that running state once per frame (both the key-frame and the inter tile loops), so every tile after the first decoded its Wiener/Sgrproj coefficients off the previous tile's reference. The symbol COUNT is unchanged, so entropy stayed in sync and reconstruction stayed byte-exact -- only the filtered pixels moved. On the multi-tile inter gate at seed 44, frame 0 (the key frame) had the whole right tile column wrong: luma x[128..255] y[0..91], 1330 samples, max delta 2, chroma exact. Stage ladder that named it, on the pinned 2x2-tile stream: `EC_AV1_PREFILT_DUMP` exact, `EC_AV1_POSTDEBLOCK_DUMP` exact, `EC_AV1_POSTCDEF_DUMP` exact -- leaving loop restoration as the only remaining stage. That last rung did not exist on the oracle; it was added to its `decodeframe.c` (8-bit and forced-highbitdepth safe) this round. Class: per-tile state not reset. Swept: both tile loops in `decode.rs` are the only ones, and `lr_reference` was the only spec `decode_tile` reset missing there (above context, `DeltaLF`, `CurrentQIndex` were already per-tile). `a_real_aomenc_multi_tile_inter_stream_decodes_pixel_exact` is un-ignored: 6/6 seeds, 16/16 frames pixel-exact.
Merge branch 'lane-unignore' (859025ba): 9 green gates un-ignored (stale reasons), 3 zero-firing gates reworded, dead opt-in mentions droppedAhmet Kaan Gümüş · ed54604Browse files
test(av1): un-ignore 9 green gates whose ignore reasons were stale; reword 3 zero-firing gates; drop dead opt-in mentionsAhmet Kaan Gümüş · 8a26589
test(av1): un-ignore 9 green gates whose ignore reasons were stale; reword 3 zero-firing gates; drop dead opt-in mentions The 9 gates were ignored for defects/refusals that no longer exist on this tip; all 9 pass with their assertions untouched. The 3 gates whose recipe never fires the feature keep the attribute with the measured reason (class gate-blind-to-feature). Comment mentions of two decode opt-ins that were lifted now state the present default-on path and its gate.
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.