Commits
Commits on
1e1a080d84acb9451ecf92a14228205c8cb614862026-09-07
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).
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.
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
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.
fix(av1): sub-8x8 and inter blocks never cleared the palette neighbour bandsAhmet Kaan Gümüş · 66e8f70
fix(av1): sub-8x8 and inter blocks never cleared the palette neighbour bands A palette-Y block left its size and colours standing in the mi-granular above/left palette bands: the sub-8x8 leaves and every inter block reader published skip/lf/mode state but no palette state, while libaom's mi grid carries palette_size 0 in exactly those cells. The next intra block then read palette_y_mode off CDF row 1 where libaom reads row 0, decoded a palette libaom never coded and skipped the use_filter_intra symbol a palette block has none of -- one symbol short, tile desynced (class cdf-row-held-constant). Measured on an instrumented aomdec: key frame block mi(76,88), ctx 0 vs ours 1. external_ladder now decodes every reference ladder point through decode_stream and asserts it sample-exact against ffmpeg.
feat(av1): the pyramid codes its key frame 48 q-steps below baseAhmet Kaan Gümüş · 20d60a5
feat(av1): the pyramid codes its key frame 48 q-steps below base The long-GOP sweep (lanes/keyq.sweep.txt): every arm from -16 to -48 improves both films on both columns, -48 is the floor (film A +52.0/+11.7 -> +43.5/+4.6, film B +144.5/+44.3 -> +131.3/+35.0), -64 overshoots on film B, and a deeper ARF under the same key gives the bytes back. The 12-frame gate agrees (film A +43.3/+15.0 -> +38.5/+8.2, film B +66.9/+35.1 -> +58.2/+26.5), so the offset is not gated on GOP length. The rate loop had to learn the offset: a run holds one key frame, so the key slot never gets a second frame to steer on, and the finer key ran the 48-frame bitrate gate +10.8% over target. Its byte share is now priced through the calibration slope and the rest of the run pays for it (-0.3%). Pins re-taken: 8590 -> 9778 and 28535 -> 35450.
Merge branch 'lane-dgolomb' (a4670b5a): temporal MV candidates ignored force_integer_mv; libaom's film B streams decode sample-exactAhmet Kaan Gümüş · edaf368
Merge branch 'lane-dgolomb' (a4670b5a): temporal MV candidates ignored force_integer_mv; libaom's film B streams decode sample-exact The "Golomb tail" refusal was a correlate: lower_mv_precision had dropped the is_integer half as unreachable, while libaom sets screen-content tools on dark smooth film and force_integer_mv on any inter frame whose source repeats the previous one. Class: branch dropped as unreachable.
test(av1): a synthetic 1920x1024 force_integer_mv gate, plus the lane reportAhmet Kaan Gümüş · fabb8ce
test(av1): a synthetic 1920x1024 force_integer_mv gate, plus the lane report The gate builds its own source -- near-flat dark background (2..=4 luma values per 16x16 block, libaom's own screen-content counting rule) with a textured patch stepping 9 px every second frame, so half the frames are exact duplicates of their predecessor, which is the only condition under which `av1_is_integer_mv` returns 1. It asserts that libaom really coded an inter frame with `force_integer_mv` and `use_ref_frame_mvs` before comparing all 12 shown frames against ffmpeg's own decode. Reported honestly in lanes/dgolomb.report.md: this gate is currently BLIND to the defect it was written for (stubbing the integer branch out still passes), so the regression cover is the motion_field unit test whose values come from the instrumented libaom oracle. The film-B ladder decodes sample-exact at crf 20/35/45; crf 5 still desyncs on the key frame at mi(184,344).
Merge branch 'lane-knobs' (bb0dadd0): the knob lock reaches every encoding test in encode.rs (11 writers, 41 readers)Ahmet Kaan Gümüş · ef39a14Browse files
test(av1): the encode:: tests take the knob lock the encoder:: gates already takeAhmet Kaan Gümüş · c1c9418
test(av1): the encode:: tests take the knob lock the encoder:: gates already take Same shape as 963327d2, now for `encode::tests`: `speed::KNOBS` only protects a setter from a concurrent encode if EVERY encoding test holds the read side, and half the crate's encodes live in this module -- `force_intrabc`, `force_filter_intra`, `force_screen` (via `favourite_mode`), `set_verify_final_replay` and the census counter resets are all process-global writes that were racing the `encoder::` gates and each other under the default `--test-threads`. 11 tests that SET a global take `knob_write()`, 41 that only encode take `knob_read()`, and 7 pure table tests (the rect-reach/of_tu/vert_ab tables and the tpl factor unit test) take nothing because they never reach the encoder. tile.rs and filter_search.rs need nothing: no test there calls the search or a knob setter. Test-only, no production path touched. Gates: `cargo test -p ec-av1 --release --lib -- encode:: tile::` 80 passed, the two thread-count gates `--include-ignored` 2 passed, the crate suite 548 passed / 43 ignored, `cargo check --workspace --all-targets -j4` 0 errors and 0 ec-av1 warnings, pins 8590 / 28535 unchanged.
fix(av1): temporal MV candidates ignored force_integer_mvAhmet Kaan Gümüş · 0c17efc
fix(av1): temporal MV candidates ignored force_integer_mv `lower_mv_precision` implemented only its `is_integer == false` half, on a comment claiming no reachable stream sets `force_integer_mv` because `allow_screen_content_tools` is refused at the stream level. Neither half of that claim holds: libaom turns screen-content tools on for dark, smooth FILM (`av1_set_screen_content_options` counts near-flat 16x16 blocks) and then sets `force_integer_mv` on the frames its hash test calls static, and this decoder parses such streams without refusing anything. The consequence was invisible to the parse: every temporal MV candidate came out at eighth-pel where libaom rounds it to full pel, so the mv stack held values libaom never produced. The stack still had the right shape for a while, so the frame decoded "successfully" into a whole-frame prediction mismatch, and the entropy desync that followed surfaced as the unrelated refusal "a Golomb tail longer than this decoder reads" (class `refusal-names-a-correlate`). First divergence, measured against the instrumented libaom oracle: film-B gate clip, `-cpu-used 6 -crf 35 -g 12`, decode-order frame 3 (order_hint 1, the one inter frame with `force_integer_mv == 1`), block mi(0,0), the NEWMV predictor -- identical `EC_TPL` field cells and identical range in both decoders, aomdec's stack `(16,0)w16 (16,-8)w12 (8,-40)w4` against ours `(14,-4)w16 (12,-2)w8 (12,-38)w4 (16,-4)w4`. Class: `branch-dropped-as-unreachable` -- a spec branch deleted on an unreachability note that a capability change (screen-content streams no longer refused) silently invalidated. All four libaom film-B ladder points at 48 frames now decode sample-exact against ffmpeg/libdav1d except crf 5, which desyncs on the KEY frame at mi(184,344) (base_q 9) -- a separate, still-open defect.
feat(av1): a key-frame quantizer offset for the coding pyramidAhmet Kaan Gümüş · f7ddd74
feat(av1): a key-frame quantizer offset for the coding pyramid The 48-frame census found our key frame coded at base q while its own ARFs sit 32 steps finer, where rav1e (key 100 / arf 120 / leaf 153) and libaom (63 / 95 / 163) both make the key the best frame of the run. Pyramid::key_q_offset carries that offset, read as the fifth field of EC_AV1_PYRAMID; the default is 0 until the sweep picks a point, so every stream is byte-identical here.
Merge branch 'lane-pyr5' (9d330425): a third pyramid level (hidden mid ARF at -8) for GOPs longer than 1.5 mini-GOPs; the 48-frame censusAhmet Kaan Gümüş · 5c50b7f
Merge branch 'lane-pyr5' (9d330425): a third pyramid level (hidden mid ARF at -8) for GOPs longer than 1.5 mini-GOPs; the 48-frame census Long-GOP film A +55.2/+12.8 -> +52.1/+11.7, film B +151.3/+47.4 -> +145.3/+45.0; 12-frame streams byte-identical. Census: the gap is the ARFs and the key frame (references spend 22-37% of the stream on the key, ours 10-11%), not the leaves. Our decoder cannot read libaom's film B streams (Golomb tail) -- a decoder defect to fix.
Merge branch 'lane-tx64' (b771ffc0): the 64x64 inter root codes a real residual; the root's early-out clamped so it ships at every presetAhmet Kaan Gümüş · 6932598
Merge branch 'lane-tx64' (b771ffc0): the 64x64 inter root codes a real residual; the root's early-out clamped so it ships at every preset The forward 64-point transform already existed; the missing ends were the 64-sided residual scratch and the writer's non-skip Whole64 arm. Film A +43.0/+15.0 -> +42.9/+14.8, film B +64.7/+34.0 -> +63.3/+31.5 on the 12-frame gate at the 16:-24:16 base; the residual arm is off on screen content. Speed 6 improves on every row. Pins re-taken on the merged tree (8:-32:16 pyramid): 8590 / 28535.
fix(av1): the third pyramid level only inside a run that holds more than one mini-GOPAhmet Kaan Gümüş · 0061431
fix(av1): the third pyramid level only inside a run that holds more than one mini-GOP A 12-picture GOP is one absorbed group of 11 and pays 2.8 BD points against libaom on film B for a second hidden frame at every offset measured, while a 48-picture GOP gains 6.0. Gated on gop > mini_gop * 1.5, so the 12-frame gate codes byte for byte what it coded before (+43.9/+15.6, +68.4/+38.2).
feat(av1): the three-level pyramid ships by default (mid ARF at -8)Ahmet Kaan Gümüş · 7aedb7b
feat(av1): the three-level pyramid ships by default (mid ARF at -8) Long-GOP sweep against a control arm on this head (lanes/pyr5.sweep.txt): film A +55.2/+12.8 -> +52.1/+11.7, film B +151.3/+47.4 -> +145.3/+45.0 vs libaom cpu-used 6 / rav1e speed 6. Byte pins are unmoved (their 4-picture clip codes one group of 3, which has no room for a mid level).
fix(av1): the pricer instrument charged a 64x64 root's residual nothingAhmet Kaan Gümüş · 9e0b6a8
fix(av1): the pricer instrument charged a 64x64 root's residual nothing predicted_coeff_bits's Whole64 arm returned 0.0 unconditionally -- right while the root was skip-only, wrong the moment it could code a residual. It made predicted_coeff_bits_track_the_tile_the_writer_wrote read a +51.65% drift on frame 1 of its clip (predicted 1017 bits against 2104 written); with the three prices spelled out (Luma64 + two Chroma32, the same triple predicted_coeff_bits_sb already took for a key frame's whole superblock) it reads +9.94% and the gate passes. Test-only accountant, so no coded byte moves -- the SEARCH always priced this arm correctly, through code_from_prediction's own coeff_bits. Swept the rest of the Whole64 sites: the two remaining skip-only claims were stale doc comments, corrected here.
docs(av1): the 48-frame long-GOP census -- the gap is the key-frame allocation and the missing hidden levels, not the leavesAhmet Kaan Gümüş · 9069d2aBrowse files
Merge branch 'lane-gaterace' (963327d2): the ignored encoder gates raced on the process-global speed preset; a test-only knob lock serialises the settersAhmet Kaan Gümüş · 4a51436Browse files
test(av1): the ignored encoder:: gates raced on the process-global speed presetAhmet Kaan Gümüş · 8c24e30
test(av1): the ignored encoder:: gates raced on the process-global speed preset `Av1Encoder::with_speed` stores the preset in a process-global atomic (`speed::SPEED`) and `par::set_tile_threads` in another, so with the default `--test-threads` the ignored gate `every_speed_preset_decodes_sample_exact_through_both_decoders` (presets 0..=10) and the `tile_*`/`filter_stage_*` wall tables changed the preset UNDER five concurrently encoding gates: four died in the encoder's own "a reference frame selected with no picture at this frame's own ref_frame_idx slot" (a sequence planned at one preset continuing at another) and `the_facade_codes_the_same_bytes_as_encode_sequence` on a byte compare. Every one of them passes standalone or at --test-threads 1. Root fix, test-only: `speed::KNOBS`, a reader/writer lock -- a test that SETS a process-global knob holds `knob_write()` for its whole body, every other `encoder::` test holds `knob_read()`, so a setter never overlaps an encode. Poison is ignored so one failing gate does not turn every later one into a lock panic. No production path changes; the temp files these gates write were already PID-keyed and no test in the crate calls `set_var`. Gates: the parallel run 28/28 twice (603 s, 658 s; it was 23 passed / 5 failed before), --test-threads 1 28/28, `cargo test -p ec-av1 --release -j4` 545 passed / 43 ignored, `cargo check --workspace --all-targets` 0 errors and 0 ec-av1 warnings, pins 8446 / 28548 unchanged.
feat(av1): a third pyramid level -- a hidden mid ARF inside each mini-GOPAhmet Kaan Gümüş · 5502480
feat(av1): a third pyramid level -- a hidden mid ARF inside each mini-GOP Pyramid gains mid_q_offset (EC_AV1_PYRAMID=<mini_gop>:<arf>:<leaf>[:<mid>], 'off' for the two-level shape). A group of at least four codes a second hidden frame at the middle of its leaf run, off the anchor with the top ARF as its backward reference; the leaves before it name it as ALTREF and the first leaf after it starts its chain from it. Default stays two-level until the long-GOP sweep decides.
docs(av1): the film B census behind the 64x64 residual armAhmet Kaan Gümüş · 0d77e3f
docs(av1): the film B census behind the 64x64 residual arm 12 frames at q120, both streams read by our own decoder. The 64x64 share goes 36.4% -> 38.3% over all frames and 53.3% -> 56.0% over leaf frames (rav1e speed 6 is at 45.2% on this clip), skip area 80.4% -> 78.8%, stream 34,366 -> 34,295 B, encoder wall 13.4s -> 9.6s. base_luma_64 enters the leaf frames' top tables at 5.7%: the TX_64X64 coefficients are really coded. Faster because a root that wins is four quadrant searches that never run.
Merge branch 'lane-gopad' (6aef216e): the mini-GOP layout absorbs a short tail group; 12-frame film A +51.2/+21.4 -> +43.9/+15.6, film B +91.0/+53.5 -> +68.4/+38.2, 48-frame streams byte-identicalAhmet Kaan Gümüş · 8f9d371Browse files
feat(av1): a GOP-length-aware mini-GOP layout -- a short tail group is absorbedAhmet Kaan Gümüş · 52506a7
feat(av1): a GOP-length-aware mini-GOP layout -- a short tail group is absorbed
`Av1Encoder::encode_frames` closed every mini-GOP at `Pyramid::mini_gop`
flat, so a run that is not a multiple of it left a SHORT TAIL group: 12
pictures under mini_gop 8 coded 8 + 3, and lane-pyr4 measured that tail as
the whole disagreement between the two BD gates (the 12-frame gate wanted
16:-24:16, the 48-frame gate 8:-32:16).
`group_target()` now sizes the group being collected from the pictures left
before the next key frame -- both entry points know it (`encode_sequence`
sets gop = pictures.len(), the facade has its config) -- and absorbs a tail
shorter than half a group into the group before it.
12-frame gate at 8:-32:16, film A / film B vs libaom / rav1e:
fixed 8 + 3 +51.2 / +21.4 +91.0 / +53.5
absorb -> 11 +43.9 / +15.6 +68.4 / +38.2 (bars rows improve too)
48-frame gate: 47 inter pictures are 8 x 5 + 7 under BOTH rules, and the
control arm confirms it byte for byte -- all eight ladder points identical,
+55.2 / +12.8 and +151.3 / +47.4 either way.
The balanced-split variant (equal groups <= mini_gop, 6 + 5 at gop 12) was
measured and is worse on every row; a group-length-scaled ARF offset was
dropped unbuilt, since the absorbed group at arf -32 already beats the -24
the 12-frame gate used to prefer. Table and logs: lanes/gopad.sweep.txt.
`EC_AV1_GOP_LAYOUT=fixed` restores the old rule for an A/B.feat(av1): the 64x64 root ships at every speed preset; re-pinAhmet Kaan Gümüş · 7b4f91d
feat(av1): the 64x64 root ships at every speed preset; re-pin With the early-out clamped at 0.125 the preset-6 regression lane-b64 measured is gone -- every row of the native gate is better on both columns with the root on (film A +55.1/+24.8 -> +51.0/+21.7, film B +91.5/+53.4 -> +77.9/+44.3, screen +57.7/-11.7 -> +40.3/-20.0, bars +88.9/+54.8 -> +79.5/+47.2 and +91.6/+49.8 -> +72.6/+35.1) at 28.1s vs 30.8s, 31.3s vs 28.0s, 14.3s vs 15.2s. Pins re-taken for the residual arm, ON THIS LANE'S BASE (456295e9, whose pins are 7291/27466 -- main has since moved to 8446/28548 under the 8:-32:16 pyramid, and those get re-taken at merge): 7291 -> 7355 at q=150, 27466 -> 27573 at q=60. EC_AV1_B64=0 still gives lane-b64's pre-root 8076 / 27585, verified on this base. Also drops the stale claim in B64_ROOT's doc that transform.rs has no forward TX_64X64.
Merge branch 'lane-pyr4' (e0a8b8a2): a 48-frame long-GOP film gate; the default pyramid is 8:-32:16, the long-GOP optimumAhmet Kaan Gümüş · d248e08
Merge branch 'lane-pyr4' (e0a8b8a2): a 48-frame long-GOP film gate; the default pyramid is 8:-32:16, the long-GOP optimum Long GOP (48 pictures, gop 48): film A +67.4/+21.0 -> +55.7/+13.5, film B +165.5/+57.6 -> +165.1/+56.6 vs libaom cpu-used 6 / rav1e speed 6. The 12-frame gate prefers 16:-24:16, so the optimum is GOP-length dependent; long GOP governs because that is what the editor exports. Pins re-taken on the merged tree with the 64x64 skip root: 8446 / 28548.
feat(av1): gate the 64x64 residual arm off on screen content; clamp the 64-root early-outAhmet Kaan Gümüş · af02836
feat(av1): gate the 64x64 residual arm off on screen content; clamp the 64-root early-out Native gate, two arms of one build, baseline reproduced to the tenth (film A +43.0/+15.0, film B +64.7/+34.0, screen +33.4/-23.8): | row | skip-only root | + residual arm | |---|---|---| | film A | +43.0 / +15.0 | +42.9 / +14.8 | | film B | +64.7 / +34.0 | +63.3 / +31.5 | | screen | +33.4 / -23.8 | +34.3 / -23.4 | Both film rows improve on both columns; screen loses 0.9 vs libaom, outside the keep rule's screen clause -- so the arm is gated off on a screen frame, the same content gate the coding pyramid takes. Re-run with the gate: film rows unchanged, screen row byte-identical to the skip-only arm (40155/51325/63998/80203 B), keep rule passes. Also: the 64-root early-out no longer follows crate::speed::SPLIT_RD up the preset ladder (b64_breakout_threshold clamps it at the shipped 0.125). lane-b64 measured what 0.5 does one size up: a whole superblock taken at 64x64 with its four quadrants never searched, film B +91.5/+53.4 -> +114.6/+71.5. Inert at presets 0..3, which already run 0.125.
feat(av1): the coding pyramid decided on a long GOP -- Pyramid::default 16:-24:16 -> 8:-32:16Ahmet Kaan Gümüş · 0d3b9a0
feat(av1): the coding pyramid decided on a long GOP -- Pyramid::default 16:-24:16 -> 8:-32:16 The shipped shape came off bd_rate_screen_native, which codes 12 frames with gop = 12; a mini-GOP is cut at every key frame, so any mini_gop over 12 codes the SAME stream there and the 16 was really "one hidden ARF per 12-picture GOP". On the new long-GOP arm (48 pictures, gop 48, the two real films, vs libaom cpu-used 6 and rav1e speed 6 at -g 48) a real 16- or 32-picture group is WORSE than an 8-picture one, and ARF -32 is an interior optimum (-40 turns back). 8:-32:16 takes 11.7 / 7.5 points off film A and 0.4 / 1.0 off film B against 16:-24:16 -- all four columns down. The price is stated in Pyramid::default and lanes/pyr4.sweep.txt: at a 12-frame GOP the new shape is 7.0 / 5.7 (film A) and 20.5 / 18.3 (film B) worse, because the best shape depends on GOP length and the long GOP is what the editor exports. Pins re-taken: 8076 -> 8755 at q=150, 27585 -> 28637 at q=60.
feat(av1): a 64x64 inter root can code a real residualAhmet Kaan Gümüş · 236d76c
feat(av1): a 64x64 inter root can code a real residual lane-tx64 step 1+2. The charter's premise (a) -- "transform.rs has no forward TX_64X64" -- is STALE: forward_dct_n::<_, 6> has been there since the network was written, quantize already drops everything outside the coded 32x32 corner, and a_64x64_transform_keeps_what_fits_in_its_coded_quarter round-trips a 64x64 residual through the decoder's own inverse. What was missing was the two ends around it. Encoder: code_from_prediction takes a 64-sided block (heap residual only for that one case, the 4x4..32x32 path keeps its stack array) and hands back the coded 32x32 corner as its levels, which is what both the pricer and the writer want. search_skip_64 prices the skip winner's prediction a second time with a real residual -- one TX_64X64 luma, one TX_32X32 per chroma plane -- and takes it when it costs less. Writer: Quadrant::Whole64 no longer refuses a non-skip block; it codes skip 0, the txfm_split flag at depth 0, and TxbSet::Luma64 + two Chroma32 planes, the same pair sb_coeff_key_frame_tile's Superblock::Whole already wrote. Deferred: compound refs at the 64 root, depth-1 4x32x32 var-tx, intra 64, edge superblocks -- all still refused/unsearched.
Merge branch 'lane-b64' (52edbfd2): a 64x64 skip root in the inter search, on at presets 0..3Ahmet Kaan Gümüş · 473ca5c
Merge branch 'lane-b64' (52edbfd2): a 64x64 skip root in the inter search, on at presets 0..3 Film A +44.2/+15.7 -> +43.0/+15.0, film B +70.5/+35.2 -> +64.7/+34.0, screen +48.2/-16.4 -> +33.4/-23.8 vs libaom cpu-used 6 / rav1e speed 6; wall down on four rows. Pins 7291 / 27466. Non-skip and intra 64 roots wait on a forward 64-point transform.
perf(av1): the 64x64 root ships at presets 0..=3, off from 4Ahmet Kaan Gümüş · 71bf2a8
perf(av1): the 64x64 root ships at presets 0..=3, off from 4 Measured on the native gate at EC_AV1_SPEED=6 (two arms side by side): ON costs film A +55.1/+24.8 -> +64.5/+37.5 and film B +91.5/+53.4 -> +114.6/+71.5 for -16%/-36% wall, because the trial's early-out rides SPLIT_RD -- at 0.5 a superblock is taken whole with its quadrants never searched and film B's q150 point drops 1.2 dB. Presets 1..=3 keep SPLIT_RD at 0.125, so they get the early-out that was measured good.
test(av1): re-pin the encoder's own streams for the 64x64 rootAhmet Kaan Gümüş · be3d4bc
test(av1): re-pin the encoder's own streams for the 64x64 root 8076 -> 7291 bytes at q=150 and 27585 -> 27466 at q=60 over the four-frame pin clip. The native gate keeps the lever: every row improves on both columns (film A +44.2/+15.7 -> +43.0/+15.0, film B +70.5/+35.2 -> +64.7/+34.0, screen +48.2/-16.4 -> +33.4/-23.8, bars 2160p +20.7/-3.8 -> +13.3/-9.9). EC_AV1_B64=0 restores the old pins byte for byte.