Commits
Commits on
682c080551bbe0ebee106d55c19fcc95b260a4f9Filtered to crates/ec-av1/src/encode.rsClear filter2026-09-06
Merge branch 'lane-av1lambda' (c2e7f4af): LAMBDA_SCALE 0.1 -> 0.05 (swept: a clean bowl with its floor at 0.0375-0.05)Ahmet Kaan Gümüş · 74d59b2
Merge branch 'lane-av1lambda' (c2e7f4af): LAMBDA_SCALE 0.1 -> 0.05 (swept: a clean bowl with its floor at 0.0375-0.05) Native crops: film 1080p +18.1/+0.9 -> +17.0/-0.3, film 2160p +47.1/+19.0 -> +47.0/+19.2, screen +58.3/-9.8 -> +51.6/-14.2 (vs libaom / vs rav1e); 640x384 +79.2/+97.7/+53.1 -> +71.9/+87.1/+48.7. Half of the "local RD win, ladder loss" pattern was the rate weight: local warp now meets the keep rule and OBMC halves its loss. Per-frame key lambda factor measured inert.
docs(av1): the lambda re-verdicts for OBMC, local warp and a key-frame lambda factorAhmet Kaan Gümüş · 7e18446
docs(av1): the lambda re-verdicts for OBMC, local warp and a key-frame lambda factor At LAMBDA_SCALE 0.05 the local warp candidate flips from a 0.7/0.9 loss on the 1080p film to two rows down / one flat, and OBMC at min side 8 goes from a loss to neutral; both stay off by default (warp's margin is 0.3 points and enabling it is a sequence-header feature change). The key-frame lambda factor is measured across four values and kept at 1.0: films and screen capture pull opposite ways and the native table is inside the +-0.3 band.
perf(av1): the RD search's rate weight was twice what the BD gates wantAhmet Kaan Gümüş · f72bb81
perf(av1): the RD search's rate weight was twice what the BD gates want Swept LAMBDA_SCALE on the BD gates themselves (640x384 over nine points, the native 1920x1024 crops over four) instead of the synthetic ladders it was last picked on. The optimum sits at 0.05, not 0.1: on the native table the 1080p film goes +18.1/+0.9 -> +17.0/-0.3, the screen capture +58.3/-9.8 -> +51.6/-14.2 and the 2160p film stays flat (+47.1/+19.0 -> +47.0/+19.2), vs libaom / vs rav1e. Both stream pins move with it. Also adds EC_AV1_LAMBDA_KEY (test builds), a per-frame-type lambda factor in libaom's rd_frame_type_factor shape, defaulting to 1.0 = no change.
Merge branch 'lane-av1rect' (91654d7a): pictures whose last block is cut on both frame edges encode; the refusal was a misreading of spec 5.11.4Ahmet Kaan Gümüş · 0e3a352
Merge branch 'lane-av1rect' (91654d7a): pictures whose last block is cut on both frame edges encode; the refusal was a misreading of spec 5.11.4 When hasRows and hasCols are both false no partition symbol is read and PARTITION_SPLIT is inferred down to the in-frame 8x8 leaves, so no rectangular transform is involved. 16 doubly-straddling sizes round-trip three-way exact through ffmpeg; byte pins and BD unchanged.
Merge branch 'lane-av1obmc2' (ab190a23): OBMC at the 16x16/8x8 leaves and a local warp candidate, both behind knobs; the trial decode honours allow_warped_motionAhmet Kaan Gümüş · 0ebeaad
Merge branch 'lane-av1obmc2' (ab190a23): OBMC at the 16x16/8x8 leaves and a local warp candidate, both behind knobs; the trial decode honours allow_warped_motion Both tools are byte-exact and measured losses on the native table (OBMC wins 85% of eligible 8x8 leaves and still costs bytes; warp fires on 2-7% of blocks). Default streams byte-identical. decode_inter_frame_tiles_lr hard-coded allow_warped_motion=false and the encoder's own trial decode went through it (stale-header class).
docs(av1): the measured local-warp table at its own decision siteAhmet Kaan Gümüş · fd3f898Browse files
feat(av1): a local-warp candidate behind EC_AV1_WARPAhmet Kaan Gümüş · a745879
feat(av1): a local-warp candidate behind EC_AV1_WARP The 3-symbol motion_mode alphabet in the tile writer (num_proj_ref mirrored from the decoder), the encoder-side WARPED_CAUSAL candidate built by the decoder's own find_samples/select_samples/find_projection/ warp_affine, and the frame's allow_warped_motion threaded into the encoder's trial decode -- hard-coding it false there desynced every warp-knob stream.
feat(av1): code the both-axes frame-edge cut as the spec's inferred splitAhmet Kaan Gümüş · 0e8b39f
feat(av1): code the both-axes frame-edge cut as the spec's inferred split A 32x32 or 16x16 block whose true frame edge cuts BOTH axes reads no partition symbol at all (spec 5.11.4: hasRows and hasCols both false => PARTITION_SPLIT inferred), down to the 8x8 leaves whose own mi origin is inside the frame -- the same leaves the one-axis case already coded. The encoder refused that geometry by name, claiming it needed a rectangular HORZ/VERT transform; it needs none, and the refusal was a misreading of the rule. Both writers now emit the inferred split, and the searches drop their matching refusals.
wip(av1): warp candidate snapshot at the agent cap (may not compile)Ahmet Kaan Gümüş · fbf67c0Browse files
docs(av1): the measured OBMC-by-footprint table at its own decision siteAhmet Kaan Gümüş · cb81370Browse files
Merge branch 'lane-av1straddle' (862db122): the writer no longer codes phantom transform units past the right frame edge; the RD pricer reads the real txb_skip/dc_sign contextsAhmet Kaan Gümüş · 16ecf06
Merge branch 'lane-av1straddle' (862db122): the writer no longer codes phantom transform units past the right frame edge; the RD pricer reads the real txb_skip/dc_sign contexts A right-edge-straddling 32x32 wrote 16 luma units where the decoder and libaom code 12; libdav1d and libaom refused the whole 216x96 stream. One clip in write_luma_tus fixes it, byte pins unmoved (gate clips are block-aligned). On top: the per-trial neighbour context map for the pricer (lane-av1skipctx): screen all-zero chroma error -73% -> -1.9%, native screen +58.3/-9.8, 2160p +47.1/+19.0, 1080p +18.1/+0.9.
feat(av1): offer the OBMC candidate at the 16x16 and 8x8 inter leavesAhmet Kaan Gümüş · 74fe5cf
feat(av1): offer the OBMC candidate at the 16x16 and 8x8 inter leaves The motion_mode symbol is now priced off the frame's own starting tables (tile::obmc_symbol_bits), like the coefficients since lane-av1price2, and the native BD arm prints the motion_mode histogram the 640x384 gate already did.
fix(av1): never code a transform unit that starts outside the frameAhmet Kaan Gümüş · 683eca4
fix(av1): never code a transform unit that starts outside the frame The writer's per-unit luma loop walked every unit of a block's transform grid, including the ones a right-edge- (or bottom-edge-) straddling block has entirely outside the frame. libaom clips that loop to max_blocks_wide/high and decode.rs does the same, so the extra all_zero symbols desynced the tile at the very next symbol: at 216x96 an odd-size GOP's last block reconstructed a different V, and both libdav1d and libaom refused the whole key frame. Clip the loop to the frame's true mi_cols/mi_rows. The block-aligned byte pins do not move (their clips have no straddling block); the ffmpeg GOP gate now runs 216x96 as well, three-way exact against reconstruction.
fix(av1): code motion_mode syntax only when the OBMC knob is onAhmet Kaan Gümüş · 0d0c9c4
fix(av1): code motion_mode syntax only when the OBMC knob is on With OBMC default-off every eligible block coded a SIMPLE_TRANSLATION symbol for no gain (+0.07% at q=150, +0.02% at q=60), so is_motion_mode_switchable now follows EC_AV1_OBMC: the default path writes no motion_mode syntax at all and is byte-identical to the streams before this lane (pins back to 7106 / 25963). The arming, the writer, the Encoded/decoder threading and the OBMC candidate are unchanged -- a future warp knob joins the same disjunction. Under EC_AV1_OBMC=1 the byte pins and the pricer drift bound fail BY DESIGN (the knob changes encoder decisions), the same contract EC_AV1_PRICE_FRAME_CDFS=1 already has; every decode round trip stays sample-exact with 0 EC_COMP_MISMATCH lines.
docs(av1): record the odd-size straddling-block V desync at the pricer's context siteAhmet Kaan Gümüş · 1058fbb
docs(av1): record the odd-size straddling-block V desync at the pricer's context site Not caused by the context map (ablated, no EC_AV1_PRUNE_K in 1..=6 and no EC_AV1_ESTIMATE=1 reproduces it, and a pricer writes no symbol); a decision change is what reaches the straddling last block's writer/decoder desync.
wip(av1): per-trial neighbour nz context for the pricer, snapshot at the agent cap (may not compile)Ahmet Kaan Gümüş · b71a850Browse files
feat(av1): an OBMC candidate for the 32x32 single-reference winner, measured and defaulted offAhmet Kaan Gümüş · 84a1ea3
feat(av1): an OBMC candidate for the 32x32 single-reference winner, measured and defaulted off The encoder now offers the 32x32 single-reference winner an OBMC_CAUSAL candidate built by the DECODER's own plan and blend (decode::obmc_plan / obmc_run, libaom av1_build_obmc_inter_prediction) off the committed neighbours' mvs the search grid already carries, prices the motion_mode symbol against the default obmc CDF, and the tile writer codes whichever value won. obmc_plan lost its Neighbours parameter for the two filter bands themselves so an encoder with a fixed interpolation filter can call it; no second implementation of the blend exists. MEASURED and NOT KEPT ON: native crop BD with it on is +18.2/+0.9, +47.3/+19.2, +59.1/-10.0 against +18.0/+0.7, +47.3/+19.2, +59.4/-10.0 off -- one row down, one flat, one up, short of the two-down-one-flat rule. It is behind EC_AV1_OBMC=1 with the numbers at the decision site; the default path is byte-identical to the SIMPLE-only commit before it. Only the 32x32 winner is offered OBMC and the price is the static-CDF estimate: the leaves and a real-CDF price are the upgrade path. Byte-exact either way: EC_COMP_MISMATCH=1 prints nothing with OBMC on, and every decode round trip (our own decoder and ffmpeg) is sample-exact.
feat(av1): arm is_motion_mode_switchable and code a SIMPLE motion_mode symbol on every eligible inter blockAhmet Kaan Gümüş · ba4398c
feat(av1): arm is_motion_mode_switchable and code a SIMPLE motion_mode symbol on every eligible inter block The encoder's inter frames now set is_motion_mode_switchable and the tile writer codes the motion_mode/obmc symbol decode.rs' read_motion_mode has always read, for every single-reference inter block libaom's motion_mode_allowed accepts. Every block still chooses SIMPLE_TRANSLATION, so the streams are the old ones plus the header bit and one symbol per eligible block: 7106 -> 7111 bytes at q=150 and 25963 -> 25969 at q=60 on the 640x384 gate clip (+0.07%/+0.02%), pins updated. Eligibility is decode.rs' own motion_mode_eligible term for term, sharing the neighbour walk through the new has_overlappable_neighbour so writer and decoder cannot drift; write_motion_mode prints an EC_COMP_MISMATCH line if a block was trialled OBMC but coded SIMPLE, and EC_TRACE_MODE_STEP prints the writer-side EC_MMW counterpart of the decoder's EC_MM rung. is_motion_mode_switchable is threaded to the raw inter tile decode entry points and carried on Encoded (stale-header class, same contract as tx_select/start_cdfs) -- hard-coding false there desynced three decode round trips before it was threaded.
feat(av1): the RD pricer reads the real neighbour txb_skip/dc_sign contextsAhmet Kaan Gümüş · 9afbc09
feat(av1): the RD pricer reads the real neighbour txb_skip/dc_sign contexts The search priced every transform block at txb_skip context 0 and dc_sign context 0 -- exact for a luma transform covering its whole block, and the largest remaining row of the pricer census everywhere else: an all-zero chroma block was under-priced 41-81%, a one-coefficient Chroma8 over-priced 32%. Each plane now carries a per-4x4-cell map of what the blocks committed before it left behind (cul_level and DC sign, tile.rs neighbour_state), written by Plane::commit and undone with the pixels by Plane::restore, so a partition trial reads the parent's committed neighbours for its first child and the just-committed sibling for the later ones -- coding order inside the tree. Plane::coef_ctx mirrors the writer's own derivation: chroma reads whether the above/left neighbours coded anything (write_block_planes), luma context 0 for a whole-block transform and decode.rs SKIP_CONTEXTS for a smaller unit (write_luma_tus / Neighbours::luma_skip_ctx), both planes the neighbours' DC sign vote (dc_sign_ctx). Census, 6 frames of each clip at 640x384 q=100, priced vs written: screen total +10.3% -> +9.5%, Chroma8 nz=0 -73.0% -> -1.9%, Chroma16 nz=0 -48% -> -23.4%, Chroma4 nz=0 -74% -> -6.7%, Chroma8 nz=1 +32.2% -> +4.9%, nz=2 +26.2% -> +7.9%, Luma4 nz=0 +464% -> +89.5% film total +5.3% -> +1.5%
test(av1): re-pin the encoder's own streams and widen the drift boundAhmet Kaan Gümüş · d4a3234
test(av1): re-pin the encoder's own streams and widen the drift bound The frame-table price on non-screen frames is a decision change: the 640x384 4-frame pins move to 7106/25963 bytes and the predicted-vs-written drift bound to 0.34 (the +32.6% lane-av1txbits measured under the knob is the default path now).
feat(av1): price coefficients against the frame's real tables on non-screen framesAhmet Kaan Gümüş · 7639e56
feat(av1): price coefficients against the frame's real tables on non-screen frames The RD pricer took its coefficient rate against the DEFAULT CDF tables while an inter frame's writer starts from the tables the previous frame stored. lane-av1txbits measured the fix (EC_AV1_PRICE_FRAME_CDFS=1) as better on both film clips and worse on the screen capture, so it shipped off. The encoder already classifies every frame (screen_content -> allow_screen_content_tools), so the choice can be made per frame: real tables when the detector says no, defaults when it says yes. arm_pricing_cdfs takes that bit; EC_AV1_PRICE_FRAME_CDFS=0/1/2 selects never/always/gated. Both BD gates print the per-frame arming counts.
feat(av1): the frame-tables coefficient price ships as a knob; the compound and 32x32 var-tx trials measured again on top of itAhmet Kaan Gümüş · 1f18bea
feat(av1): the frame-tables coefficient price ships as a knob; the compound and 32x32 var-tx trials measured again on top of it Pricing against the tables the frame is really written with is the more accurate estimate -- the census goes +7.6% -> +4.8% over every transform block and +31.4%/+22.3% -> +3.1%/+3.6% on the one- and two-coefficient inter blocks -- but it does not convert on every clip (film down, screen up), so it sits behind EC_AV1_PRICE_FRAME_CDFS with both BD tables in the doc comment and the default bytes unchanged. With it on, both trials the accuracy was supposed to unlock were rebuilt and measured: the compound var-tx trial set and a transform-depth search for the 32x32 inter path each came out neutral to slightly worse, so the static-CDF estimate was not what held them back. Both measurements are recorded at their decision sites; neither ships.
feat(av1): price the search against the tables the frame is really written with, plus a per-class pricer censusAhmet Kaan Gümüş · 95c183b
feat(av1): price the search against the tables the frame is really written with, plus a per-class pricer census The inter frame writer starts from the tables the previous frame stored, not from the defaults, so the coefficient price the mode search ranked by charged for a narrowing the writer no longer pays. The new census -- per transform block, priced bits against the bits the writer spent, split by table set and non-zero count -- measured it at +31% on the one-coefficient inter blocks the search lives on (+7.6% over all blocks); arming the frame's own starting tables takes those rows to +3% and the whole census to +4.8%.
Merge branch 'lane-av1comp4' (d9490b51): second-reference motion search at the leaves (NEAREST_NEW / NEW_NEW), compound stacks at the straddling leavesAhmet Kaan Gümüş · 020b822
Merge branch 'lane-av1comp4' (d9490b51): second-reference motion search at the leaves (NEAREST_NEW / NEW_NEW), compound stacks at the straddling leaves BD vs libaom +83.0/+99.9/+54.5 -> +79.9/+94.6/+54.5, vs rav1e +39.7/+60.0/+1.1 -> +37.3/+55.7/+1.1; margin 0.8 swept; mismatches 0. Compound var-tx measured and rejected (small residuals: the per-unit txb_skip/eob symbols cost more than the static estimate prices).
test(av1): the native BD arm honours EC_AV1_PYRAMIDAhmet Kaan Gümüş · dbe9b29
test(av1): the native BD arm honours EC_AV1_PYRAMID The native-crop arm called our_ladder directly, so every pyramid arm measured at native was silently the flat encoder. It now takes the same pyramid_from_env branch the default gate does, with the same three-way check that path can make (ffmpeg vs our decoder, Y/U/V, display order) and the per-level frame and byte census.
test(av1): the native BD arm covers all three gate clips in one tableAhmet Kaan Gümüş · 706758b
test(av1): the native BD arm covers all three gate clips in one table The native-crop arm only ever measured the screen capture, with the 1080p film behind an opt-in and the 2160p film absent, so the two content classes whose default-gate numbers are worst were never read at a resolution the encoder's tools can serve. It now runs all three clips by default -- both films and the capture, each a centred, superblock-aligned 1920x1024 crop of its own source, never scaled -- printing the default gate's own columns with the crop size folded into the clip cell. The three per-clip selectors survive as a subset filter (EC_AV1_NATIVE_FILM / _FILM4K / _SCREEN): setting any one keeps only those rows, setting none keeps all. The wall column is labelled noisy; it is not a measurement on a loaded box. No encoder change: the default gate reads +83.0 / +99.9 / +54.5 as before.
Merge branch 'lane-av1native' (288a7963): a native-resolution BD arm (bd_rate_screen_native, 1920x1024 crop, no downscale)Ahmet Kaan Gümüş · 4a3f924
Merge branch 'lane-av1native' (288a7963): a native-resolution BD arm (bd_rate_screen_native, 1920x1024 crop, no downscale) At native the screen capture is +59.3 vs libaom and -10.0 vs rav1e, the 1080p film crop +18.9 / +1.5: the 640x384 recipe measures content 4x further from libaom than the real files. No default moved; intrabc loses at native too (11499 RD wins cannot pay the key frame's filter loss).
Merge branch 'lane-av1simd' (5da4ea68): exact integer SAD/SSE, cached transposed forward basis, no per-row / per-prediction allocationsAhmet Kaan Gümüş · 107329c
Merge branch 'lane-av1simd' (5da4ea68): exact integer SAD/SSE, cached transposed forward basis, no per-row / per-prediction allocations Byte-identical (FNV sets on the three gate clips against a clean-checkout baseline binary); single-thread ladder -11.1% instructions; 3840x1608 4x2/8 threads 1.41 -> 1.60 fps. AVX2 forward passes not built: 67% of forward transforms are 4x4 and the addressable share is ~1.4%.
test(av1): a native-resolution screen BD arm, crop not downscaleAhmet Kaan Gümüş · cd2c183
test(av1): a native-resolution screen BD arm, crop not downscale The default gate downscales the OBS capture to 640x384, which destroys the exact 16x16 repeats intrabc and part of the palette exist for. bd_rate_screen_native crops a superblock-aligned 1920x1024 window out of the middle at native size and runs the same 12-frame four-quantizer ladder against libaom cpu-used 6 and rav1e speed 6, with the same three-way sample-exact assertion.
test(av1): the BD census prints the LEAF compound mode histogramAhmet Kaan Gümüş · 07efe78
test(av1): the BD census prints the LEAF compound mode histogram The frame-wide histogram cannot say whether a compound mode reaches the leaves, which is the only question the leaf compound steps ask.
feat(av1): the straddling-edge leaves are offered compound tooAhmet Kaan Gümüş · 48a7da3
feat(av1): the straddling-edge leaves are offered compound too Both true-edge leaf call sites passed an empty compound stack list, so no block along a frame edge that straddles a 32x32 boundary could ever be coded compound. They now build the same stacks the split quadrants do, through one helper shared by all three sites. Invisible to the BD gate (its clips are 640x384, a whole number of 32x32 blocks): byte-identical there. Measured on the straddle round trips instead -- 15 compound 16x16 and 58 compound 8x8 leaves fire at 640x360 and at the real clip straddle size, and every straddle round trip stays sample-exact through ffmpeg and through our own decoder.
chore(av1): the intrabc gate counters are read only from the cfg(test) gatesAhmet Kaan Gümüş · 4241847Browse files
test(av1): repin the encoder streams and widen the own-decoder fixture for the leaf second-reference searchAhmet Kaan Gümüş · f2d1542
test(av1): repin the encoder streams and widen the own-decoder fixture for the leaf second-reference search q=150 keeps its 7084 bytes with a moved hash; q=60 falls 26116 -> 25905. The own-decoder round trip moves to 256x128: at 128x64 every var-tx-eligible block now goes to a compound winner (which commits its flat transform), so the split-fired guard had nothing left to see.
feat(av1): an inter LEAF searches its second reference, so NEAREST_NEW and NEW_NEW reach the leavesAhmet Kaan Gümüş · e83e29a
feat(av1): an inter LEAF searches its second reference, so NEAREST_NEW and NEW_NEW reach the leaves A 16x16/8x8 leaf only ever ran one motion search (against LAST), so its compound candidates could name a stack vector for the second half and nothing else. It now runs a search against the second reference too, seeded from and rounded to compound stack entry 0 (what assign_compound_mv predicts from at ref_mv_idx 0), behind the same early-out shape the whole-block extra-reference NEWMV uses, swept to 0.8. BD vs libaom +83.0/+99.9/+54.5 -> +79.9/+94.6/+54.5, vs rav1e +39.7/+60.0/+1.1 -> +37.3/+55.7/+1.1; extra motion searches +23% at 2160p.
doc(av1): a compound leaf keeps the flat transform -- the var-tx split is measured worseAhmet Kaan Gümüş · bbbf1cd
doc(av1): a compound leaf keeps the flat transform -- the var-tx split is measured worse Built the compound commit_inter_luma the previous lane named as the upgrade path (both references predicting every half-side trial) and swept its split margin on the BD gate: no margin beats the flat commit on more than one clip, and 1080p and screen lose at every one. Recorded at the decision site.
measure(av1): intrabc ships behind EC_AV1_INTRABC, default OFF -- it loses the key frame's in-loop filters for nothing on the real screen captureAhmet Kaan Gümüş · 331a966Browse files
test(av1): a repeated-pattern key frame codes intrabc blocks, ffmpeg and our own decoder read them back sample-exactAhmet Kaan Gümüş · ffa03f8Browse files
Merge branch 'lane-av1gatedec' (15c70d52): the BD gate decodes every ladder point with ffmpeg and with this crate's own decoder and asserts all three sample-exactAhmet Kaan Gümüş · c759b78
Merge branch 'lane-av1gatedec' (15c70d52): the BD gate decodes every ladder point with ffmpeg and with this crate's own decoder and asserts all three sample-exact The ffmpeg leg always ran; the own-decoder leg was missing on the flat ladder. Failures now name clip, q, frame, plane and sample.
perf(av1): stop allocating per row and per intra predictionAhmet Kaan Gümüş · 013dc91
perf(av1): stop allocating per row and per intra prediction `Plane::source_block`/`snapshot` built one `Vec` per row of the square they copied and then collected those; `rows_of` copies straight into one buffer. `intra_predict_u8` allocated its two widened edges and its `u16` destination on every call -- once per mode per trial -- and all three fit on the stack at the sizes the encoder uses. No arithmetic changed; the enc_probe FNV set on the three gate clips is unmoved. 1080p ladder: 101.65e9 -> 98.27e9 instructions:u (-11.5% against the b5373c65 baseline's 111.09e9, ABAB x2).
Merge branch 'lane-av1comp3' (d9be6595): compound candidates at the 16x16/8x8 leaves; straddling-leaf mi publication goes through record_miAhmet Kaan Gümüş · 8b1a733
Merge branch 'lane-av1comp3' (d9be6595): compound candidates at the 16x16/8x8 leaves; straddling-leaf mi publication goes through record_mi BD vs libaom +94.4/+104.3/+66.8 -> +83.0/+99.9/+66.4, vs rav1e +47.5/+63.6/+10.7 -> +39.7/+60.0/+10.2; compound share 26-34% of inter blocks; EC_COMP_MISMATCH 0. SPLIT_RD_THRESHOLD re-swept, stays 0.125.
perf(av1): exact integer SAD/SSE and a vectorizable typed forward basisAhmet Kaan Gümüş · fae8c1b
perf(av1): exact integer SAD/SSE and a vectorizable typed forward basis Two byte-exact rewrites on the encoder search's hottest loops, both proved by the enc_probe FNV set on the three gate clips at four q points. `Plane::block_sad`/`block_sse` replace four hand-rolled `f64` accumulations that ran an integer division and remainder per sample to recover (row, col) from a flat index. The sums they replace are whole numbers far below 2^28, so `f64` held every partial sum exactly and neither the order of the adds nor the accumulator type can change the result. `forward_transform_2d_typed`'s two matmuls summed over a strided basis, which no vectorizer can touch. `axis_basis_t` caches the transposed basis so the pass is contiguous in the basis index and strided in nothing; each lane's terms stay in the same order, so the levels are unchanged. The row pass now also records which rows it filled, and the column pass walks only those. 1080p ladder, 12 frames, 4 q points: 111.09e9 -> 101.65e9 instructions:u (-8.5%, ABAB x2).
test(av1): the BD gate decodes every ladder point with our own decoder tooAhmet Kaan Gümüş · 8f036d9
test(av1): the BD gate decodes every ladder point with our own decoder too `our_ladder` already decoded each of our streams with ffmpeg and asserted that decode sample-exact against the encoder's reconstruction; what it never did was run OUR decoder over the same stream, so every feature only our writer/reader had seen (size-8 chroma palettes on the screen clip, say) was gated by ffmpeg alone. Each ladder point now decodes the stream twice and asserts all three pictures -- reconstruction, ffmpeg, ours -- equal in Y, U and V over every shown frame in display order, and a failure names the clip, q, frame, plane and first differing sample. The `EC_AV1_PYRAMID` path gets the same all-plane compare (the facade exposes no per-packet reconstruction, so it pins the two decoders).
Merge branch 'lane-av1pal2' (be1937b0): chroma palette and a 128-colour palette boundAhmet Kaan Gümüş · 691f69e
Merge branch 'lane-av1pal2' (be1937b0): chroma palette and a 128-colour palette bound Screen BD vs libaom +66.4 -> +55.1, vs rav1e +10.3 -> +1.1; both film clips byte-identical. The 32-colour bound was an unswept constant (-9.5 points on its own). Screen tools forced on for film measured worse on 1080p and non-monotone, so the detector stays; the 32x32 palette arm was dead work and is not in.