Commits
Commits on
7eb3134e1b9dbe6c82afa62e111ac35ed5196ccd2026-09-07
Merge branch 'lane-rc' (4c2ff222): the rate loop prices a run by the frames the pyramid really codes with a measured per-level weight, and re-plans the remaining budget each frame; bitrate gate tightened to 5%Ahmet Kaan Gümüş · 7eb3134Browse files
docs(av1): lane-rc gates -- 559/0/44, pins unchanged, EC_COMP_MISMATCH cleanAhmet Kaan Gümüş · b1137abBrowse files
docs(av1): lane-rc report -- the fitted level model, its census and the landed tableAhmet Kaan Gümüş · 9c07a39Browse files
feat(av1): the rate loop prices a run by its measured level modelAhmet Kaan Gümüş · 0a23745
feat(av1): the rate loop prices a run by its measured level model The mini-GOP byte split assumed ONE hidden frame per group and priced it at a flat two leaves; the group has coded two hidden frames since the mid level landed, and the census reads the top ARF at 24x a leaf, not 2x. The two errors cancelled, so neither could be fixed alone (lane-pyr6). Both are replaced by one measured model: a level's bytes/frame is log-linear in its own q offset at d(ln bytes)/d(q_idx) = -0.0557, fitted over films A and B at three quantizers each, and the key is priced through the same function (KEY_WEIGHT = 1.08 on top of it). gop_shape enumerates the frames a run really codes, so the plan spends the run's budget exactly, and the loop re-plans the rest of the run from what it has actually spent -- the key frame is never steered, and a level whose q hits the floor cannot spend its share. 48-frame bitrate gate, pyramid arm: 384k +3.0%, 768k -0.0%, 1536k +0.2%, 2M -4.4% (was -0.4% / -6.3% at the two rates it covered), tolerance cut from +-10% to +-5% with two new bitrate arms.
Merge branch 'lane-lossless3' (99ff3441): a skipped 8x8 leaf restored the previous block's luma band on lossless frames; rect sub-8x8 leaves split to 4x4 under losslessAhmet Kaan Gümüş · eabe538
Merge branch 'lane-lossless3' (99ff3441): a skipped 8x8 leaf restored the previous block's luma band on lossless frames; rect sub-8x8 leaves split to 4x4 under lossless Class: override slot on one arm. The deciding 12-frame gate ends green on every reference point, the screen row's libaom crf 5 lossless stream included.
docs(lane-lossless3): gate/suite results -- bd_rate_screen_native green, suite 558/0/44Ahmet Kaan Gümüş · 49a665eBrowse files
docs(lane-lossless3): report -- both lossless screen residues are one findingAhmet Kaan Gümüş · cd008dbBrowse files
test(av1): tests that read a process-global hit counter take the exclusive knob lock; a reader-locked sibling zeroed the reference counter under the parallel suiteAhmet Kaan Gümüş · 2871886
test(av1): tests that read a process-global hit counter take the exclusive knob lock; a reader-locked sibling zeroed the reference counter under the parallel suite
fix(av1): two lossless INTER defects on screen content -- a skip 8x8 leaf restored the previous block's luma band, and a rect sub-8x8 intra leaf read one TX_4X8Ahmet Kaan Gümüş · 025c254
fix(av1): two lossless INTER defects on screen content -- a skip 8x8 leaf restored the previous block's luma band, and a rect sub-8x8 intra leaf read one TX_4X8 - decode_leaf8/decode_inter_block8: `saved_luma_ctx` is only valid on the arm that actually published per-TU luma state. A SKIP block publishes none, and on a lossless frame `read_block_tx_size` hands back 4x4 leaves for a skip block too, so the restore put the previous block's levels back over the zeros `record_mi` had written (libaom `av1_reset_entropy_context`). Class [[override-slot-on-one-arm]]. - decode_intra_sub8_leaf / decode_leaf_rect8 / the 16x4 rect4 reader: their `tx_depth != 0` split guards never fire on a lossless frame (no depth symbol is coded), so a 4x8/8x4 intra leaf read ONE rect transform where libaom codes two TX_4X4 -- the same widening the five other rect sites already carry. Gate: a_lossless_libaom_inter_frame_decodes_sample_exact grows a 640x384 tune-content=screen -g 3 six-frame row (inter frames of screen content).
Merge branch 'lane-lossless2' (84d10bc8): lossless inter frames decode; the key-frame path fixed for textured chroma (plane-major units, per-unit contexts, 4x4 luma under sub-8x8 leaves, per-unit palette window)Ahmet Kaan Gümüş · afd4958
Merge branch 'lane-lossless2' (84d10bc8): lossless inter frames decode; the key-frame path fixed for textured chroma (plane-major units, per-unit contexts, 4x4 luma under sub-8x8 leaves, per-unit palette window) Six libaom -crf 0 fixtures decode sample-exact. The deciding gate's libaom crf-5 screen point now decodes with one wrong luma sample, and lossless inter frames of screen content still desync (localised).
test(av1): the lossless inter gate gets two tune-content=screen key rowsAhmet Kaan Gümüş · c84128d
test(av1): the lossless inter gate gets two tune-content=screen key rows The palette path is what caught the whole-block palette prediction being handed to a 4x4 chroma unit, and nothing in the gate coded a palette block. Screen rows are KEY-only: a screen INTER frame still desyncs (lane report).
Merge branch 'lane-pyr6' (a0661824): a fourth pyramid level (quarter ARFs) wired and measured, off by default; it loses at mini_gop 8 on every arm and only pays at 16, which still trails the 8-groupAhmet Kaan Gümüş · afec53fBrowse files
docs(lane-lossless2): screen-content defects, gate results, the two red residuesAhmet Kaan Gümüş · 33f9256Browse files
fix(av1): lossless chroma units read a windowed palette prediction, one entropy cell, and stop at the frame edgeAhmet Kaan Gümüş · 6f56c94
fix(av1): lossless chroma units read a windowed palette prediction, one entropy cell, and stop at the frame edge Three defects the synthetic (non-screen) fixtures could not see, all found by a tune-content=screen -crf 0 stream: - a 4x4 chroma unit was handed the WHOLE-BLOCK palette prediction buffer and read it at its own stride, so every unit reconstructed the block's top-left corner (the luma split-transform paths already window; palette_window() is now shared by decode_block, decode_rect_split and the new intra helper). A 320x192 screen key frame decoded 9600/15360 chroma samples wrong. - a unit whose block hangs off the frame edge is still coded by libaom (max_blocks_high clips in LUMA mi, then rounds UP for chroma), and our two-cell neighbour read then indexed past the band. libaom reads exactly ONE chroma entropy entry for a TX_4X4 chroma unit (get_txb_ctx's a[0]/l[0]); our bands carry that entry replicated over the unit's two luma-mi cells, so one cell is the same answer and never runs off. - units whose ORIGIN is past the frame edge are not coded at all. The 320x192 and 640x384 screen key frames are now sample-exact.
fix(av1): keep the rate loop's one-hidden-frame group splitAhmet Kaan Gümüş · 84491e1
fix(av1): keep the rate loop's one-hidden-frame group split Pricing the group by its real hidden-frame count is the truthful model and lands the 48-frame bitrate gate -9.4% / -14.9% under target against -1.8% / -6.3%: the old split's over-allocation cancels ARF_WEIGHT's under-pricing of a hidden frame, and fixing one alone un-cancels them. Documented at the line with the measured pair; recalibration is a rate-control lane.
docs(lane-lossless2): rules ported, the three gate-blind defects, fixturesAhmet Kaan Gümüş · adb743eBrowse files
feat(av1): lossless INTER frames decode -- the chroma plane is 4x4 units, plane-majorAhmet Kaan Gümüş · 5136c0f
feat(av1): lossless INTER frames decode -- the chroma plane is 4x4 units, plane-major A lossless frame codes TX_4X4 on every plane (libaom read_tx_size returns TX_4X4 before it ever consults max_txsize_rect_lookup), and decode_token_recon_block walks a 64x64 mu chunk PLANE-MAJOR (for (plane..) for (blk_row..) for (blk_col..)). The inter readers still read chroma as one transform per block, so a lossless inter frame was refused by name; they now walk the 4x4 units, and the refusal is gone. Three defects the previous lane's gate could not see (its source had a FLAT chroma plane, so every chroma unit coded one txb_skip symbol against all-zero contexts -- class gate-blind-to-feature): - decode_block read its chroma units interleaved U,V per unit instead of plane-major. Identical order at one unit per plane per chunk (every non-lossless case), wrong for a lossless block's 4x4 raster. - decode_rect_split's lossless chroma branch stamped each unit's neighbour context and then let record_split_luma_rect_mi overwrite all of them with the LAST unit's state, so the next block read dc_sign_ctx 1 where libaom reads 0 (class override-slot-on-one-arm). - decode_inter_sub8_rect2 kept one 8x4/4x8 luma transform on a lossless frame, which fed a rect grid to the 4x4 Walsh-Hadamard. Gates: the key gate's source is now textured chroma, and a_lossless_libaom_inter_frame_decodes_sample_exact replaces the retired refusal gate with four libaom -crf 0 fixtures (256x128 8-bit, 192x96 10-bit, 320x192, 256x256 --sb-size=128), each sample-exact vs ffmpeg.
test(av1): pyr6 long-GOP sweep -- the fourth level loses at every offset, default stays offAhmet Kaan Gümüş · d47ee71Browse files
Merge branch 'lane-lossless' (7da63eb1): lossless key frames decode sample-exact (WHT, TX_4X4 forcing, no tx_type, CfL narrowed, 4x4 chroma walk); lossless inter frames refused by nameAhmet Kaan Gümüş · f60365cBrowse files
Merge branch 'lane-probe' (70b09f39): the probe and the gates share one source loader and crop; every earlier census read a different window of film B (crop offset 568 vs the gate's 292)Ahmet Kaan Gümüş · 5f3e710Browse files
feat(av1): a fourth pyramid level -- hidden quarter-point ARFsAhmet Kaan Gümüş · e9fd8a5
feat(av1): a fourth pyramid level -- hidden quarter-point ARFs Within a mini-GOP the leaf run now carries two more hidden frames, at the middle of each half (pictures 2 and 6 of eight), coded at their own quarter_q_offset -- the sixth EC_AV1_PYRAMID field, off by default until the long-GOP sweep picks its offset. Every leaf names the nearest hidden frame behind it as LAST_FRAME and the nearest one ahead as ALTREF_FRAME, which the leaf loop now derives from one sorted list of the group's inner hidden frames instead of the mid frame's index (byte-identical at three levels and at two). The quarters take DPB slots 5 and 6; the whole slot map is documented on QUARTER_SLOTS. RateLoop prices a group as h hidden frames plus mini_gop - h leaves instead of assuming one hidden frame.
fix(av1): the probe armed a window film B does not haveAhmet Kaan Gümüş · 2ebcc2c
fix(av1): the probe armed a window film B does not have `examples/enc_probe` was handed its crop by hand, and every long-GOP census so far passed `crop=1920:1024:960:568` -- the centre of a 3840x2160 frame. Film B is coded 3840x1608, so the gate's own window is `crop=1920:1024:960:292`: the instrument measured different pixels than the gate it reported on (60466 B vs the gate's 90674 B at q=150), and the probe also had no `-ss`, so on any clip it read from frame 0 instead of the gate's pinned seek. One definition of the arming now serves both: `ec_av1::probe::source` (the loader, with the seek) and `ec_av1::probe::gate_crop` (the superblock-aligned centre window, from ffprobe), called by the probe and by `encode::tests`' `clip_frames_vf`/`native_bd_arm`. The probe takes `gate` as its width argument to ask for that window, and `EC_ENC_SS` for the seek. In gate mode the probe now codes 90674 bytes on film B at q=150 -- byte-exact with `bd_rate_film_long_gop`'s own ladder point. `lanes/census-longgop-v2.md` re-takes the per-level census on the real window; the v1 shares were off (ARF 49.3% -> 53.8%, key 25.6% -> 21.6%).
feat(av1): lossless key frames decode exact; lossless inter refused by nameAhmet Kaan Gümüş · 1e1a080
feat(av1): lossless key frames decode exact; lossless inter refused by name Key/intra-only lossless frames decode sample-exact at 8 and 10 bit (64x64, 256x128 8-bit, 192x96 10-bit libaom -crf 0 streams, 0 sample diffs vs ffmpeg). The inter path's luma leaves are synthesized as TX_4X4 but its chroma plane is still one transform per block, so a lossless INTER frame is refused by name and the refusal inventory carries it. The old refusal gate becomes a_lossless_libaom_key_frame_decodes_sample_exact.
feat(av1): a lossless key frame decodes sample-exactAhmet Kaan Gümüş · b0db8e9
feat(av1): a lossless key frame decodes sample-exact The rect strip readers take the per-transform-unit walk on a lossless frame (depth_to_tx_wh returns TX_4X4 before it looks at the block), their chroma is coded as 4x4 units plane-major with get_txb_ctx's +10 offset rows, and the Walsh-Hadamard orientation is pinned by measurement. A 64x64 libaom -crf 0 key frame now decodes sample-exact against ffmpeg (6488 entropy steps identical to aomdec's EC_TRACE_COEFF, 0 sample diffs).
Merge branch 'lane-arfq' (04eaaeef): leaf q offset 16 -> 12 under the key at base-48; long-GOP film B +131.3/+35.0 -> +129.0/+34.3, 12-frame film B +58.2/+26.5 -> +54.1/+23.9; pins 9835 / 35798Ahmet Kaan Gümüş · 5918fdbBrowse files
docs(av1): the arfq sweep table, the 12-frame gate at the winner and the per-level censusAhmet Kaan Gümüş · b424766Browse files
wip(av1): lossless lane snapshot at the turn cap (orchestrator)Ahmet Kaan Gümüş · 9a5f8e7Browse files
feat(av1): lossless decode groundwork -- WHT, TX_4X4 forcing, CfL narrowingAhmet Kaan Gümüş · f0a5a15
feat(av1): lossless decode groundwork -- WHT, TX_4X4 forcing, CfL narrowing The 4x4 Walsh-Hadamard inverse (libaom av1_iwht4x4_16_add_c) with its own round-trip test, a per-frame CodedLossless flag replacing the refusal (a frame mixing lossless and lossy segments is still refused by name), the TX_4X4 forcing in the square and 8x8-leaf intra readers, no tx_type symbol (libaom read_tx_type: qindex 0 returns early), DCT_DCT on every plane, the is_cfl_allowed narrowing to a 4x4 chroma plane block, and the +10 chroma txb_skip rows at TX_4X4 that only a lossless frame reaches.
Merge branch 'lane-dpm1' (a016424d): a 128x128 intra block in an inter frame never set mu_chroma; lossless frames refused by name; the ladder decode assertion collectsAhmet Kaan Gümüş · bb30488
Merge branch 'lane-dpm1' (a016424d): a 128x128 intra block in an inter frame never set mu_chroma; lossless frames refused by name; the ladder decode assertion collects Class: override slot on one arm. The bars 2160p libaom crf 45 point now decodes exact; film B crf 5 was already exact. The screen row's libaom crf 5 key frame is lossless (base_q_idx 0), which the tile reader does not implement -- a feature lane follows.
feat(av1): the pyramid codes its leaves 12 quantizer steps above base, not 16Ahmet Kaan Gümüş · 96faf58Browse files
docs(av1): lane-dpm1 report -- the native gate's verdict over all five rowsAhmet Kaan Gümüş · 2d7f0ffBrowse files
test(av1): the lossless refusal gets its own libaom -crf 0 gate and its inventory entryAhmet Kaan Gümüş · c0c60c5Browse files
test(av1): the arfq arf and mini-gop arms; leaf 12 wins the long-GOP gateAhmet Kaan Gümüş · e11e279
test(av1): the arfq arf and mini-gop arms; leaf 12 wins the long-GOP gate
fix(av1): refuse lossless frames by name; the 128-intra-in-inter chroma context gateAhmet Kaan Gümüş · 2f8409b
fix(av1): refuse lossless frames by name; the 128-intra-in-inter chroma context gate
fix(av1): a 128x128 intra block inside an inter frame re-stamped its four chroma units with the top-left one's coefficient contextAhmet Kaan Gümüş · bdab11eBrowse files
test(av1): the ladder decode assertion collects every failing reference point; the force_integer_mv fixture is sensitive againAhmet Kaan Gümüş · 5a13b43
test(av1): the ladder decode assertion collects every failing reference point; the force_integer_mv fixture is sensitive again
Merge branch 'lane-dkey' (c28d3574): key-frame sub-8x8 groups never cleared the palette bands; every reference ladder point now decodes through our decoder as a gate assertionAhmet Kaan Gümüş · f09b4e3
Merge branch 'lane-dkey' (c28d3574): key-frame sub-8x8 groups never cleared the palette bands; every reference ladder point now decodes through our decoder as a gate assertion Class: CDF row held constant. libaom film B crf 5 key frame is symbol- identical to aomdec now; its fourth inter frame still refuses. The new assertion is red on bars 1080p libaom crf 45 (a +-1 reconstruction gap in inter frame 1), which is the next decoder lane.
docs(av1): lane-dkey report -- the native gate assertion's first verdictAhmet Kaan Gümüş · 4d2f0caBrowse files
test(av1): pin the libaom screen stream whose sub-8x8 groups sit beside palette blocksAhmet Kaan Gümüş · 8d023ec
test(av1): pin the libaom screen stream whose sub-8x8 groups sit beside palette blocks The stream whose key-frame block mi(76,88) exposed the stale palette bands: without the fix all 12 frames differ from ffmpeg's decode from luma sample 491904 on. Synthetic 1920x1024 source, no film sample in fixtures.
fix(av1): the palette neighbour bands are cleared by the key-frame sub-8x8 leavesAhmet Kaan Gümüş · 2fe9a36
fix(av1): the palette neighbour bands are cleared by the key-frame sub-8x8 leaves Narrows the previous commit: the 5 INTER-side zero-stamps regressed 13 tests (our own encoder's screen streams stopped decoding) because the inter readers' band index/footprint convention is not the palette bands' -- reverted, recorded in lanes/dkey.report.md as the open half of the sweep. The two key-frame sub-8x8 stamps, which are what the measured mi(76,88) desync needed, stay.
Merge branch 'lane-keyq' (1331ffaf): the pyramid codes its key frame 48 q-steps below base; the rate loop prices the key's shareAhmet Kaan Gümüş · a792324
Merge branch 'lane-keyq' (1331ffaf): the pyramid codes its key frame 48 q-steps below base; the rate loop prices the key's share Long-GOP film A +52.0/+11.7 -> +43.5/+4.6, film B +144.5/+44.3 -> +131.3/+35.0; 12-frame film A +43.3/+15.0 -> +38.5/+8.2, film B +66.9/+35.1 -> +58.2/+26.5 vs libaom cpu-used 6 / rav1e speed 6. Key share of the stream 10% -> 22%. Pins 9778 / 35450.