Commits
Commits on
e01aa805fcc54f29bf13ba0afece48b500a0c0cb2026-09-09
Merge branch 'lane-rectdq' (5b30b689): the 128 root search prices the delta_q group every non-skipped shape at a superblock origin codes; exact pricer witnessed over the whole domain; BD-neutral, ships as correctness; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · e01aa80
Merge branch 'lane-rectdq' (5b30b689): the 128 root search prices the delta_q group every non-skipped shape at a superblock origin codes; exact pricer witnessed over the whole domain; BD-neutral, ships as correctness; pins unmoved at 8291 / 33227 delta_q_bits prices write_delta_q's symbol, escape literals and sign through SymbolEncoder::pricer (a table-entry sum under-priced the escape by 0.43 bits at abs=20: the literal bits are EC_MIN_PROB-floored symbols). Charged on the rect arm's first half, on the NONE arm when not skipped, and on the four-superblock arm; only a skipped whole-128 root is free. The writer's running CurrentQIndex is unknowable in the search, so the previous 128 root's target in raster order stands in. 12-frame film A flat, film B -0.2/-0.2, screen byte-identical; long-GOP film A +0.1/+0.1, film B -0.1/-0.1 (EC_AV1_RECTDQ=0 is the control). Open: the same shape with 128 superblocks off (skipped 64 NONE root free, its quadrant arm not) is unpriced.
docs(av1): lane-rectdq report — control vs arm on both gates, pins unmoved, suite greenAhmet Kaan Gümüş · 619bdebBrowse files
Merge branch 'lane-ab128': the four AB partition shapes at the 128 root are written and witnessed sample-exact through both decoders, and ship off by measurement (EC_AV1_B128AB=1); pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · fd1e74a
Merge branch 'lane-ab128': the four AB partition shapes at the 128 root are written and witnessed sample-exact through both decoders, and ship off by measurement (EC_AV1_B128AB=1); pins unmoved at 8291 / 33227 ab128_pieces carries the decoder's visit order in one table read by search, writer and grid publication; search_root_128_ab runs three skip pieces through search_skip_64; Quadrant::Ab128 writes them through write_inter_block_128_rect. Long-GOP film A +22.0/-8.5 vs control +21.9/-8.6, film B +75.8/+0.8 unchanged; 12-frame film A +18.1/-6.2 vs +18.0/-6.3, film B +23.1/-3.3 vs +23.0/-3.5; wall +8.7%; census 0-2 AB roots per frame against ~1000 blocks. A piece cannot run the full 64-root search: the syntax codes it as one block with no partition symbol. A skip block writes no cdef_idx literal, so the CDEF owner map needs no rect entry until a piece carries residual. Next lever at the root: a non-skip piece.
feat(av1): the AB arm at the 128 root ships OFF -- measured flat to 0.1 worse on every gate rowAhmet Kaan Gümüş · 7c89e33Browse files
Merge branch 'lane-lookahead' (57b7c510): one mini-GOP of encoder lookahead and a symmetric +-3 ARF filter window; long-GOP film B crosses rav1e speed 6; pins hold at 8291 / 33227Ahmet Kaan Gümüş · 323c803
Merge branch 'lane-lookahead' (57b7c510): one mini-GOP of encoder lookahead and a symmetric +-3 ARF filter window; long-GOP film B crosses rav1e speed 6; pins hold at 8291 / 33227 The encoder holds one closed mini-GOP in a ready slot and codes it when the next group closes, so the top ARF sees the next group's sources as display-future; the ARF temporal filter window is 3 past + 3 future at strength 2. Long-GOP vs libaom cpu-used 6 / rav1e speed 6: film A +22.0/-8.4 to +21.2/-8.8, film B +76.5/+1.2 to +72.1/-1.2 (+-1, +-2, +-4 and strength 3 bracketed in the report). 12-frame rows flat (max move 0.1, screen byte-identical): that gate absorbs its tail into one group and cannot see a lookahead lever. Cost: one mini_gop of latency, +199 MB source buffer at 4K. EC_AV1_LOOKAHEAD=0 restores byte-identical streams. Witness: 1/7/8/9/17 pictures at GOP 32 and 8 code every picture, byte-identical to lookahead-off, exact through both decoders. Bitrate gate no longer near its bound. Open: the tpl window at the top ARF still sees display-past leaves only.
fix(av1): the 128 rect root and the four-superblock arm pay for the delta_q group they codeAhmet Kaan Gümüş · dc9d340
fix(av1): the 128 rect root and the four-superblock arm pay for the delta_q group they code lane-rectdq. write_delta_q codes its symbol group for every shape but a SKIPPED whole-superblock PARTITION_NONE root, so the 128 HORZ/VERT candidate and the four 64 superblocks under a 128 grid were both priced as if the group were free while only the NONE root really is. delta_q_bits prices the writer's own three pieces through a pricing coder (the escape literals are equiprobable symbols, not free bits), and delta_q_bits_at_root charges it once per root, at the root's own sb_q cell against the previous 128 root's target standing in for the writer's CurrentQIndex. EC_AV1_RECTDQ=0 is the control. A unit witness enumerates delta_q_abs steps -20..=20 against write_delta_q's bit account; the two agree to 1e-9.
feat(av1): the symmetric ARF filter window ships on one group of lookaheadAhmet Kaan Gümüş · 2d9a195
feat(av1): the symmetric ARF filter window ships on one group of lookahead The encoder holds the closed mini-GOP one group longer, so its top ARF -- the group's last picture in display order -- sees the next group's sources as display-future neighbours. The source temporal filter takes a symmetric window (3 past, 3 future); the tpl lambda window is unchanged. Long-GOP gate: film A +22.0/-8.4 -> +21.2/-8.8, film B +76.5/+1.2 -> +72.1/-1.2. Bracketed: +-4 is worse on all four columns. Guard rows move by at most 0.1. Byte pins unchanged (their four-picture fixture has no next group). Costs one mini-GOP of latency and 199 MB of source buffer at 4K.
Merge branch 'lane-b128hv' (c2cc62bc): the 128 root offers PARTITION_HORZ / PARTITION_VERT skip halves, the writer's first rectangular blocks; long-GOP both films down on both columns; pins 8291 / 33227Ahmet Kaan Gümüş · b4cfa09
Merge branch 'lane-b128hv' (c2cc62bc): the 128 root offers PARTITION_HORZ / PARTITION_VERT skip halves, the writer's first rectangular blocks; long-GOP both films down on both columns; pins 8291 / 33227 The tile writer had never coded a rectangular block at any size: every neighbour record took one side into both bands. Rect recording (record_planes_rect, record_mi_planes_rect, record_inter_rect_mi, record_compound_rect_mi, record_txfm_rect, both palette bands), write_inter_block_128_rect, search_root_128_rect with MiGrid::snapshot_rect / restore_rect, search_skip_64 over a (w,h) footprint. EC_AV1_B128HV=0 is the control. Long-GOP film A +22.0/-8.4 to +21.9/-8.6, film B +76.5/+1.2 to +75.8/+0.8 vs libaom 6 / rav1e 6; 12-frame film rows +0.1, bars 2160p +8.4/-14.0, screen unchanged; wall +10.5% / +2.9%. Witness: forced HORZ, forced VERT and unforced passes decode exact through both decoders. Open: the rect root candidate does not price its delta_q group. Deferred: rect halves' residual (shares EC_AV1_B128RES), AB shapes at the 128 root.
docs(av1): lane-b128hv report — HORZ/VERT at the 128 root, measured and shippedAhmet Kaan Gümüş · 92339f4
docs(av1): lane-b128hv report — HORZ/VERT at the 128 root, measured and shipped Witness green on both cuts through decode_stream and ffmpeg (2640 forced halves each, 17 HORZ + 9 VERT unforced over 12 testsrc2 frames). Long-GOP both films down on both columns (film A +22.0/-8.4 -> +21.9/-8.6, film B +76.5/+1.2 -> +75.8/+0.8); 12-frame film rows flat at +-0.1, bars 2160p 0.2/0.3 better, screen unchanged. Pin q=150 8290 -> 8291, q=60 unmoved.
wip(av1): lane-lookahead drain/group-coding restructure in progress, snapshot (orchestrator)Ahmet Kaan Gümüş · 6766627Browse files
Merge branch 'lane-edge128' (d06c5ee6): the CDEF search prices one cdef_idx per block the syntax carries, not one per 64x64 unit; the 128 residual arm's 8-sample edge mismatch was encoder reconstruction only, pins hold at 8290 / 33227Ahmet Kaan Gümüş · 1fcce58
Merge branch 'lane-edge128' (d06c5ee6): the CDEF search prices one cdef_idx per block the syntax carries, not one per 64x64 unit; the 128 residual arm's 8-sample edge mismatch was encoder reconstruction only, pins hold at 8290 / 33227 Class `plan finer than its syntax`: read_cdef codes one literal per block and copies it over every 64x64 unit the block spans, so a whole 128 root carries one index for four units while filter_search priced four. tile::cdef_unit_owner maps each unit to the unit whose literal covers it and pick_filters scores per group. ffmpeg and decode_stream were byte-identical on the failing stream; only replay_final differed (710 samples). Same-shape sweep complete: delta_q already collapsed to the root by lane-b128m, LR unit is 128 under SB128. The residual arm stays behind EC_AV1_B128RES (film B +23.4/-3.2 vs control +23.6/-3.1). Pins unaffected: a default 128 root is always skip and CDEF never filters an all-skip unit.
feat(av1): the 128 root offers PARTITION_HORZ and PARTITION_VERTAhmet Kaan Gümüş · d106c89
feat(av1): the 128 root offers PARTITION_HORZ and PARTITION_VERT search_root_128_rect prices the root as two 128x64 / 64x128 skip blocks -- single reference or compound, the shipped NONE machinery halved. The first half is published into the mi grid before the second is searched (the writer publishes it too), and the grid is put back for the four-superblock arm; the NONE / HORZ / VERT candidates are ranked together against the split. search_skip_64 now takes a (w, h) footprint and tiles it into squares of its shorter side, which is byte-identical at w == h. Census extended with the HORZ/VERT counts. Witness green on the first draft: 2640 forced 128x64 and 2640 forced 64x128 halves sample-exact through decode_stream and ffmpeg, with 17 HORZ + 9 VERT unforced over 12 frames. Pin q=150 8290 -> 8291; the q=60 pin does not move; EC_AV1_B128HV=0 restores both.
wip(av1): lane-b128hv search-side HORZ/VERT at the 128 root, snapshot (orchestrator)Ahmet Kaan Gümüş · 4568a63Browse files
feat(av1): the writer records a rectangular block's two neighbour bands, and codes a 128-root HORZ/VERT halfAhmet Kaan Gümüş · b52bd17
feat(av1): the writer records a rectangular block's two neighbour bands, and codes a 128-root HORZ/VERT half The tile writer had no rect path at all: record/record_inter/record_planes/ record_txfm and the palette bands each took one side and stamped it into both the above and the left band. Each now has an (above = width, left = height) twin, the square call delegating to it, and write_inter_block_128_rect codes one 128x64 / 64x128 half at the root's own square CDF context, skip only. Quadrant::Rect128 carries the pair. The search side is unchanged, so the pins are byte-identical.
feat(av1): one mini-GOP of lookahead behind a knob, and a future half for the ARF filter windowAhmet Kaan Gümüş · a1a8777Browse files
Merge branch 'lane-arftf' (dbf5dad5): ARF temporal filter strength swept on the long-GOP gate and shipped at 2; mid-ARF filter and a 4-past window refuted; pins re-taken at the merge 8290 / 33227Ahmet Kaan Gümüş · fa0b48eBrowse files
test(av1): drop the b128r bisect scaffolding from the native gateAhmet Kaan Gümüş · 5e3125c
test(av1): drop the b128r bisect scaffolding from the native gate The mismatch map and the stream/reconstruction dump it grew were the instruments for one open defect; that defect is closed, so the gate goes back to its plain first-mismatch panic.
docs(av1): lane-rlclamp report — the rate loop at its quantizer floorAhmet Kaan Gümüş · 7af78e6Browse files
Revert "wip(av1): edge128 lane snapshot at the seat limit (orchestrator)"Ahmet Kaan Gümüş · 6d33df5
Revert "wip(av1): edge128 lane snapshot at the seat limit (orchestrator)" This reverts commit bf06b50aa2c0a4542762339ffefa79fbc4b451b9.
2026-09-08
fix(av1): the four 64x64 CDEF units of a 128x128 root block share one cdef_idxAhmet Kaan Gümüş · 74b705d
fix(av1): the four 64x64 CDEF units of a 128x128 root block share one cdef_idx read_cdef (spec 5.11.56) codes ONE cdef_idx literal for the block that first reaches a 64x64 unit and copies it over every unit that block SPANS, so a whole 128x128 root puts one literal in the stream for all four of its units. The encoder's CDEF search priced a preset per unit and its filter replay applied all four, while only the origin's reached the stream -- every decoder then filtered the other three with the origin's strengths. The bitstream was always right (ffmpeg and our own decoder agreed with each other); the encoder's own reconstruction, which is what the next frame predicts from, was a filter apart. tile::cdef_unit_owner maps each 64x64 unit to the unit whose literal covers it (identity for every block of one unit or less), and filter_search::pick_filters scores and chooses per GROUP: a covered unit's error is summed into its owner's and it takes its owner's index. Witnessed by encode::tests::a_128_root_residual_block_under_a_per_unit_cdef_list_decodes_exact (--ignored): 1440 residual 128 roots, 168 units taking another unit's literal, sample-exact against our decoder and ffmpeg.
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