Commits
Commits on
a8debcf6e2aee5d86cf0a864fa09cd4c115ecbd92026-09-12
lanes: vp8.report.md — M2 blocker narrowed to one cross-MB token-context bugAhmet Kaan Gümüş · a8debcfBrowse files
ec-vp8: two partition-0 desync bugs fixed (M2 debugging state)Ahmet Kaan Gümüş · d9a9866
ec-vp8: two partition-0 desync bugs fixed (M2 debugging state) BUG 1 (found by decision-trace diff vs a python dixie model): the MV probability update loop ran on KEY frames - dixie/libvpx parse it only for interframes. On key frames the 38 extra bool reads desynced the whole partition-0 parse. Moved inside the !is_keyframe branch. BUG 2: decode_keyframe created a FRESH bool decoder over partition 0 for the per-MB mode records - re-reading the partition from its start. FrameHeader::parse now returns its partition-0 decoder so the mode records CONTINUE from where the header stopped (dixie decode_frame shares one decoder). Result: single-MB 16x16 black q0 fixture now decodes BYTE-EXACT vs ffmpeg (chroma and luma). Multi-MB fixtures still diverge: decision traces (python dixie model scripts side /tmp/vp8ref.py vs EC_VP8_TRACE) match to decision 2562 and split at 2563 inside the token walk of MB(0,1) block 0 (ref consults prob 11, rust prob 4 at the same stream position) - a coefficient-context/bookkeeping difference in the multi-MB token pass that is now precisely localized for the next session. Debug tooling retained: EC_VP8_TRACE decision trace, EC_VP8_DEBUG per-MB coeff dump, examples/dbg_first.rs.
lanes: vp8.report.md (M1 verified, M2 WIP red witnesses, M3/M4 status)Ahmet Kaan Gümüş · a5b02e0Browse files
ec-vp8 M2 WIP: full key-frame decode pipeline (tokens/intra/transform/loopfilter/reconstruct) — unit tests 100% green, ffmpeg exactness witnesses RED (luma bug)Ahmet Kaan Gümüş · 5b0ae03
ec-vp8 M2 WIP: full key-frame decode pipeline (tokens/intra/transform/loopfilter/reconstruct) — unit tests 100% green, ffmpeg exactness witnesses RED (luma bug) - tokens.rs: RFC 6386 sec 13 coefficient decoding (GetCoeffs port: bands, 3-context model, EOB-skip-after-zero, dequant-on-write, Y2-first block order, dixie skip-MB context reset with Y2 preservation). - modes.rs: all mode/MV trees + tables (kf/inter ymode, bmode, uv, mv_ref, sub_mv_ref, SPLITMV partitions with RFC enum-value indexing). - decode.rs: per-row pipeline (modes -> tokens -> reconstruct), bordered planes (127/129), above-right synthesis, B_PRED interleaved predict+residual (reconstructed-pixel chaining), Y2 WHT DC override, per-MB LF level (dixie double-clamp), LF post-pass via loopfilter. - loopfilter.rs + intra.rs + transform.rs: subagent kernels, rustc-verified vs libvpx C (differential fuzz: 400k IDCT/WHT vectors, 20k intra streams, dixie-table-exact LF limits). - FIX along the way: per-MB-row token left-context reset (dixie reset_row_context) was missing. - tests/keyframe_exact.rs: ffmpeg byte-compare witnesses — FAILING: single 16x16 black q0 frame decodes chroma exact but luma ~99-130 vs 16 (B_PRED MB, coeffs plausible); suspected in luma pred/apply path, NOT yet localized. Debug: EC_VP8_DEBUG=1 dump + examples/dbg_first. - 49 lib + 4 header tests green; zero warnings in lib.
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tablesAhmet Kaan Gümüş · 5233d88
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tables - bool.rs: RFC 6386 section 7.3 decoder (read_bool/literal/signed_literal/ maybe_signed/prob7/tree incl. the EOB-skipping token-tree form), plus a test-only reference bool encoder; round-trip tests at probability extremes, long LCG streams, literals to 19 bits, tree paths. - frame.rs: 3-byte LE frame tag, key-frame start code + dimensions/scaling, MB geometry. - header.rs: complete partition-1 header in dixie field order — colour space/clamping, segmentation (with cross-frame state), loop filter type/level/sharpness/deltas, token partition size table, quant indices, reference refresh/copies/sign-bias, coefficient probability updates, mb_no_skip_coeff, inter prob_intra/last/gf + ymode/uv/MV probability updates. PersistedState carries entropy/segmentation/filter deltas across frames and resets at key frames. - tables.rs: GENERATED verbatim from the RFC text by scripts/extract_vp8_tables.py (element counts asserted): default + update coefficient probs, kf_bmode_prob, coeff_bands, dequant lookups, Pcat1-6 (sentinel kept), default + update MV probs. - scripts/gen_vp8_fixtures.sh: libvpx-encoded IVF witnesses (6 sizes/q, 60-frame GOP, 8-token-partition vector via local vpxenc, WebP still). - Witness: real vpxenc/ffmpeg-produced streams parse with exact tiling of partition sizes, correct dims (incl. 76x52 non-MB-aligned), 8 partitions; VP8-in-WebP still decodes its header. 12 tests green, zero warnings.
Merge branch 'lane-rectres' (16a625c7): Rect128/Ab128 pieces can carry a real residual behind EC_AV1_RECTRES (writer + search arms + cdef_unit_owner extended past Whole128 + 3 three-way-exact witnesses); the post-fix census shows the arm ACTIVE but BD-neutral (film A long-GOP 34794/873 fires, every gate row within 0.1) so the default stays OFF; the 64x64-square luma txb_skip_ctx=0 writer fix and the census double-take fix ride along; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · 3a3d412Browse files
docs(av1): lane-rectres report -- the post-fix census flips the story from inert to active-but-BD-neutral (film A long-GOP 34794/873, film B 20098/186 real fires, every gate row within 0.1); disposition stays-off stands on the deciding column; the 8cf40077 double-take fix and both arm re-runs evidencedAhmet Kaan Gümüş · 1c33b9f
docs(av1): lane-rectres report -- the post-fix census flips the story from inert to active-but-BD-neutral (film A long-GOP 34794/873, film B 20098/186 real fires, every gate row within 0.1); disposition stays-off stands on the deciding column; the 8cf40077 double-take fix and both arm re-runs evidenced
Merge branch 'lane-intertx' (c2653e06): the inter tx-type search widens to the Set1 alphabets with the chroma inheritance made honest -- the frame sets its own reduced_tx_set_inter and the writer codes inter chroma with the inherited reduced type (a live-latent desync pre-fix, RED-proven); screen default improves +14.4 -> +13.7 vs libaom, the film arm EC_AV1_TXSET_INTER=all measures BD-neutral (best -0.1) so the lever stays Screen; the raw-tile decode test helper's hardcoded reduced_tx_set=true stale-header bug fixed with Encoded carrying the frame's own bit; pins 8291/33227, suite 592/0Ahmet Kaan Gümüş · f56f397Browse files
fix(av1): the raw-tile inter decode wrapper takes the frame's own reduced_tx_set instead of guessing true -- the widened inter search made the bit chroma-relevant (a screen GOP's inter luma takes V_DCT and the chroma inheritance reduces against this exact bit, so the GOP round-trip tests desynced and surfaced the empty-ref-slot refusal), Encoded carries the bit and the GOP and key-frame tile tests pass it; encoder output is byte-identical (witnesses re-run at 8143/8211 bytes), the three tests plus pins are green and the full three-lane suite reads 592 passed / 0 failedAhmet Kaan Gümüş · 9c0a4a2
fix(av1): the raw-tile inter decode wrapper takes the frame's own reduced_tx_set instead of guessing true -- the widened inter search made the bit chroma-relevant (a screen GOP's inter luma takes V_DCT and the chroma inheritance reduces against this exact bit, so the GOP round-trip tests desynced and surfaced the empty-ref-slot refusal), Encoded carries the bit and the GOP and key-frame tile tests pass it; encoder output is byte-identical (witnesses re-run at 8143/8211 bytes), the three tests plus pins are green and the full three-lane suite reads 592 passed / 0 failed
fix(av1): the native census drains the rectres counters right before the eprintln that reads them, so every printed fire count was a structural zero -- the drains are deleted and the format-arg takes zero once per clip exactly like the sibling 128-root counters; both arm gates re-run for the real censusAhmet Kaan Gümüş · 6ad9423
fix(av1): the native census drains the rectres counters right before the eprintln that reads them, so every printed fire count was a structural zero -- the drains are deleted and the format-arg takes zero once per clip exactly like the sibling 128-root counters; both arm gates re-run for the real census
docs(av1): lane-rectres report -- the rect/AB residual arm measures inert and exact on server-2, 0 search / 0 writer fires on every gate clip so BD is flat within 0.1 on both gates (long-GOP film A +20.9/-9.0 and film B +70.5/-2.1 against a control that reproduces the standing table to the digit, all five native rows within 0.1, wall +1-4 percent of pure trial cost), disposition stays-off with EC_AV1_RECTRES kept as the witnessed arm's gate; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · 1ae2432
docs(av1): lane-rectres report -- the rect/AB residual arm measures inert and exact on server-2, 0 search / 0 writer fires on every gate clip so BD is flat within 0.1 on both gates (long-GOP film A +20.9/-9.0 and film B +70.5/-2.1 against a control that reproduces the standing table to the digit, all five native rows within 0.1, wall +1-4 percent of pure trial cost), disposition stays-off with EC_AV1_RECTRES kept as the witnessed arm's gate; pins unmoved at 8291 / 33227
docs(av1): lane-intertx report -- the chroma inheritance desync was live and is fixed (frame sets its own reduced_tx_set_inter, writer codes inter chroma with the inherited reduced type, wider inter search reachable and honestly priced), the arm EC_AV1_TXSET_INTER=all measures inert on film at best -0.1 BD so the lever stays Screen, disposition stays-off; pins 8291/33227 standAhmet Kaan Gümüş · 333651f
docs(av1): lane-intertx report -- the chroma inheritance desync was live and is fixed (frame sets its own reduced_tx_set_inter, writer codes inter chroma with the inherited reduced type, wider inter search reachable and honestly priced), the arm EC_AV1_TXSET_INTER=all measures inert on film at best -0.1 BD so the lever stays Screen, disposition stays-off; pins 8291/33227 stand
fix(av1): the inter tx-type search widens to the Set1 alphabets on reduced_tx_set=0 frames with the chroma inheritance made honest -- the frame sets its own reduced_tx_set_inter on the shared context and the writer codes every inter chroma plane with the luma type reduced to the chroma set (lane-intertx desyncs (a)+(b)), the one-D witness codes 40 V_DCT + 521 H_DCT inter units on a non-screen clip and all three planes read sample-exact through ffmpeg and decode_stream, the RED run with the chroma half neutralized desyncs the tileAhmet Kaan Gümüş · 630cb11Browse files
docs(av1): lane-rectres report -- the rect/AB residual lane lands default OFF with all three forced witnesses sample-exact through both decoders (HORZ half 840/840 fires, HORZ_A 4620 search / 5760 writer, per-unit cdef list 62 covered units), BD tables deferred on the worktree's missing fixtures/ with the exact unblock recorded; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · ff133e7
docs(av1): lane-rectres report -- the rect/AB residual lane lands default OFF with all three forced witnesses sample-exact through both decoders (HORZ half 840/840 fires, HORZ_A 4620 search / 5760 writer, per-unit cdef list 62 covered units), BD tables deferred on the worktree's missing fixtures/ with the exact unblock recorded; pins unmoved at 8291 / 33227
docs(av1): lane-intertx charter -- inter tx-type search on filmAhmet Kaan Gümüş · 8921cb1Browse files
feat(av1): the 128 root's rect/AB pieces price a real residual behind EC_AV1_RECTRES -- write_inter_block_128_rect lifts its skip-only refusal and codes one TX_64X64 luma unit plus a TX_32X32 chroma pair per 64x64 mu chunk (halves and 64x64 squares alike), the rect/AB search arms price the non-skip outcome under the same knob, and cdef_unit_owner extends past Whole128 to the rect/AB pieces that carry a residual (skip-only pieces still write no cdef_idx and never touch the map); three forced witnesses run sample-exact through decode_stream AND ffmpeg -- a HORZ half at 840/840 fires, a forced HORZ_A shape at 4620 search / 5760 writer, and a rect half under a per-unit cdef list at 62 covered units, default OFF is today's behavior bit for bitAhmet Kaan Gümüş · dc098a5
feat(av1): the 128 root's rect/AB pieces price a real residual behind EC_AV1_RECTRES -- write_inter_block_128_rect lifts its skip-only refusal and codes one TX_64X64 luma unit plus a TX_32X32 chroma pair per 64x64 mu chunk (halves and 64x64 squares alike), the rect/AB search arms price the non-skip outcome under the same knob, and cdef_unit_owner extends past Whole128 to the rect/AB pieces that carry a residual (skip-only pieces still write no cdef_idx and never touch the map); three forced witnesses run sample-exact through decode_stream AND ffmpeg -- a HORZ half at 840/840 fires, a forced HORZ_A shape at 4620 search / 5760 writer, and a rect half under a per-unit cdef list at 62 covered units, default OFF is today's behavior bit for bit
2026-09-10
Merge branch 'lane-b128res' (86ac0f65): the 128 residual arm re-measures three-way exact after edge128's CDEF owner map; still inert at 0.4-1.9 writer fires/frame so EC_AV1_B128RES stays off; pan residual witness re-vitalizes at q=60Ahmet Kaan Gümüş · 8fbaba4Browse files
docs(av1): lane-b128res report -- the parked 128 residual arm re-measured after edge128: the bars 2160p 8-sample mismatch is gone (cdef owner map), the arm stays inert at 0.4-1.9 writer fires/frame with flat BD on both gates, disposition stays-off; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · 329dee9
docs(av1): lane-b128res report -- the parked 128 residual arm re-measured after edge128: the bars 2160p 8-sample mismatch is gone (cdef owner map), the arm stays inert at 0.4-1.9 writer fires/frame with flat BD on both gates, disposition stays-off; pins unmoved at 8291 / 33227
fix(av1): the 128 residual arm's parking comment closes its filter bug and the native gate prints the arm's residual fires -- bars 2160p re-measures three-way exact through the cdef owner map, long-GOP BD -0.1/+0.1 and 12-frame rows within 0.1 at 0.7-1.9 writer fires/frame, so EC_AV1_B128RES stays off; the pan residual witness re-vitalizes at q=60 after lane-rectdq's delta_q pricing made the forced root lose every partitionAhmet Kaan Gümüş · 2ed5165
fix(av1): the 128 residual arm's parking comment closes its filter bug and the native gate prints the arm's residual fires -- bars 2160p re-measures three-way exact through the cdef owner map, long-GOP BD -0.1/+0.1 and 12-frame rows within 0.1 at 0.7-1.9 writer fires/frame, so EC_AV1_B128RES stays off; the pan residual witness re-vitalizes at q=60 after lane-rectdq's delta_q pricing made the forced root lose every partition
2026-09-09
fix(av1): the lookahead drain witness pins TPL_FUT=0Ahmet Kaan Gümüş · a500a02
fix(av1): the lookahead drain witness pins TPL_FUT=0 WIN=11 also reads the buffered next group, so the identity arm was testing the lambda window. Drain, order, and the filter-move arm stay.
Merge branch 'lane-tplhalf' (600dfa34): the top ARF's temporal lambda split ships at 2 past neighbours and its window at 11 pictures; long-GOP film B +71.6/-1.5 to +70.4/-2.2; pins unmoved at 8291 / 33227Ahmet Kaan Gümüş · 87c6dbdBrowse files
feat(av1): the top ARF tpl window ships 11 pictures at preset 0Ahmet Kaan Gümüş · 3471289
feat(av1): the top ARF tpl window ships 11 pictures at preset 0 The split's budget was swept apart from TPL_D. WIN=11 at half=2 is film B +70.4/-2.2 against the split arm's +71.0/-1.8, film A flat; 11 saturates the one-group lookahead. Presets 3..=6 keep depth-1. Report closes the lane Claude died in.
feat(av1): the top ARF tpl split ships at 2 past neighbours, and its budget is its own knobAhmet Kaan Gümüş · 2f91c3b
feat(av1): the top ARF tpl split ships at 2 past neighbours, and its budget is its own knob The mode 2 window's split was unswept. On the 48-picture long-GOP gate at tpl depth 8 (budget 7) the split brackets at 2 past + 5 future: film A +20.9/-9.0 and film B +71.0/-1.8 against the old 3-past default's +21.1/-8.9 and +71.5/-1.5, with 1 and 5 both worse. The winner takes its whole future side from the budget's edge, so TPL_FUT_WIN gives that budget a knob of its own -- EC_AV1_TPL_D moves every frame's lambda pass, not the ARF window's.
Merge branch 'lane-table2' (a81000e4): the standing quality table re-measured on one base, 0dc2f731; every row equal or better than the 152996c8 table; long-GOP film B crosses rav1e speed 6 at preset 0; preset-6 long-GOP rows measured for the first timeAhmet Kaan Gümüş · bda6260Browse files
docs(av1): standing quality table of main 0dc2f731, re-measured on one baseAhmet Kaan Gümüş · 7e4ee87
docs(av1): standing quality table of main 0dc2f731, re-measured on one base Every native BD row re-measured at 0dc2f731 in one binary: the 12-frame arm at preset 0 and preset 6, the long-GOP arm at preset 0 and -- new -- at preset 6, plus pins/preset-decode/bitrate invariants. Long-GOP film B crosses rav1e speed 6 at preset 0 (+2.4 -> -1.2); every row is equal or better than the 2026-09-08 table.
Merge branch 'lane-tplfut' (112893ff): the top ARF's temporal lambda map looks three pictures back and four forward into the buffered next group; future-only refuted; long-GOP film B +72.1/-1.2 to +71.6/-1.5; pins hold at 8291 / 33227Ahmet Kaan Gümüş · 54de485
Merge branch 'lane-tplfut' (112893ff): the top ARF's temporal lambda map looks three pictures back and four forward into the buffered next group; future-only refuted; long-GOP film B +72.1/-1.2 to +71.6/-1.5; pins hold at 8291 / 33227 The tpl chain is nearest-first over adjacent pictures; the top ARF passed the group's own sources, all display-past, a well-formed but time-reversed window against the flat path and against libaom. A future-only window loses on every column (depth-1 of the next group +22.0/-8.6 and +73.1/-1.1, the whole next group +21.9/-8.7 and +72.7/-1.4, against +21.3/-8.8 and +72.1/-1.2). TPL_FUT=2 ships: 3 past then 4 future, film A +21.2/-8.8, film B +71.6/-1.5, wall +3.2% / +0.2%; falls back to the past window when no next group is buffered, so pins and the 12-picture gate are byte-unchanged. Open: the 3+4 split is unswept (EC_AV1_TPL_FUT_HALF).
docs(av1): lane-tplfut report -- the top ARF's tpl window, control vs three armsAhmet Kaan Gümüş · d695be9Browse files
feat(av1): the top ARF's temporal lambda window ships as 3 past then 4 futureAhmet Kaan Gümüş · 3dc2378
feat(av1): the top ARF's temporal lambda window ships as 3 past then 4 future Long-GOP gate, both films, against the past window: film B +72.1/-1.2 -> +71.6/-1.5 and film A +21.3/-8.8 -> +21.2/-8.8, wall +3.2%/+0.2%. A future-only window (mode 1 and mode 3) is worse on every column.
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
feat(av1): the top ARF can take its temporal lambda window out of the buffered next groupAhmet Kaan Gümüş · c295244
feat(av1): the top ARF can take its temporal lambda window out of the buffered next group The top ARF is its group's LAST picture, so the window code_group hands it is the group's own display-PAST sources reversed -- time-reversed against every other frame's, where libaom's tpl at an ARF looks forward. speed::TPL_FUT (EC_AV1_TPL_FUT=<n>) picks the window: 0 the shipped past one, 1 future-only, 2 past then future, 3 the whole next group. Default off pending the long-GOP gate; the witness codes at q=60 and holds 1/7/8/9/17 pictures at gop 32 and 8.
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.