Commits
Commits on
5f548e637986cf592a1ff05fca0f88c117fcbe292026-09-06
feat(bench): the av1 encode row names the pyramid it coded under, hidden frames beside itAhmet Kaan Gümüş · 5ad5e5cBrowse files
docs(av1): record the native-gate confirm run under the default pyramid (5 rows, screen unmoved)Ahmet Kaan Gümüş · 3783121Browse files
docs(av1): the pyramid is the default -- Pyramid/encode_sequence docs and the 640x384 gate table re-recordedAhmet Kaan Gümüş · 5ec5a7cBrowse files
test(av1): re-take the byte pins under the default pyramid; zip the rate census in coding orderAhmet Kaan Gümüş · ef22613
test(av1): re-take the byte pins under the default pyramid; zip the rate census in coding order EncodedSequence now carries coding_order, the map from coding order (what a per-coded-frame census counts) to the display-order frames.
feat(av1): encode_sequence codes the content-gated pyramid by defaultAhmet Kaan Gümüş · 534fad0
feat(av1): encode_sequence codes the content-gated pyramid by default The mini-GOP driver is the facade's own (Av1Encoder::encode_sequence_pyramid), so the two paths cannot drift: encode_sequence hands its pictures to the facade under Pyramid::from_env() (default 4:-16:8, EC_AV1_PYRAMID=0 for the flat A/B) unless the content gate reads the first picture as screen, and returns the frames in display order. The identity gate now pins both content classes -- film-like (reordered, hidden ALTREF) and screen-like (gated flat, identical frame by frame).
Merge branch 'lane-av1pyrgate' (4df5ddd8): the frame pyramid is content-gated (screen streams stay flat) and re-swept on real filmAhmet Kaan Gümüş · 5d7858a
Merge branch 'lane-av1pyrgate' (4df5ddd8): the frame pyramid is content-gated (screen streams stay flat) and re-swept on real film 4:-16:8 under the gate: film A +62.8/+32.5 -> +54.1/+24.2, film B +86.3/+50.5 -> +82.6/+47.4, screen byte-identical. Still opt-in (with_pyramid / EC_AV1_PYRAMID): a default needs the same reordering in encode_sequence, which the facade is byte-pinned to.
style(av1): wrap the content-gate condition the way rustfmt doesAhmet Kaan Gümüş · b793f06Browse files
docs(av1): record the 640x384 gate under the content-gated pyramid -- the capture's row is the flat row to the byteAhmet Kaan Gümüş · 3c2169cBrowse files
docs(av1): the pyramid sweep re-run under the content gate on the current defaults -- 4:-16:8 keepsAhmet Kaan Gümüş · 88a08dbBrowse files
feat(av1): the coding pyramid is gated on content -- a screen-content stream codes the flat bytesAhmet Kaan Gümüş · 47529de
feat(av1): the coding pyramid is gated on content -- a screen-content stream codes the flat bytes The pyramid lost on the OBS capture in every sweep and won on both real films; the screen detector is 0/48 on the films and 48/48 on the capture, so it is the signal. Av1Encoder::encode_frames decides once, on the first picture, and drops a screen stream back to the flat path (byte-identical to the pre-pyramid encoder). The BD gate prints the requested and the EFFECTIVE pyramid per row.
Merge branch 'lane-av1resweep' (266d988a): constants re-judged on the real-film rows -- LAMBDA_SCALE 0.0275, the 32x32 tx-depth search and compound var-tx on by defaultAhmet Kaan Gümüş · d24d494
Merge branch 'lane-av1resweep' (266d988a): constants re-judged on the real-film rows -- LAMBDA_SCALE 0.0275, the 32x32 tx-depth search and compound var-tx on by default Real film inverts the bar-fixture verdicts: film A +69.0/+37.5 -> +62.8/+32.5, film B +100.0/+61.5 -> +86.3/+50.5, screen +51.0/-14.5 -> +50.1/-15.4 (vs libaom / vs rav1e). OBMC rejected a fifth time; the pyramid is the largest unclaimed film win (-10 on film A) but costs the screen capture +4.3, so it stays a knob until gated by content.
docs(av1): record the 640x384 BD gate under the re-judged defaultsAhmet Kaan Gümüş · 11b0031Browse files
Merge branch 'lane-av1speed3' (f19880fc): CDEF candidates share one destination and restore only what the last candidate wrote; the coefficient writer splits scan positions by shiftingAhmet Kaan Gümüş · c401345
Merge branch 'lane-av1speed3' (f19880fc): CDEF candidates share one destination and restore only what the last candidate wrote; the coefficient writer splits scan positions by shifting Byte-exact on the gate clips and both real-film crops. 4K plane copies -20% (8 threads) / -23% (12 threads), 1080p 4x2/8 1.67 -> 1.85 fps in the instrumented build. The first-decode replacement (a frame-wide Neighbours publisher) is deferred with its shape named. Film and bars cost the same per frame on a quiet box; the earlier "2x slower" read was contention.
perf(av1): re-judge the encoder's rate weight and var-tx depth on real filmAhmet Kaan Gümüş · 70ddd6a
perf(av1): re-judge the encoder's rate weight and var-tx depth on real film
Every decision constant in encode.rs was swept on the native gate's
testsrc2 COLOUR BARS rows, ~90% of whose cells have no intra cost. The
gate now carries two real film crops, and three of those decisions
invert on them (BD-rate vs libaom / vs rav1e, film A / film B):
LAMBDA_SCALE 0.05 -> 0.0275 +69.0/+37.5 +100.0/+61.5 -> the bowl on
real film bottoms at half the bars' weight; 0.02 breaks the capture
tx32_depth_search default ON three bars rejections; -1.1/-3.4 here
compound_var_tx default ON a further -2.4/-2.1 on top
Stacked: film A +62.8/+32.5, film B +86.3/+50.5, screen +50.1/-15.4
(all five rows in the doc tables). The 32x32 depth search fires on
42-46% of single-reference 32x32 blocks on film, and on ~0 of the bars.
Rejected again on real film: OBMC (flat/worse), pyramid 4:-16:8 and
2:-16:8 (film A -9.9 but the capture +4.3), SPLIT_RD 0.0625/0.25,
LEAF_SECOND 0.8/1.6, MV_DIST_SCALE 0.25/1.0.
Pins re-taken; the streams moved by construction.perf(av1): the coefficient writer splits a scan position by shifting, and a wall table for the film cropAhmet Kaan Gümüş · 65aa140
perf(av1): the coefficient writer splits a scan position by shifting, and a wall table for the film crop `side` is 4, 8, 16 or 32, but it reaches `write_coeffs` as a runtime value, so `pos / side` and `pos % side` compiled to a real integer division and remainder once per coefficient -- inside the encoder's largest self-time symbol. Same row and column by construction (the side is a power of two, now debug-asserted). 640x384 gate clip, 4 frames, q 150/120/90/60 and both real-film 1920x768 crops at q 150/60: byte-identical to a b7990ec1 baseline binary. 1920x1080 4 frames q=120, instructions:u ABABx2: 59.344e9 -> 59.200e9 (-0.24%), on top of the CDEF written-map commit. `filter_stage_wall_film` runs the same stage breakdown at 1920x768, and `EC_AV1_WALL_CLIP` points the test loader at a clip outside the repo, so the table can be read on a real film window as well as on the colour-bar fixture. It answers which stage grows on film: the TILE SEARCH does (285.9 -> 497.7 ms/frame, bars vs film A), while every filter stage is flat or lower -- deblock replay 15.4 -> 10.0, plane copies 28.9 -> 23.7, first decode 14.7 -> 17.2 ms/frame. Only the CDEF replay grows (13.0 -> 21.7), which is the film choosing non-zero strengths where bars do not.
perf(av1): the CDEF candidate loop keeps one destination and restores only what the last candidate wroteAhmet Kaan Gümüş · 3847d87
perf(av1): the CDEF candidate loop keeps one destination and restores only what the last candidate wrote The encoder's filter search scores ~32 candidates on one captured reconstruction, and the ~17 of them that only move a CDEF strength used to copy the three post-deblock planes (~19 MB at 4K) into fresh destinations before every one -- 7% of a 4K frame's wall, the largest plane-copy bucket left. `cdef_band` now fills a per-8x8-unit map (bit 0 luma, bit 1 chroma) of the units it actually filtered, which is what the reuse needs: the per-unit variance goes through `cdef_adjust_strength`, so a candidate with a lower primary strength can leave units its predecessor wrote and the map is not a function of the strengths alone (the reason an earlier lane recorded this reuse as not provably exact). The replay keeps its destination planes between candidates and restores, from the post-deblock cache, the column span between the first and last written unit of each unit row -- contiguous, never more than the whole-plane copy it replaces. Two restores fall away entirely: a plane whose strengths did not move, and a plane whose new primary strength is no lower with a secondary that is zero only if the old one's was, since `cdef_adjust_strength` is monotone and every unit CDEF writes it writes from the post-deblock source alone. Only while both candidates carry one strength pair and read the same cdef_idx grid; the final replay restores everything. Byte-exact: the pins (q150 7173 / q60 26362), enc_probe FNV on the 640x384 gate clip at q 150/120/90/60 and on both real-film 1920x768 crops at q 150/60 all match a b7990ec1 baseline binary exactly, and the replay-identity, facade and thread-count determinism tests pass. 4K 3840x1608 4x2 tiles / 8 threads, best of 3 on a contended box: plane copies 316 -> 268 ms per 4 frames (-15%), cdef replay unmoved.
Merge branch 'lane-av1screendet' (e65e105b): the screen-content detector gains libaom's variance termAhmet Kaan Gümüş · aea57e3
Merge branch 'lane-av1screendet' (e65e105b): the screen-content detector gains libaom's variance term Both real films read as screen on every frame (no variance term; the constants had been swept on colour bars). Rule now: 2..16 colours with per-pixel variance > 16 over more than an eighth of the frame. Film rows: +69.5/+37.7 -> +69.0/+37.5, +102.4/+63.4 -> +100.0/+61.5; bars and screen byte-identical; film wall -10% (no palette search).
docs(av1): record the five native rows before/after the detector fixAhmet Kaan Gümüş · 0938d7dBrowse files
fix(av1): the screen-content detector needs libaom's variance termAhmet Kaan Gümüş · 47036af
fix(av1): the screen-content detector needs libaom's variance term Without it a smooth dark film frame is all few-colour 16x16 blocks, so both real films of the native gate classified as screen content on 48/48 frames: palette search ran over film and every coefficient was priced against the default CDFs instead of the frame's real tables. probe_screen_detect now sweeps the colour bound against a per-block variance floor on all five native gate rows (native_gate_clips, shared with the gate) at both the native crop and the 640x384 gate's scale. 16 colours / var > 16 / an eighth of the frame separates them: every non-screen row at most 9.6% of blocks, the OBS capture 17.9-23.6%.
Merge branch 'lane-av1realfilm' (b9e1cb62): the native BD gate scores two real films from the user's library; the testsrc2 rows are labelled "bars"Ahmet Kaan Gümüş · 1aa39c7
Merge branch 'lane-av1realfilm' (b9e1cb62): the native BD gate scores two real films from the user's library; the testsrc2 rows are labelled "bars" Real-film rows on this tree: film A (1920x768 crop) +69.5% vs libaom cpu-used 6 / +37.7% vs rav1e speed 6; film B (1920x1024 crop of the 2160p HDR source) +102.4% / +63.4%. The bar rows had read +15.6/-1.7 and +46.5/+18.8. Finding: screen_content classifies both films as screen on 48/48 frames (detector constants were swept on bars).
test(av1): the native BD gate scores two real AV1 films, and the testsrc2 rows say barsAhmet Kaan Gümüş · 5aa054a
test(av1): the native BD gate scores two real AV1 films, and the testsrc2 rows say bars The two 'film' rows of both BD gates are ffmpeg testsrc2 COLOUR BARS that scripts/gen-fixtures.sh generates, so every film BD number in this file was measured on a bar generator. They now print as 'bars 1080p' / 'bars 2160p' in the native gate, the 640x384 gate and the tpl denominator histogram, and the native gate gains two rows of real content: native crops out of the two AV1 sources the real-library manifest names (selected by codec and coded width, so no title and no home path enters the source), at a pinned seek on a moving, non-black window, SKIPped when the file is absent. Measured on this commit, 12 frames, four-quantizer ladder, three-way sample-exact: bars 1080p +15.6/-1.7, bars 2160p +46.5/+18.8, film A +69.5/+37.7, film B +102.4/+63.4, screen +51.0/-14.5 (vs libaom / vs rav1e). The real film rows are far off the frontier the bars rows report.
Merge branch 'lane-av1cap2' (74e32723): the LR-recode decode is replaced by a restoration replay on the final replay's planes; all-zero CDEF candidates keep their deblocked planes as the cacheAhmet Kaan Gümüş · 8497549
Merge branch 'lane-av1cap2' (74e32723): the LR-recode decode is replaced by a restoration replay on the final replay's planes; all-zero CDEF candidates keep their deblocked planes as the cache Byte-identical on all three gate clips x 4 q; 4K 4x2/8 threads 1.43 -> 1.51 fps (capture-decode bucket 152 -> 7 ms, plane copies 235 -> 204 ms). A per-unit CDEF scratch is not provably exact (write coverage is per-unit variance dependent) and stays deferred with its unblocker.
Merge branch 'lane-av1tpl3' (e9bf19f2): the propagating tpl map ships on, with the dependence ratio summed per 64x64 superblock and read through log2Ahmet Kaan Gümüş · 037459c
Merge branch 'lane-av1tpl3' (e9bf19f2): the propagating tpl map ships on, with the dependence ratio summed per 64x64 superblock and read through log2 Native table vs the one-frame map: +15.6/-1.7, +46.5/+18.8, +51.0/-14.5 (two rows down, third flat); pins 7173 / 26362. Finding on the way: the gate's two "film" clips are ffmpeg testsrc2 colour bars (90% of 16x16 cells have zero intra cost), so their columns measure a bar generator.
test(av1): lane logs -- the tpl shape sweep, the 640x384 record and the lane suiteAhmet Kaan Gümüş · e402cddBrowse files
feat(av1): the propagating tpl map ships on, formed per superblock and read through log2 betaAhmet Kaan Gümüş · 853042e
feat(av1): the propagating tpl map ships on, formed per superblock and read through log2 beta The map's denominator is a 16x16 cell's MAD from its own DC, and on the gate's synthetic film clips ~90% of all cells have a MAD of exactly zero, so a per-cell dependence ratio is a large number over 1 wherever the lookahead window leans on a flat area. Summing intra and mc_dep over the 64x64 superblock first (libaom's granularity) and reading the ratio through log2(1+r) (libaom's compressed beta) is the only arm that is down on two gate rows and flat on the third, so it becomes the default at k=0.5, window 8, p=0.5. EC_AV1_TPL_PROP=0 restores the one-frame map; EC_AV1_TPL_SB=0 / EC_AV1_TPL_LOG=0 take either half back out. Pins move.
feat(av1): three shape knobs for the propagating tpl map plus its denominator histogramAhmet Kaan Gümüş · d30c5a4
feat(av1): three shape knobs for the propagating tpl map plus its denominator histogram EC_AV1_TPL_FLOOR floors the per-cell intra denominator at a fraction of the frame mean, EC_AV1_TPL_SB forms the dependence ratio over the 64x64 superblock (libaom's granularity) and EC_AV1_TPL_LOG reads the ratio through log2(1+r). All three default off, so the shipped map's bytes are unchanged. tpl_intra_denominator_histogram prints the denominator's distribution on the two film gate clips.
perf(av1): a deblock-only filter candidate keeps its own planes as the deblock cacheAhmet Kaan Gümüş · 3a4b874
perf(av1): a deblock-only filter candidate keeps its own planes as the deblock cache An all-zero-strength CDEF writes no sample (apply_cdef's cdef_all_zero early return), so the planes a level-changing candidate just deblocked ARE its output: they become the cache directly instead of being copied into it, three ~6 MB copies less on every candidate of the deblocking half of the search. 4K 4x2/8 plane copies 235 -> 204 ms.
Merge branch 'lane-av1tpl2' (d6ef3909): a propagating multi-frame tpl map behind EC_AV1_TPL_PROP; the facade queue depth follows tpl_depthAhmet Kaan Gümüş · 7169554
Merge branch 'lane-av1tpl2' (d6ef3909): a propagating multi-frame tpl map behind EC_AV1_TPL_PROP; the facade queue depth follows tpl_depth The propagating map is non-flat (0.25..1.12 over 7680 cells) but loses on the 2160p film at every k/D/p, so the one-frame map stays the default and bytes are identical to main. OBMC / tx32 depth / compound var-tx re-judged on the best map: none flips.
test(av1): lane suite log -- 538 passed / 38 ignored on the lane headAhmet Kaan Gümüş · 4fe1bcbBrowse files
perf(av1): the loop-restoration stage replays the decoder's own kernel instead of decoding the re-coded tileAhmet Kaan Gümüş · 34dfd1e
perf(av1): the loop-restoration stage replays the decoder's own kernel instead of decoding the re-coded tile The chosen Wiener units used to be realised by DECODING the re-coded tile (5.6% of a 4K frame), purely to reach the restored reference frame. Loop restoration reads nothing of that tile beyond the per-unit filters the stage just chose, so the final replay now keeps its post-CDEF luma plus the TRUE post-deblock stripe-border rows (plane_snapshot, exactly the rows restoration::lr_src_row substitutes) and runs apply_loop_restoration_plane on them. Chroma restores nothing, so only luma moves; the wide-margin stash's luma is refreshed in place. Pinned by encoder::tests::filter_replay_final_matches_the_capture_decode, which now also decodes the re-coded tile and asserts picture, chroma and wide-margin luma identical (fired on 8 frames of the gate clip).
Merge branch 'lane-av1cap' (d9ec4a06): the filter stage's capture decode is replaced by one final replay of the winning parameters; CDEF reads the replay's deblock cacheAhmet Kaan Gümüş · 5bde5fc
Merge branch 'lane-av1cap' (d9ec4a06): the filter stage's capture decode is replaced by one final replay of the winning parameters; CDEF reads the replay's deblock cache Byte-identical on all three gate clips x 4 q; 4K 4x2/8 threads 1.34 -> 1.46 fps (12 threads 1.42 -> 1.53), 1080p capture decode 0 ms. Plane columns past the mi extent are pool garbage, so identity asserts compare the frame crop only. Per-trial stage timers now gated on stage_times().
measure(av1): the three deferred knobs do not flip under the propagating map eitherAhmet Kaan Gümüş · 017f0e6
measure(av1): the three deferred knobs do not flip under the propagating map either OBMC, the 32x32 inter tx-depth search and compound var-tx re-run once each on top of the best propagating arm: each is up on at least one film column and none is two-down-one-flat, same verdict the one-frame map gave them.
Merge branch 'lane-opusmode' (dda82f99): the tonality analysis runs once per API frame and only when read; detected-bandwidth clamp and leak boost wired, offAhmet Kaan Gümüş · 75c93b2
Merge branch 'lane-opusmode' (dda82f99): the tonality analysis runs once per API frame and only when read; detected-bandwidth clamp and leak boost wired, off 5.1 384k encode back from 100x to 126x realtime. On the 12-row gate the combined arm (bandwidth clamp + activity cut + tf boost k=1.25) improves 10 rows (geometric-mean err_ratio -18%), moves nik@96 the right way for the first time, and loses her@96 by 1.9%: it fails the per-row rule and passes the aggregate one. The mode/bandwidth decisions are provably unreachable at the gate's rates.
docs(opus): record the three lane-opusmode gate arms and their verdictsAhmet Kaan Gümüş · 325c499
docs(opus): record the three lane-opusmode gate arms and their verdicts
r1 (detected bandwidth) is byte-identical to shipped -- analysis.bandwidth
is 20 on every valid frame of every gate source, so the clamp cannot
fire. r2 (leak_boost) moves three rows by .001, all the wrong way.
r3 (detected bandwidth + activity cut + tf k=1.25) is the first arm to
move a blocking row the right way (nik@96 .985->.957): rejected per-row
(her@96 +.020, her@64 +.001), passes the aggregate rule (geometric mean
1.0218->0.8378, -18.0%; worst row +1.9%; corr within .0001).
Rows in lanes/opus-opusmode-r{1,2,3}.sweep.txt; every switch stays off.measure(av1): the propagating map ships OFF -- every arm is up on the 4K film rowAhmet Kaan Gümüş · 4655c5a
measure(av1): the propagating map ships OFF -- every arm is up on the 4K film row Nine (k, D) arms plus three of the sqrt-compressed form: the best of them (k=0.5, D=8, p=0.5) is 0.4 down on both film 1080p columns and 0.4/0.2 down on screen, but 0.2/0.3 UP on film 2160p, and the weakest arms that are nearly flat there give up the gain. No arm is at least flat on every row, so the default goes back to the one-frame area map -- byte-identical to what the gate's numbers were measured on, pins unmoved -- and the propagating map sits behind EC_AV1_TPL_PROP with its table.
wip(opus): analysis-driven consumers snapshot at the agent cap (may not compile)Ahmet Kaan Gümüş · 0216345Browse files
perf(av1): the filter replay's CDEF reads the deblock cache instead of copyingAhmet Kaan Gümüş · 1085bf2
perf(av1): the filter replay's CDEF reads the deblock cache instead of copying Every CDEF unit reads the pre-CDEF planes, so apply_cdef opened by copying all three (~19 MB at 4K) into a scratch. The replay already holds an untouched copy of exactly those planes -- the post-deblock cache the working planes were copied FROM -- so it hands them in and the copy does not happen. 4K/8 threads: cdef replay 162 -> 124 ms.
test(opus): print the analysis bandwidth histogram in the diagnostics testAhmet Kaan Gümüş · 38347b4
test(opus): print the analysis bandwidth histogram in the diagnostics test The detected-bandwidth clamp needs analysis.bandwidth <= 18 to do anything; on every gate source it is 20 on every valid frame (hein 20:1500, reell 20:1498, reelo 20:1499), which is why EC_OPUS_BW_DETECT reproduces the shipped rows byte for byte.
perf(av1): the filter stage's capture decode replaced by one more filter replayAhmet Kaan Gümüş · 2d19659
perf(av1): the filter stage's capture decode replaced by one more filter replay The stage decoded the coded tile a SECOND time after the search -- 10% of a 4K frame's encode -- only to reach the post-CDEF plane the loop restoration search reads and the picture the stage splices back. Both come out of one more replay of the winning deblock/CDEF parameters on the pre-filter planes the search already captured: the same two kernels, on the same input, in the same order. The re-coded tile still carries the cdef_idx literals, which the replay is handed directly. Also gates the per-trial stage timers on par::stage_times: two Instant::now() ran per transform trial and per mc::predict call in every cfg(test) build whether or not anyone read the breakdown.
feat(opus): wire the analysis's leakage boost and detected bandwidth, both offAhmet Kaan Gümüş · 7e58ade
feat(opus): wire the analysis's leakage boost and detected bandwidth, both off Two more consumers of the ported tonality analysis, each behind its own switch and each defaulting off until the 12-row library gate keeps it: - EC_OPUS_LEAK: celt_encoder.c:1226-1230, the per-band leak_boost added to the dynalloc follower in 1/64 dB units. - EC_OPUS_BW_DETECT: opus_encoder.c:1278-1305 maps analysis.bandwidth to an Opus bandwidth, :1652-1674 raises it to a rate-dependent floor and lets it lower (never raise) the automatic bandwidth. The prefilter's max_pitch_ratio (celt_encoder.c:1494) has no consumer -- this encoder has no pitch prefilter -- and the spread/tapset hysteresis is inside an #if 0 in libopus, so neither is wired.
Merge branch 'lane-av1speed2' (e65b15a0): zero-residual short-circuits and stack intra trial buffers, byte-exactAhmet Kaan Gümüş · 1cc5362
Merge branch 'lane-av1speed2' (e65b15a0): zero-residual short-circuits and stack intra trial buffers, byte-exact -1.30% instructions at 1080p, 4K 4x2/8 threads 1.37 -> 1.41 fps. Fresh threaded profile: tile search 72% (1080p) / 55% (4K), filter search 19% / 28%, capture decode 3.6% / 10.4%; top symbols write_coeffs, intra::predict, symbol_fixed, the forward transform family.
perf(opus): run the tonality analysis once per API frame, and only when readAhmet Kaan Gümüş · 54d9580
perf(opus): run the tonality analysis once per API frame, and only when read libopus's opus_encode_native runs run_analysis() on the API frame before the SILK/CELT mode decision, so the estimator belongs to Encoder, not to the CELT layer: hoisted, its result threaded into celt.encode at both call sites, state now advancing on SILK frames too. It also cost ~25% of the encoder while every one of its bitstream consumers ships off, so it now runs only when something reads it -- any consumer switch, EC_OPUS_ANALYSIS=1, or the new Encoder::set_analysis. 5.1 384k goes 100x -> 123x realtime, mono 96k 433x -> 557x; the music_prob oracle test is unchanged against libopus (hein .161/.155/ -.0875/.568, reell .991/.362/-.1680/.701, reelo .976/.312/-.1332/.735).
feat(av1): a propagating lookahead lambda map -- mc_dep chained back through a D-frame windowAhmet Kaan Gümüş · 65f3164
feat(av1): a propagating lookahead lambda map -- mc_dep chained back through a D-frame window The one-frame area map only knew how much of this frame the next one lands on; it was flat by construction. This walks a window of D source frames back to front, accumulating max(intra - inter, 0) + mc_dep along each cell's coarse motion chain, and turns the accumulated dependence into a per-16x16 lambda factor applied at 32x32 (the finest granularity at which the whole-vs-split RD comparison stays self-consistent). The streaming facade queues D-1 pictures so its window is the one the sequence path builds; both read tpl_depth(), so they cannot disagree.
Merge branch 'lane-opustonal' (974dbe05): libopus 1.6 tonality analysis ported whole; its bitstream consumers ship offAhmet Kaan Gümüş · bb5c616
Merge branch 'lane-opustonal' (974dbe05): libopus 1.6 tonality analysis ported whole; its bitstream consumers ship off music_prob / tonality / slope / activity match a patched libopus trace to 0.001 on the gate sources. The alloc_trim slope term, the VBR tonality boost and the activity cut are each rejected by the 12-row gate on the same two rows (her@96, nik@96) that block every Opus lever; they stay behind env switches.
fix(opus): keep the tonality analysis allocation-free in the steady-state encode loopAhmet Kaan Gümüş · 8a2183bBrowse files
docs(opus): record the four opustonal gate arms and their rejectionsAhmet Kaan Gümüş · 467beeaBrowse files
perf(av1): the intra trial path stops allocating and over-zeroing per modeAhmet Kaan Gümüş · 09d0739
perf(av1): the intra trial path stops allocating and over-zeroing per mode The per-block edges were a Vec each -- a malloc and a free per mode of every block -- and intra_predict_u8 zeroed a 32x32 scratch to predict a 4x4. Edges now land in the caller's stack buffers (an edge is at most 2 * BLOCK samples) and the prediction scratch is sized to the block. -0.47% instructions:u at 1920x1080 (61.741e9 -> 61.447e9, ABAB x2, enc_probe 4 frames q120). Byte pins green and the FNV sets over the three gate clips at q150/120/90/60 are unchanged.
perf(av1): skip the all-zero re-inflate and the pricer's table restoreAhmet Kaan Gümüş · 8e31689
perf(av1): skip the all-zero re-inflate and the pricer's table restore 60% of an inter stream's transform units carry no coefficient. Two places paid full price for them anyway: the square dequant/inverse entry point re-inflated the empty all-zero marker into side*side zeros (an allocate and memset per trial) only for the reconstruction sum to add them to the prediction, and coeff_bits restored the eight coefficient tables write_coeffs might touch (~800 bytes of copies) before pricing what is one all-zero flag and nothing else. Both stay byte-exact: clamp(p + 0) is p for a u8, and the restored txb_skip row the flag is priced against is the pristine row it was copied from. Byte pins and the enc_probe FNV sets over the three gate clips at q150/120/90/60 are identical.
Merge branch 'lane-av1facade' (02529d9e): the streaming facade holds one picture so its lookahead matches encode_sequence; facade bytes proven identical to the gate pathAhmet Kaan Gümüş · c2623dd
Merge branch 'lane-av1facade' (02529d9e): the streaming facade holds one picture so its lookahead matches encode_sequence; facade bytes proven identical to the gate path encode_frames returns the previous picture's packet, flush codes the last; encode() returns an empty first packet. EC_AV1_GATE_FACADE=1 runs the BD gate through the facade and prints the same numbers. Every caller must flush at end of stream.