Commits
Commits on
fa0b48ef6e312d89b81e68ea3f78bb0868967f912026-09-09
2026-09-08
Merge branch 'lane-b128r' (20747a15): compound 128x128 root blocks ship; the 128 residual arm is written and witnessed but inert (behind EC_AV1_B128RES); cdef_idx stamps every 64x64 unit a wide block spans; pins re-taken 8364 / 33257Ahmet Kaan Gümüş · 14a38e5Browse files
fix(av1): price a bound rate-loop level per LEVEL, not per controller slotAhmet Kaan Gümüş · 83903ac
fix(av1): price a bound rate-loop level per LEVEL, not per controller slot The first cut projected one bound frame's leaf-equivalent rate onto its whole controller slot's remaining weight. The hidden slot mixes the top and mid ARFs: at the floor both code the same bytes at weights 4x apart, so the mid's rate applied to the top's weight drove the re-plan negative, every target to zero and the loop to a dead stop (1536 kbps pyramid arm landed -20.7%). The run now carries one plan per level (key, each hidden offset, leaves) and only the bound level's own remaining frames are held at its measured rate; the re-plan is bounded at both ends, so a target can never reach zero and stop the loop.
feat(av1): the 128 root offers the compound pair candidatesAhmet Kaan Gümüş · 53ce20d
feat(av1): the 128 root offers the compound pair candidates search_root_128 passed an empty compound list, so a 128x128 block could only ever name one reference -- while the writer had had the path since lane-b128 (write_inter_block_128 calls write_compound_block for a block that names a second one). The root now builds the LAST+GOLDEN / LAST+ALTREF stacks at its own 32x32-mi window, exactly as the 64 root builds them per superblock, and offers the same three modes. It FIRES on real content: up to 80 compound 128x128 blocks per frame on the 4K film row (census, EC_AV1_B128_CENSUS=1), against one per eight frames on synthetic bars. 12-frame native gate, BD-rate vs libaom cpu-6 / rav1e s6, control -> arm: bars 1080p -3.4/-19.0 -> -3.4/-19.0 bars 2160p +8.6/-13.8 -> +8.6/-13.7 film A +18.1/ -6.2 -> +17.9/ -6.4 film B +23.8/ -2.8 -> +23.6/ -3.1 screen +14.4/-33.2 -> +14.4/-33.2 Both film rows down on both columns, screen and bars flat; ours-wall on the 4K film row 124.7s -> 138.2s (+10.8%). Witness: a testsrc2 clip codes 432 compound 128x128 blocks, sample exact through decode_stream and ffmpeg (--ignored, root forced). Pins re-taken: the shipped stream moves 8354 -> 8364 bytes at q=150 and 33222 -> 33257 at q=60; EC_AV1_B128COMP=0 restores both exactly.
docs(av1): lane-arftf report -- strength sweep, window and mid-ARF armsAhmet Kaan Gümüş · b9d6edb
docs(av1): lane-arftf report -- strength sweep, window and mid-ARF arms Strength ships at 2 (single-peaked, bracketed 1/2/3/5 on the deciding gate); past-only +-2 window and a filtered mid ARF are both refuted and ship off. The symmetric +-2 window is blocked on the encoder's picture buffer: the top ARF is its group's last picture and no later source is buffered when it is coded.
fix(av1): one cdef_idx literal covers every 64x64 unit its block spans; the 128 residual arm ships opt-inAhmet Kaan Gümüş · f677e4c
fix(av1): one cdef_idx literal covers every 64x64 unit its block spans; the 128 residual arm ships opt-in libaom stores the cdef_idx it reads at the origin mi of the 64x64 CDEF unit, and av1_cdef_frame reads the strength back off each unit's origin mi -- so a block WIDER than one unit (the 128 root's own block, the only one there is) drives every unit it covers with its single literal. This decoder stamped the reading block's own cell alone, which no stream could reach before the 128 root carried a residual. The residual arm itself is measured INERT (0-2 blocks per frame against ~90 whole 128 roots on the native gate) and, switched on, leaves 8 luma samples of the bars 2160p row disagreeing with ffmpeg at a 128 superblock's horizontal edge -- a filter-stage interaction, not the coefficient path (the arm's own forced witness is byte-exact through ffmpeg over 420 blocks). It therefore ships behind EC_AV1_B128RES=1 until that is root-caused; the default encoder is byte-identical. The gate driver now prints the whole mismatch map (count + row/col span) before it panics, which is what made the 8-sample cluster readable.
feat(av1): the ARF temporal filter's strength swept on the deciding gate ships at 2Ahmet Kaan Gümüş · 0717f83
feat(av1): the ARF temporal filter's strength swept on the deciding gate ships at 2 Long-GOP gate (48 pictures, BD vs libaom cpu-6 / rav1e s6): strength 1 +22.6/-8.1 and +81.6/+4.8, 2 +22.2/-8.2 and +78.6/+2.7, 3 (was) +22.7/-7.9 and +79.0/+2.7, 5 +23.9/-7.4 and +83.6/+5.1. Single-peaked, bracketed, down on all four columns against the shipped 3. Guard rows (12 pictures) move at most +0.2/+0.1 and the screen row is byte-identical. Byte pins re-taken: 8218 -> 8307 at q=150, 33017 bytes with a different hash at q=60.
feat(av1): the 128 superblock root codes a real residualAhmet Kaan Gümüş · 1ee7fc6
feat(av1): the 128 superblock root codes a real residual The 128x128 PARTITION_NONE block is no longer skip-only. Its residual is the four 64x64 mu chunks libaom's decode_token_recon_block walks: per chunk one TX_64X64 luma unit (its coded 32x32 corner, DCT-only at this size) then one TX_32X32 unit per chroma plane on the offset-10 txb_skip rows, each publishing its own coefficient context before the next unit reads it, with the var-tx tree's four depth-0 txfm_partition symbols in front. The search prices that shape against the skip arm it already committed to the planes, quantized at the qindex the root itself signals. One defect found on the way: write_inter_block_128 recorded skip = true in its own neighbour band whatever the block was, so the next root's skip symbol took CDF row 1 where the reader takes row 0. Witness (--ignored, forced arm): 420 residual 128x128 blocks, sample exact through decode_stream and ffmpeg.
Merge branch 'lane-table' (aac8268b): the one-base standing table of 152996c8 (12-frame, long-GOP, preset 6)Ahmet Kaan Gümüş · e8ba89fBrowse files
docs(av1): the standing native quality table re-measured on one baseAhmet Kaan Gümüş · 55b5ae8
docs(av1): the standing native quality table re-measured on one base Every native BD row of main re-run against one binary so the lanes merged today (ARF temporal filter, 128x128 superblocks by default, per-level delta_q, motion search rate weight, pricer contexts) are read off the same base instead of five lane bases: 12-frame arm, the same arm at speed preset 6, and the 48-picture long-GOP arm, with wall ours:rav1e ratios and single-thread fps per row. No row moved in the losing direction against the lanes' own expectations; the two 4K film rows moved 0.5-0.6 BETTER (the 128-root fire share is highest there). Preset 6 buys 2.1-2.25x wall on the three real rows for +2.4/+3.2/+8.3 BD points vs libaom. Speed-preset decode exactness and the byte pins hold at this base, at default and with the preset env set.
Merge branch 'lane-b128m' (14c23a84): 128x128 superblocks on by default; delta_q coded once per 128 root, filter context copy carries the superblock size, intrabc predictor by superblock size, encode-then-decode gates use the encoder context; pins re-taken at the merge 8354 / 33222Ahmet Kaan Gümüş · a4a0871Browse files
fix(av1): a rate-loop level at its quantizer bound hands its bytes to the othersAhmet Kaan Gümüş · 366d5d6
fix(av1): a rate-loop level at its quantizer bound hands its bytes to the others The pyramid rate loop re-planned the rest of a run by dividing the whole remainder by the whole remaining weight -- so a level pinned at the coder's 1..=255 clamp (at 2 Mbit/s the hidden slot codes identical pictures at qindex 1) got most of its own shortfall handed straight back, because the hidden levels carry most of the pyramid's weight. Every bound level is now priced at what it MEASURABLY spends and its weight is taken out of the division, with the re-plan bounded to four times a level's opening share so nothing winds up. EC_AV1_RL_CENSUS=1 prints a per-frame row (target, actual, base q, raw/effective q, bound, remainder); EC_AV1_RL_NOREDIST=1 is the old division, for the before arm.
docs(av1): lane-b128m report -- four 128-superblock defects, the gates and the flipAhmet Kaan Gümüş · e7bbd0fBrowse files
feat(av1): two knobs for the ARF temporal filter -- window width and a mid-ARF strengthAhmet Kaan Gümüş · ea60760
feat(av1): two knobs for the ARF temporal filter -- window width and a mid-ARF strength The filter's neighbour count was a literal 2 and it ran on the top ARF only. Both are now speed-table entries with env overrides (EC_AV1_ARF_TF_WIN, EC_AV1_ARF_TF_MID), defaults unchanged (2 / off), so the sweep arms are env-only.
Merge branch 'lane-arfpred' (bad02229): the top ARF is coded from a temporally filtered source (strength 3, off below anchor qindex 16); long-GOP film B +85.3/+6.7 to +79.0/+2.7; ARF prediction census; pins re-taken 8218 / 33017Ahmet Kaan Gümüş · 7c94ff1Browse files
fix(av1): the ARF temporal filter stops at the rate loop's quantizer floorAhmet Kaan Gümüş · cbb5336
fix(av1): the ARF temporal filter stops at the rate loop's quantizer floor speed::ARF_TF_QMIN = 16: below that qindex the anchor's source is coded unfiltered, which is libaom's own rule for arnr and is what bitrate_target_lands_within_5_percent_over_48_frames named -- its 2 Mbps pyramid arm codes IDENTICAL 22358-byte anchors to its 1536 kbps arm, i.e. base_q_idx + arf_q_offset has clamped to 1 and the loop cannot spend the target, so that arm sits at -4.8% of target with the filter off entirely (measured) and a cheaper anchor pushed it to -5.1%, outside the test's bound. The threshold restores the control's own -4.8% and leaves both BD gates untouched: the finest ladder point codes its top ARF at qindex 28, and both byte pins are unchanged by it. Suite green: 342 + 201 + 42 passed, 0 failed.
docs(av1): lane-arfpred report -- ARF census, prediction instrument, temporal filterAhmet Kaan Gümüş · 3528148Browse files
Merge branch 'lane-palw' (a0db417a): the palette colour-index map writer codes the on-screen corner of a block cut by the frame edge; encoder FrameCtx publishes the frame mi dims; 16/16 size sweep exact through ffmpegAhmet Kaan Gümüş · c200039Browse files
docs(av1): lane-palw report -- writer-side palette on-screen clamp, sweep tablesAhmet Kaan Gümüş · ecec9a6Browse files
feat(av1): the top ARF is coded from a temporally filtered sourceAhmet Kaan Gümüş · 7b95799
feat(av1): the top ARF is coded from a temporally filtered source The 48-picture film B census names the top ARF as the overspent level (55% of the stream, 6992 B a frame against rav1e's 3872 at a FINER quantizer) and splits its per-frame gap 61% residual / 28% mode+partition / 9% mv. The new arf_pred_census instrument then separates the two candidate causes of that residual: the anchor's lag is worth 7.1% of its prediction SAD (film B 1.199 per pixel at lag 8 vs 1.114 at lag 4) while a motion-compensated average of the group's own display neighbours removes 11.7% of it -- the residual is mostly source grain, which no search at any lag can predict. speed::ARF_TF now defaults to 3.0: the top ARF's source is filtered against its two buffered display neighbours with weight exp(-mse/strength). Long-GOP gate, BD vs libaom / rav1e: film A +23.5/-8.0 -> +22.7/-7.9, film B +85.3/+6.7 -> +79.0/+2.7. Strength is sharply single-peaked (8, 15, 30 all lose); EC_AV1_ARF_TF=0 restores the old streams. Pins re-taken -- the hidden frames' pixels move by construction: 8269 -> 8218 at q=150 and 33044 -> 33017 at q=60.
feat(av1): 128x128 superblocks by defaultAhmet Kaan Gümüş · ffb600b
feat(av1): 128x128 superblocks by default SB128_DEFAULT flips on now that the eleven 128-superblock desyncs are closed. Pins re-taken: the same four pictures code 8327 B at q=150 and 33194 B at q=60 (was 8252 / 33053); EC_AV1_SB128=0 restores them. Suite at the new default: s1 342 passed, s2 201 passed, s3 42 passed, 0 failed.
fix(av1): write a cut palette block's colour-index map over its on-screen part onlyAhmet Kaan Gümüş · 254b908
fix(av1): write a cut palette block's colour-index map over its on-screen part only A palette block straddling the frame's right/bottom mi edge codes its map over spec 5.11.50's onscreenWidth x onscreenHeight corner and the decoder replicates it outward. The writer walked the full block grid, so every conformant decoder read the map short and desynced the rest of the tile; our own trial decode agreed with itself because the encoder-side FrameCtx carried no mi dims and the reader mirrored the writer there. Both frame encoders now publish the header's mi dims on that ctx, the palette search folds its searched map to the on-screen corner (so the priced, reconstructed and written map are one map), and the writer codes that corner only. The reader's mirror-the-writer branch is gone. Witness: encoder::tests::a_palette_block_cut_by_the_frame_edge_decodes_ exactly_through_ffmpeg -- our encoder at 384x152, 12 cut maps written, every plane of every frame equal to ffmpeg's decode.
instrument(av1): price the top ARF's prediction and a source temporal filterAhmet Kaan Gümüş · 56d80b6
instrument(av1): price the top ARF's prediction and a source temporal filter The 48-picture film B census says the top ARF carries 55% of the stream at 6992 B a frame against rav1e's 3872 at a FINER quantizer (118 vs 104), and 61% of that per-frame gap is residual, not syntax. `arf_pred_census` (--ignored) prices the two candidate causes without an encoder change: the anchor's lag is worth only 7% of its prediction SAD (film B 1.199 per pixel at lag 8 against 1.114 at lag 4), while a motion-compensated average of the display neighbours removes 11.7% of it (film A 5.9%) at 50.1 dB from the source it replaces. `encode::arf_temporal_filter` builds that filter and `speed::ARF_TF` (`EC_AV1_ARF_TF=<strength>`) arms it on the top ARF only; the default is 0, so no shipped stream moves. The census example also reports per-plane PSNR now.
Merge branch 'lane-svtinter' (477ee608): the palette colour-index map is read over the on-screen part of a block cut by the frame edge and replicated outward; 192/192 SVT-AV1 screen streams decode exactAhmet Kaan Gümüş · c8912d0Browse files
test(av1): the seven encode-then-decode stream gates take the encoder's own superblock sizeAhmet Kaan Gümüş · 8ef9abd
test(av1): the seven encode-then-decode stream gates take the encoder's own superblock size Each built a plain FrameCtx (superblock 64) and handed it to encode_*_with_ctx, so under EC_AV1_SB128=1 the writer coded a 128 root while the encoder's own trial decode -- and the raw tile decode beside it -- read at 64. First divergent symbol on the key-frame gate at 216x96: index 33, the writer's 8-symbol partition_w128 (SPLIT), which the reader skipped straight past into the 10-symbol partition_w64. The other six surfaced as the arf refusing a reference slot inside the encoder's trial decode. Same class the lane-b128 merge swept through ten of their neighbours; these seven were the rest of it.
docs(av1): lane-svtinter -- the encoder-context fallback and its ceilingAhmet Kaan Gümüş · b846acaBrowse files
Merge branch 'lane-arfq' (240c1c6c): the top ARF maps the tpl ratio onto its superblock quantizers at 0.375 (mid/leaf 0.25); long-GOP both films down on both columns; pins re-taken 8269 / 33044Ahmet Kaan Gümüş · 7cc8fe1Browse files
fix(av1): the on-screen palette clamp only applies where the frame's mi dims are knownAhmet Kaan Gümüş · d84ad00
fix(av1): the on-screen palette clamp only applies where the frame's mi dims are known The encoder's own in-process reconstruct runs on a FrameCtx that never saw set_segmentation, so its mi dims are zero and every colour-index map read clamped to 1x1 -- 16 round-trip gates refused with a bogus reference-slot error. Its writer half is unclamped as well, so that path mirrors itself.
fix(av1): the writer's intrabc DV predictor and wavefront follow the superblock sizeAhmet Kaan Gümüş · 44a12af
fix(av1): the writer's intrabc DV predictor and wavefront follow the superblock size tile::intrabc_dv_pred hardcoded mib_size = 16 while decode.rs read_intrabc_dv takes sb_mi_cur, so under EC_AV1_SB128 the two derived different fallback DVs from identical symbols (writer -48 px, reader -112 px at mi=(36,4)) and the key frame reconstructed differently -- no divergent symbol at all, the whole trace matches except the MVDBG note. Ibc::dv_valid likewise counted libaom's 256-pixel intrabc delay in 64s under a 128 superblock, offering sources the 128 visit order had not reconstructed yet. Witness: a_repeated_pattern_key_frame_codes_intrabc_blocks... ok under EC_AV1_SB128=1.
fix(av1): the superblock size travels with a FrameCtx copy; two reach gates pin 64Ahmet Kaan Gümüş · ab4ff0c
fix(av1): the superblock size travels with a FrameCtx copy; two reach gates pin 64 filter_ctx_copy dropped sb128_flag/reach_sb_px, so a tile SEARCH worker searched at 64 while the calling thread searched at 128: the coded bytes depended on EC_AV1_TILE_THREADS under EC_AV1_SB128 (tile_bytes_do_not_depend_on_the_thread_count, 1x2 tiles, 9251 vs 9239). every_tile_layout: the spec's uniform spacing derives the tile count from the superblock grid, so a 128-superblock frame with 5 SB columns codes 3 tiles for tile_cols_log2=2; the test now expects the encoder's own grid. The two reach gates transcribe libaom's 64-superblock tables, so they pin a 64 context instead of following the process knob.
docs(av1): lane-arfq report -- per-level delta_q census and the strength sweepAhmet Kaan Gümüş · c8f4f8dBrowse files
feat(av1): the top ARF codes its delta_q at 1.5x the preset's strengthAhmet Kaan Gümüş · 29220f1
feat(av1): the top ARF codes its delta_q at 1.5x the preset's strength lane-arfq: `speed::DQ_LEVEL_K = [1.5, 1.0, 1.0]` -- at preset 0 the mini-GOP's own hidden ALTREF now maps the tpl ratio onto its superblock quantizers at 0.375 where the mid level and the leaves keep 0.25. Long-GOP gate (48 pictures, BD vs libaom / rav1e), control reproduced first: film A +24.0/-7.6 -> +23.5/-8.0, film B +85.8/+7.1 -> +85.3/+6.7 i.e. both films down on both columns. 12-frame gate: bars 1080p -3.1/-18.7 -> -3.2/-18.8, bars 2160p +9.1/-13.3 -> +9.2/-13.3, film A +20.3/-5.0 -> +20.3/-4.9, film B +24.6/-2.0 -> +24.7/-1.8, screen +14.6/-33.2 unchanged (a screen frame codes no delta syntax at all). 0.5 buys film A twice as much (+23.0/-8.2) and turns film B back up (+86.0/+7.3) while costing the 12-frame film B row 0.4; the strength sweep and the per-level census are in lanes/arfq.report.md. Byte pins re-taken with a five-line comment: 8252 -> 8269 at q=150 and 33053 -> 33044 at q=60; green at default and at EC_AV1_SPEED=6.
fix(av1): the delta_q unit is the 128 superblock under EC_AV1_SB128Ahmet Kaan Gümüş · 2dc9fc2
fix(av1): the delta_q unit is the 128 superblock under EC_AV1_SB128 The writer gated its delta_qindex group on a hardcoded 64x64 position (tile.rs SB_MI) while decode.rs maybe_read_delta_q gates on sb_mi_cur, so with per-superblock delta_q armed (preset 0) and 128 superblocks on the writer coded four symbol groups per 128 root and the reader read one -- the first divergent symbol is the second 64 cell's delta_q_abs, surfacing frames later as the arf refusing a reference slot. The 64-root whole-block call also claimed is_whole_sb under a 128 superblock, which suppresses the read on the wrong side. The search-side grid is flattened per 128 root so the qindex a cell is quantized at is the one its root codes. Witness: a_128_superblock_clip_whose_root_search_codes_128x128_blocks... ok
Merge branch 'lane-b128' (98bde66d) into lane-b128m: 128-root PARTITION_NONE search behind EC_AV1_SB128; pins kept (default off)Ahmet Kaan Gümüş · 7bb33bdBrowse files
docs(av1): lane-b128 report -- the 128 root search, its gate tables and the default's blockerAhmet Kaan Gümüş · 7c5d65eBrowse files
test(av1): a witness that builds an SVT-AV1 screen stream whose palette map is cut by the frame edgeAhmet Kaan Gümüş · 7fc807b
test(av1): a witness that builds an SVT-AV1 screen stream whose palette map is cut by the frame edge docs(av1): lane-svtinter report
fix(av1): the palette colour-index map is read over the block's on-screen part onlyAhmet Kaan Gümüş · 2461f80
fix(av1): the palette colour-index map is read over the block's on-screen part only A palette block cut by the frame's bottom or right mi edge codes its colour-index map over spec 5.11.50's onscreenWidth x onscreenHeight corner and replicates it outward; this decoder read the full block grid, consuming symbols libaom never wrote and desyncing the rest of the tile (the symptom was either a wrong bottom-edge superblock row or a 'Golomb tail longer than this decoder reads' refusal further down).
chore(av1): keep 128x128 superblocks off by default, with the measured case recordedAhmet Kaan Gümüş · 664282a
chore(av1): keep 128x128 superblocks off by default, with the measured case recorded The BD gate says the size now WINS with the 128 root's own block in (every row down or flat on both columns, long GOP too), but eleven of this crate's round-trip tests desync under EC_AV1_SB128=1 with the 128x128 block switched OFF (EC_AV1_B128=0) -- odd sizes, doubly-cut roots, multi-tile layouts, decode_stream GOPs. Those are lane-sb128's SPLIT-only plumbing, not this lane's block, and they gate the default. Pins stay at the 64-superblock stream.
Merge branch 'lane-svt1' (6ec1414a): a skipped square intra block armed its palette/intrabc override only when the transform equalled the block, so a skipped split-transform palette block predicted DC; SVT-AV1 screen stream sample-exactAhmet Kaan Gümüş · bab01c8Browse files
Merge branch 'lane-hpmv' (8c75ea8a): the writer can code allow_high_precision_mv frames (mv_hp symbols, pricer, eighth-pel search stage); refuted as a default on both films, ships offAhmet Kaan Gümüş · 6c45e10Browse files
test(av1): NEWMV census prints the hp symbol count; lane-hpmv reportAhmet Kaan Gümüş · 057f20b
test(av1): NEWMV census prints the hp symbol count; lane-hpmv report The eighth-pel capability is refuted as a default on both films: film B 12 frames control +24.6/-2.0 vs +25.0/-1.8 (qindex<96), +25.1/-1.8 (qindex<128, libaom's own rule), +26.6/-0.3 (always on) -- monotone worse in how much high precision is armed. It fires (53% of the hp bits coded are zero, i.e. vectors the control cannot name) and costs 1.2-1.5 more mv bits per coded NEWMV than it earns. Film A flat (+20.3/-5.0 -> +20.3/-4.9). Ships default off (HP_MV_QTHRESH = 0); no default stream moved, so no byte pin moved.