Commits
Commits on
38347b4d307e9eca2070e10c098dad41d71db7df2026-09-06
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.
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.
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).
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
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.
test(opus): pin the ported analysis against a patched-libopus trace (music/tonality/slope/activity means)Ahmet Kaan Gümüş · 8d3a184Browse files
feat(av1): the streaming facade codes what the gate measures -- one frame of lookahead delayAhmet Kaan Gümüş · 921a9a8
feat(av1): the streaming facade codes what the gate measures -- one frame of lookahead delay The facade passed lookahead=None, so every inter frame the editor's export coded missed the per-superblock temporal lambda map the BD gate's numbers were measured with. encode_frames now holds a picture back and codes it with the NEXT one as its lookahead, exactly as encode_sequence does; flush codes the last one. encode() keeps its Result<Packet> shape, returning the previous picture's packet (empty data on the first call). A new gate pins the facade's bytes identical to encode_sequence's over 12 frames at the gate's own size, and EC_AV1_GATE_FACADE=1 runs the BD ladder through the facade.
Merge branch 'lane-av1tpl' (73bc3ef9): per-superblock temporal lambda from a one-frame lookahead referenced-ness map (k=0.5)Ahmet Kaan Gümüş · c72674b
Merge branch 'lane-av1tpl' (73bc3ef9): per-superblock temporal lambda from a one-frame lookahead referenced-ness map (k=0.5) Native crops: film 1080p +16.2/-1.1 -> +15.9/-1.3, film 2160p +46.6/+18.8 -> +46.5/+18.7, screen +51.3/-14.4 -> +51.2/-14.4; lookahead 1.5 ms per 1920x1024 frame. The map is flat (0.83..1.27), so the effect is small and it does not unlock OBMC / comp var-tx / 32x32 tx depth. The streaming facade passes no lookahead yet.
feat(opus): port libopus's tonality analysis (MDCT features + MLP music_prob), consumers behind switchesAhmet Kaan Gümüş · 2d08e3d
feat(opus): port libopus's tonality analysis (MDCT features + MLP music_prob), consumers behind switches The analysis runs on the undelayed API frame exactly where opus_encode does; alloc_trim's tonality_slope term and compute_vbr's tonality/activity terms are wired but default off pending their gate rows. music_prob separates the gate's speech source (hein 0.161) from its music sources (reell 0.991, reelo 0.976).
test(av1): re-pin the encoder's own streams -- per-superblock lambda moves every inter RD decision (7139->7128, 26461->26353 bytes)Ahmet Kaan Gümüş · 0bc6b65Browse files
Merge branch 'lane-opusx2' (d74bb155): libopus input alignment (Fs/250 CELT delay + dc_reject) behind a knob, off; lag tests read the encoder's look-aheadAhmet Kaan Gümüş · c299799
Merge branch 'lane-opusx2' (d74bb155): libopus input alignment (Fs/250 CELT delay + dc_reject) behind a knob, off; lag tests read the encoder's look-ahead The aligned analysis matches libopus 1.6 to 0.0006 log2 per band on the attack frame, but the 12-row gate keeps the same seven rows worse under every constant re-tune (two-pass coarse energy, alloc_trim 1.3 -- fourth rejection -- tf boost), so the default path stays byte-identical to the shipped rows. Next lever: the tonality analysis libopus feeds those decisions with.
test(opus): the oracle Ogg carries the encoder's pre-skip, and the combined aligned arm's rowAhmet Kaan Gümüş · 1387bbe
test(opus): the oracle Ogg carries the encoder's pre-skip, and the combined aligned arm's row oracle_decode wrote a 120-sample pre-skip whatever the stream's delay was, so comparing it sample-for-sample against our own decode at the advertised offset was 192 samples out under the alignment (hybrid_fb_roundtrip: oracle corr 0.028). It takes the pre-skip from the caller now; the hybrid site passes the encoder's look_ahead, and all seven rewritten lag tests pass with EC_OPUS_ALIGN=1 as well as with the default. r7 (two-pass coarse energy + tf boost k=1.25 on the aligned tree) is the best combined arm and still leaves the same seven rows worse; its row is in the table at set_libopus_input_alignment.
feat(av1): the temporal lambda weighting ships on at strength 0.5 -- native BD down on five of six columns, control run byte-identical to the pre-lane baselineAhmet Kaan Gümüş · 0e1d650Browse files
feat(opus): EC_OPUS_ALIGN=1 turns the libopus input alignment on process-wideAhmet Kaan Gümüş · 28054d0
feat(opus): EC_OPUS_ALIGN=1 turns the libopus input alignment on process-wide The knob is otherwise API-only, so the gate could not sweep it; this is how the rows recorded at set_libopus_input_alignment were produced.
lanes(opus): restore the gate scratch sweep file the runs overwroteAhmet Kaan Gümüş · 247d2f4Browse files
wip(opus): aligned-spectrum re-sweep snapshot at the agent capAhmet Kaan Gümüş · d5ed044Browse files
feat(opus): the libopus input alignment ships behind a knob, off, with its gate tablesAhmet Kaan Gümüş · 02f91a2
feat(opus): the libopus input alignment ships behind a knob, off, with its gate tables
set_libopus_input_alignment(true) feeds the CELT layer the input delayed by
delay_compensation = Fs/250 and runs libopus's 3 Hz dc_reject on every frame
first; look_ahead and the hybrid SILK delay follow it (120 -> 312). The
alignment is exact: on the reell attack frame all eight low bands land within
.0006 of libopus (unaligned: .06-.21 apart).
It defaults OFF because the 12-row library gate rejects it and the constants
fitted on the misaligned spectrum do not explain the loss: delay only is 7
better / 5 worse, delay+dc_reject 5/7, and two-pass coarse energy, the
continuous 1.3 alloc_trim and tf boost k=1.25/1.5 each leave the SAME seven
rows worse (nik@64/96, her@96, dl8a@64/96, hein@64/96). Tables at the setter,
rows in lanes/opus-opusx2-r{1..5}.sweep.txt.
A conformance test drives the knob end to end: with it on the round trip
correlates at the advertised 312 and worse at 120.feat(av1): a one-frame lookahead builds a per-superblock lambda weight from how much of a frame the next one referencesAhmet Kaan Gümüş · 9b24d77Browse files
Merge branch 'lane-av1txdepth' (75a083aa): the 32x32 inter tx-depth search and compound var-tx rebuilt behind knobsAhmet Kaan Gümüş · 12f1dab
Merge branch 'lane-av1txdepth' (75a083aa): the 32x32 inter tx-depth search and compound var-tx rebuilt behind knobs Both re-judged at lambda 0.05 on the native table and both still lose (32x32 split wins 62-71% of blocks yet costs ladder bytes; the pricer puts its units within 1.4% of written bits, so it is not mis-pricing). Default encoder byte-identical; EC_AV1_TX32_DEPTH / EC_AV1_COMP_VARTX.
test(av1): re-judge both var-tx rebuilds at the halved rate weight -- neither keepsAhmet Kaan Gümüş · 8137f07
test(av1): re-judge both var-tx rebuilds at the halved rate weight -- neither keeps 32x32 tx-depth search (EC_AV1_TX32_DEPTH): native film 1080p +16.6/-0.5, 2160p +46.6/+18.8, screen +50.9/-14.3 against +16.2/-1.1, +46.6/+18.8, +51.3/-14.4 off. Fires on 53-71% of 32x32 blocks and the pricer census clears the split units (Luma16Inter within 1.4% from two non-zeros up, its zero bucket +30.1% i.e. biased against splitting), so the loss is ladder bytes, not blindness or mis-pricing. Compound var-tx at the leaves (EC_AV1_COMP_VARTX): +16.0/-1.1, +46.6/+18.8, +51.4/-14.4 -- one row 0.2 down, two flat, short of the keep rule. Both knobs stay off; measurements recorded at their call sites.
feat(av1): rebuild the 32x32 inter tx-depth search and the compound var-tx trial set behind knobsAhmet Kaan Gümüş · 7d0a80d
feat(av1): rebuild the 32x32 inter tx-depth search and the compound var-tx trial set behind knobs Both were measured and removed at LAMBDA_SCALE 0.1; the lambda lane halved the rate weight, so they need rebuilding to be re-judged. commit_inter_luma now takes an optional second reference (mc_trial_compound predicts each half-side unit from both), and search_inter_block routes its 32x32 winner through it instead of coding tx_depth 0 blind. EC_AV1_TX32_DEPTH and EC_AV1_COMP_VARTX, both off; the var-tx census is keyed by block class.
Merge branch 'lane-av1rejudge' (968a8c58): every tool rejected at lambda 0.1 re-judged at 0.05 -- local warp ships on, LEAF_SECOND_NEW_MARGIN 0.8 -> 1.2Ahmet Kaan Gümüş · 4cfdfb5
Merge branch 'lane-av1rejudge' (968a8c58): every tool rejected at lambda 0.1 re-judged at 0.05 -- local warp ships on, LEAF_SECOND_NEW_MARGIN 0.8 -> 1.2 Native crops: film 1080p +17.0/-0.3 -> +16.2/-1.1, film 2160p +47.0/+19.2 -> +46.6/+18.8, screen +51.6/-14.2 -> +51.3/-14.4 (vs libaom / vs rav1e); 640x384 +70.4/+85.3/+48.5. OBMC, split threshold, NEAR_NEAR, pyramid arms, chroma top-K re-measured and left off with their tables.
feat(av1): local warp on by default and a looser second-reference margin, re-judged at the new rate weightAhmet Kaan Gümüş · 70b0f42
feat(av1): local warp on by default and a looser second-reference margin, re-judged at the new rate weight Halving LAMBDA_SCALE re-opened every decision constant taken at the old weight. Re-measured on the native gate, one run per arm: - local warp (EC_AV1_WARP) KEPT ON: +16.7/-0.5, +47.0/+19.1, +51.3/-14.3 against the base's +17.0/-0.3, +47.0/+19.2, +51.6/-14.2 -- two rows down on both columns, one flat. Fires on 5.4/3.3/3.3% of motion_mode blocks; clean under EC_COMP_MISMATCH=1 and under EC_AV1_TILES=2:2. - LEAF_SECOND_NEW_MARGIN 0.8 -> 1.2, the floor of a re-swept bowl (0.6/0.8/1.2/1.6/never = +16.9/+16.7/+16.2/+16.4/+16.4 on the 1080p film), for ~10% encoder wall on the film clips. - OBMC, SPLIT_RD_THRESHOLD, EXTRA_NEW_SKIP_MARGIN, COMP_NEARNEAR, the coding pyramid and CHROMA_TOP_K re-measured and left where they were, each with its new table at its decision site. Native, defaults: +16.2/-1.1, +46.6/+18.8, +51.3/-14.4.
feat(opus): libopus dc_reject on the API input, and lag-dependent tests read look_aheadAhmet Kaan Gümüş · 0151578
feat(opus): libopus dc_reject on the API input, and lag-dependent tests read look_ahead The CELT input delay is back (revert of the revert): the analysis window now sits where libopus's does. On top of it, opus_encoder.c's dc_reject -- a 3 Hz one-pole (coef = 6.3*cutoff/Fs, y = x - m, m = coef*x + (1-coef)*m, state per channel across frames) -- runs once on the API input before both layers, the way libopus filters into pcm_buf that silk_Encode and celt_encode_with_ec both read. libopus takes hp_cutoff instead for VOIP; not ported. The seven tests that compared at a hardcoded 120-sample lag now read the encoder's advertised look_ahead for the frame size they used, so they follow the layer's real delay: delayed_corr takes it as an argument, the Ogg pre-skip and the duration expectation come from look_ahead, and the hybrid lag window is centred on it. MultistreamEncoder grew look_ahead for the 5.1 file. Sweep knobs for the re-tune on the aligned spectrum: EC_OPUS_TWO_PASS, EC_OPUS_TRIM13 (the continuous 1.3 alloc_trim form).
Revert "revert(opus): drop the Fs/250 CELT input delay, keep the EC_OPUS_X_DEBUG bisect"Ahmet Kaan Gümüş · b1e155b
Revert "revert(opus): drop the Fs/250 CELT input delay, keep the EC_OPUS_X_DEBUG bisect" This reverts commit 901c6ac3a87baf445fcdc07171b4cd49cf19ef93.
Merge branch 'lane-opusx' (901c6ac3): stage-by-stage CELT analysis instrument; the 192-sample input delay measured exact and gate-rejectedAhmet Kaan Gümüş · 682c080
Merge branch 'lane-opusx' (901c6ac3): stage-by-stage CELT analysis instrument; the 192-sample input delay measured exact and gate-rejected The first stage where our CELT differs from libopus is the input window: libopus buffers delay_compensation = Fs/250 before celt_encode_with_ec; ec-opus starts at the frame boundary. Matching it makes the spectrum agree to 0.011 log2 per band, but the 12-row gate loses 5 rows because later constants were tuned against the misaligned spectrum; reverted in the lane, the re-sweep is the follow-up.
revert(opus): drop the Fs/250 CELT input delay, keep the EC_OPUS_X_DEBUG bisectAhmet Kaan Gümüş · 55e042f
revert(opus): drop the Fs/250 CELT input delay, keep the EC_OPUS_X_DEBUG bisect The delay is exact -- it puts our analysis window where libopus's is and brings the whole spectrum to within .011 log2 of libopus on a steady frame -- but the 12-row library gate rejects it (5 rows worse on err_ratio, lanes/opus-opusx-r1.sweep.txt), and it costs the CELT layer 4 ms of algorithmic delay (look_ahead 120 -> 312). Reverted; the measurement stays in the two reverted commits and in the sweep file. What survives: EC_OPUS_X_DEBUG, which prints the pre-emphasised window, freq, bandE, bandLogE and sum|X| so the same bisect can be re-run. Note for anyone comparing frame N of ours against frame N of libopus: the two windows cover DIFFERENT samples (ours starts at the frame boundary, libopus 192 samples earlier), so any such comparison is invalid until the two are aligned.
test(opus): the 12-row gate rows for the Fs/250 CELT input delay, and the alignment constants it movesAhmet Kaan Gümüş · 1af3439
test(opus): the 12-row gate rows for the Fs/250 CELT input delay, and the alignment constants it moves Gate (lanes/opus-opusx-r1.sweep.txt) vs lanes/opus-opustr2-r1.sweep.txt: err_ratio better on 7 rows (reell@64 2.697->1.916, reell@96 4.499->3.900, reelo@64 1.510->1.287, reelo@96 .940->.861, her@64 1.103->.980, dl8a@64 .552->.498, dl8a@96 .374->.361) and WORSE on 5 (nik@64 .708->.800, nik@96 .985->1.763, her@96 1.051->1.292, hein@64 .853->.980, hein@96 .528->1.602); corr_ours never worse by more than .0001, better on five rows; rate within .5%, drops 0. The KEEP rule (err_ratio not worse on any row) therefore REJECTS it. look_ahead for a CELT frame moves 120 -> 312, so the unit tests and the hybrid click tolerance move with it. Five conformance tests still compare at a hardcoded 120-sample lag and fail; they are listed in the lane report rather than rewritten, because the change does not ship.
feat(opus): feed the CELT layer the input delayed by Fs/250 like libopusAhmet Kaan Gümüş · 5d7f93b
feat(opus): feed the CELT layer the input delayed by Fs/250 like libopus The first quantity that differs between our CELT analysis chain and libopus 1.6 on the same PCM is not a transform or a table: it is which samples the frame's analysis window covers. libopus buffers delay_compensation = Fs/250 (192 samples at 48 kHz) in opus_encoder.c and hands celt_encode_with_ec that delayed stream, so its MDCT window sits 4 ms behind the API frame; ours started at the frame boundary. Measured on the reell attack frame (frame 2, 20 ms, LM=3, transient): sum|X| 55.29 -> 46.20 against libopus's 46.23, band log-energies 4.349 3.049 3.876 3.670 3.986 4.892 4.797 2.437 -> 3.516 4.003 3.271 4.594 1.143 4.273 4.759 3.718 against libopus's 3.439 4.005 3.260 4.595 1.179 4.277 4.758 3.717. On a steady frame (frame 3) sum|X| 85.80 -> 87.43 against 87.42 and every band lands within 0.011 log2 of libopus (was 0.06-0.21 apart). EC_OPUS_X_DEBUG prints the chain stage by stage (pre-emphasis window, freq, bandE, bandLogE, normalised X) for the same bisect. The layer's algorithmic delay grows by 192 samples: look_ahead() for a CELT frame is 312, not 120, and the hybrid path's SILK delay follows it.
Merge branch 'lane-opustr2' (eee09948): the CVBR tf boost as a swept term (no point keeps), libopus 1.6 tf probeAhmet Kaan Gümüş · 5811863
Merge branch 'lane-opustr2' (eee09948): the CVBR tf boost as a swept term (no point keeps), libopus 1.6 tf probe Twelve gate runs over k/offset/gating: the nearest miss (k=1.25) beats libopus on 10 of 12 rows and loses her@96 by 0.021, so the default term is unchanged. The reell tf_select tie is not a tf bug: against a libopus-linked probe on the same PCM the first differing quantity is the CELT spectrum itself (sum|X| 55.3 vs 46.2 on the attack frame).
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.
perf(opus): tf boost swept as a term -- 12 gate runs, no point keeps, k=1.25 is the nearest missAhmet Kaan Gümüş · d1d2929
perf(opus): tf boost swept as a term -- 12 gate runs, no point keeps, k=1.25 is the nearest miss
k in {1.25,1.5,2}, offset in {.04,.044,.06,.08}, the transient-flag gate
and a tf_estimate threshold gate, each on the 12-row library gate. No
point passes the keep rule. k=1.25 on every frame (r8) costs only
her@64 +.001 / her@96 +.021 err_ratio with corr no worse than -.0005 and
buys reell@64 2.697->1.440, reell@96 4.499->2.516, hein@64 .853->.302; the
reell gain lives entirely on frames with tf_estimate >= 0.6, and so does
her@96's loss, so no gate built from the transient analysis separates
them. Default term unchanged; the whole table is at the decision site.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).
sweep(opus): CVBR tf-boost k/offset/gate grid, 8 twelve-row library gate runsAhmet Kaan Gümüş · 7a68890
sweep(opus): CVBR tf-boost k/offset/gate grid, 8 twelve-row library gate runs
r1 baseline (k=1, off=.044) reproduces the lane's base rows exactly. The
grid: k in {1.25,1.5,2} at off=.04/.044, off in {.04,.06,.08} at k=1.5,
and the transient-flag gate at k in {1.5,2}. Adds an EC_OPUS_TF_THRESH
knob so the boost can be restricted to frames above a tf_estimate.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.
Merge branch 'lane-av1obmc' (5ea7a530): motion_mode syntax and an OBMC candidate, behind EC_AV1_OBMCAhmet Kaan Gümüş · c9bed9a
Merge branch 'lane-av1obmc' (5ea7a530): motion_mode syntax and an OBMC candidate, behind EC_AV1_OBMC OBMC for the 32x32 single-reference winner (decoder obmc_plan/obmc_run reused, 0 mismatches) does not keep at native (+18.2/+0.9, +47.3/+19.2, +59.1/-10.0 vs +18.0/+0.7, +47.3/+19.2, +59.4/-10.0), so the header bit and the candidate follow the knob; default streams byte-identical.
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.