Commits
Commits on
b53cc33182d9f5897754f28aff2b66ee22282d142026-08-23
docs(opus): err_map header names its own source tagAhmet Kaan Gümüş · b53cc33
docs(opus): err_map header names its own source tag The map test was generalised to any gate source (EC_ERRMAP_SRC/_KBPS/_TAG) but still printed a hardcoded "her@" header, so a reell or reelo map claimed to be her's. Header now uses the tag; module doc updated to match.
test(opus-reell/r3): error map generalised to any gate sourceAhmet Kaan Gümüş · 19ef3ae
test(opus-reell/r3): error map generalised to any gate source her_err_map_96k -> err_map_vs_libopus; EC_ERRMAP_SRC / EC_ERRMAP_KBPS / EC_ERRMAP_TAG select source, rate and output file, her@96 defaults kept.
Merge branch 'lane-opus-her': her@96 opus_compare error map, premise supersededAhmet Kaan Gümüş · f521fd8Browse files
docs(opus-her/r1): premise superseded by lane-opus-64; residual namedAhmet Kaan Gümüş · 9b54a5f
docs(opus-her/r1): premise superseded by lane-opus-64; residual named
Merge branch 'lane-h264rd3': bS derivation extracted, inter trial deblocking measured and rejectedAhmet Kaan Gümüş · ba7f553Browse files
refactor(h264rd/r3): extract decoder bS derivation; inter trial deblocking rejectedAhmet Kaan Gümüş · d3d7ad4
refactor(h264rd/r3): extract decoder bS derivation; inter trial deblocking rejected bs_side/bs_between extracted from boundary_strength (8.7.2.1 in one place); ssd_mb_deblocked parametrised by a bs closure, intra trials pass intra_bs. Output byte-identical to r2. The chartered change — derived per-edge bS in the inter cost4/cost8 trial — regressed the 720p clip in all three measured variants (+0.818/+0.794/+0.821 vs +0.827 dB BD-PSNR; obs flat): the trial's pre-filter neighbour aprons make weak inter strengths (bS 1/2) model noise. Reverted per charter; numbers in lanes/h264rd-r3.report.md.
Merge branch 'lane-h264rd2': deblock-aware intra 4x4 trial distortion + real-clip BD harnessAhmet Kaan Gümüş · 5208ad8Browse files
docs(h264rd/r2): lane report — deblock-aware intra trial, +0.03 dB film BDAhmet Kaan Gümüş · 9fc5978Browse files
feat(h264rd/r2): deblock-aware intra 4x4 trial distortionAhmet Kaan Gümüş · bb59e0b
feat(h264rd/r2): deblock-aware intra 4x4 trial distortion The transform_8x8 intra trial judged candidates by pre-filter SSD, which prices the 4x4 candidate as if the bS-3 edges its extra transforms create cost nothing under the loop filter every decoder runs. ssd_mb_deblocked copies the candidate macroblock with 4-sample left/top aprons into a scratch, filters it exactly as deblock_picture will - bS 4 on macroblock edges when a neighbour exists, bS 3 on internal edges, the 4/12 luma edges skipped for the 8x8 candidate as the decoder's internal() gate does, verticals before horizontals, this qp, zero offsets - and SSDs that instead. Chroma stays pre-filter (never 8x8-transformed, cannot separate candidates); the flag-off path keeps ssd_luma + rough bits untouched. Real clips, BD-PSNR flag-on vs flag-off q22/26/30/34: natural 720p film +0.796 -> +0.827 dB obs 1440p capture -0.007 -> -0.000 dB
test(h264rd/r2): real-clip BD-PSNR harness for transform_8x8Ahmet Kaan Gümüş · 04d77cb
test(h264rd/r2): real-clip BD-PSNR harness for transform_8x8 One #[ignore]d test in the existing encode.rs binary: EC_H264_CLIP names a file, ec-mp4 + the crate decoder yield the first 30 pictures 1 s apart, and a q22/26/30/34 sweep (gop 10, CABAC, full size) prints the flag-on vs flag-off BD-PSNR and 8x8 MB share. Asserts nothing: the number gates the lane, not the suite. Baselines on the two lane clips (post-3165e8c pricing): natural 720p film BD +0.796 dB, 8x8 share 13.5% obs 1440p capture BD -0.007 dB, 8x8 share 1.9%
Merge branch 'lane-opus-silkq4': libopus stereo SILK mid/side rate splitAhmet Kaan Gümüş · de1d687Browse files
Merge branch 'lane-opus-silkq': 12k divergence diagnostics (r1/r2)Ahmet Kaan Gümüş · 3e24efaBrowse files
feat(opus-silkq/r3): libopus reservoir decay + gain-step bound in SILK rate loopAhmet Kaan Gümüş · 18042b3
feat(opus-silkq/r3): libopus reservoir decay + gain-step bound in SILK rate loop Debt-only bit reservoir decayed over 500 ms, gain search bounded to +-9 steps around an EMA-carried operating point, 5 kbps target floor, mid-heavy stereo split. Hybrid CELT min bytes 8 -> 3 (16k packets no longer expand). Speech gate: 12k .8081 -> .8526, 16k .8606 -> .8646 at +3.3% rate (was +12.9%), 24k .9036 -> .9146, 32k .9210 -> .9391. Stereo-SILK 16k synthetic floor .35 -> .33 (regression named in test).
docs(opus-silkq/r1): voiced threshold sweep recorded; not the 12k mechanismAhmet Kaan Gümüş · 6d12ee1
docs(opus-silkq/r1): voiced threshold sweep recorded; not the 12k mechanism
wip(opus-silkq/r1): SILK decoder index oracle; ours-vs-libopus per-frame table for worst secondsAhmet Kaan Gümüş · 8eefeccBrowse files
wip(opus-silkq/r1): per-second SILK diagnostic; pitch-continuity variant (off, measured harmful)Ahmet Kaan Gümüş · 9ba7193Browse files
Merge branch 'lane-opus-mode': libopus mode/bandwidth selectorAhmet Kaan Gümüş · c2b907eBrowse files
feat(opus-mode/r1): libopus VoIP/Audio mode and bandwidth thresholdsAhmet Kaan Gümüş · bb2f32f
feat(opus-mode/r1): libopus VoIP/Audio mode and bandwidth thresholds Mode/bandwidth selection ported from opus_encoder.c (mode_thresholds blended by voice_est, voice/music bandwidth tables, SILK>WB -> hybrid, 40/60 ms cap). Speech gate rows are now all-auto with a MODE GATE; 4/4 rows pick the same mode as ffmpeg libopus on real speech (lanes/opus-mode-r1.sweep.txt).
Merge branch 'lane-opus-silk': SILK/speech-rate library gate vs libopus (instrumented r2)Ahmet Kaan Gümüş · 6df4861Browse files
test(opus-silk/r2): symmetric decode, lag assert, band-limited ref, ref modeAhmet Kaan Gümüş · 2417616Browse files
test(opus-silk/r1): SILK library gate vs libopus on real speechAhmet Kaan Gümüş · 11f9cfeBrowse files
Merge branch 'lane-opus-trim': continuous alloc_trim port rejected again on top of compute_vbr (record only)Ahmet Kaan Gümüş · 6a058a0Browse files
docs(opus-trim/r2): rejected continuous trim-value port — all 14 rows regress in both A (with tf term) and B (without)Ahmet Kaan Gümüş · 570e4f9Browse files
Merge branch 'lane-opus-vbr': libopus compute_vbr ported wholeAhmet Kaan Gümüş · 187c193
Merge branch 'lane-opus-vbr': libopus compute_vbr ported whole 14-row library gate: ours ahead of libopus on every row at equal size (reelm@64 +.0038 -> -.0007, hein@64 +.0022 -> -.0014); rate within -1%. TF boost kept x1 by measurement (report in lanes/opus-vbr-r1.report.md).
feat(opus-vbr/r1): keep TF boost x1 by measurement; lane report + 14-row sweepAhmet Kaan Gümüş · a31c8b1
feat(opus-vbr/r1): keep TF boost x1 by measurement; lane report + 14-row sweep
feat(opus-vbr/r1): lastCodedBands moves at most one band per frame (libopus)Ahmet Kaan Gümüş · eee0a69Browse files
feat(opus-vbr/r1): port libopus compute_vbr whole (stereo_saving, temporal VBR, tf x2, floor depth)Ahmet Kaan Gümüş · 567ea1dBrowse files
wip(opus-vbr/r1): stereo_saving/spec_avg state, dynalloc returns max_depthAhmet Kaan Gümüş · 27e5266Browse files
lanes(opus-trim/r1): record rejected libopus alloc_trim_analysis port (gate −.002..−.003 on 10/14 rows)Ahmet Kaan Gümüş · 730a563Browse files
feat(opus-int/r1): intensity band from libopus equiv_rate + hysteresis_decisionAhmet Kaan Gümüş · 9c017b0
feat(opus-int/r1): intensity band from libopus equiv_rate + hysteresis_decision Replaces the 1.0-era effective_rate ladder with the 1.3.1 formula and threshold/hysteresis tables, shared by the VBR target and the stereo decision so CBR frames get it too. 14-row gate corr-neutral (±.0001).
Merge branch 'lane-opus-sp': spreading_decision port + tf_analysis onAhmet Kaan Gümüş · 501c871Browse files
feat(opus-sp/r1): enable tf_analysis; lane report + 14-row sweepAhmet Kaan Gümüş · 187bef2
feat(opus-sp/r1): enable tf_analysis; lane report + 14-row sweep
feat(opus-sp/r1): port libopus spreading_decision (tonal/hf averages, tapset, spread_weight)Ahmet Kaan Gümüş · 7a1f515
feat(opus-sp/r1): port libopus spreading_decision (tonal/hf averages, tapset, spread_weight) Decoder-seen spread histogram on long frames, ours vs libopus: reelm [0,12,3442,739] vs [0,0,3303,910]; hein [1,20,3800,151] vs [0,0,3809,138] (was a constant SPREAD_NORMAL). Gate reelm,hein,her,reell: corr within .0001 of lane-opus-sb, reelm@64 err_ratio .69 -> .65.
lanes: restore opus-reell-r2.sweep.txt baseline (removed by a glob in lane-opus-sb)Ahmet Kaan Gümüş · e3d6c0eBrowse files
Merge branch 'lane-opus-sb': libopus dynalloc_analysis port (reelm/hein@64 gap -.0009)Ahmet Kaan Gümüş · dc2c028Browse files
docs(opus-sb/r1): report + 14-row sweep (all rows >= baseline -.0003)Ahmet Kaan Gümüş · aba8fb2Browse files
feat(opus-sb/r1): port libopus dynalloc_analysis; decoder diag exposes allocationAhmet Kaan Gümüş · 698943d
feat(opus-sb/r1): port libopus dynalloc_analysis; decoder diag exposes allocation The old second-difference spike heuristic boosted the top coded band (14.4-18.7 kHz) by ~220-260 1/8-bit per frame on reelm/hein@64k where libopus gives 3, and starved 240-3000 Hz on short-block frames. The port (follower/median masking over long-window energies, stereo cross-talk, width-scaled boost units, CVBR halving, 2/3 cap) brings the per-band boost table to within a few 1/8-bit of libopus. Gate (reelm,hein,her,reell): reelm@64 gap +.0046 -> +.0037, hein@64 +.0031 -> +.0022, no row loses more than .0003 corr, drops 0, rate within 5%. CeltDecDiag gains alloc_trim/pulses/fine_quant/intensity/dual_stereo/ coded_bands/balance/offsets; new ignored test short_block_bits_vs_libopus prints the per-band allocation ours vs libopus (lanes/opus-sb-r1.bits.txt).
Merge branch 'lane-opus-64': transient_analysis port (her@96 err_ratio 10.1→1.2)Ahmet Kaan Gümüş · 06a72f9Browse files
feat(opus-64/r5): ship transient_analysis port; reject tf_estimate consumers by measurementAhmet Kaan Gümüş · aa1dd3a
feat(opus-64/r5): ship transient_analysis port; reject tf_estimate consumers by measurement libopus VBR boost and trim terms from tf_estimate both regress reelm/hein@64 (dropouts, rate -1.8%); transient counts now match libopus within 1.5%, so the remaining 64k residue is short-block coding, not detection. Spectral test gains SWEEP_KBPS, her/reelm/hein sources and a decoder-seen transient count.
feat(opus-64/r4): paste tf_analysis port, gate OFFAhmet Kaan Gümüş · c1fe246
feat(opus-64/r4): paste tf_analysis port, gate OFF Port the libopus tf_analysis Viterbi search and float-mode transient_analysis from lanes/opus-64-r3.handoff.md (edits 1-6). tf_analysis is gated behind const TF_ANALYSIS: bool = false: the 2-row gate (reelm/hein @64k) showed both corr gaps grow and minsec drop vs the no-analysis baseline, so the search stays disabled. tf_res falls back to the no-analysis default. transient_analysis is replaced unconditionally (Edit 3); the new float-mode detector is the source of the baseline divergence (ON ~= OFF on the gate rows). cargo check clean; cargo test -p ec-opus --release 34+27 green; gate RATE+DROPOUT passed (ON and OFF). See lanes/opus-64-r4.report.md.
test(opus): parametrise the startup hop-energy and band-window diagnosticsAhmet Kaan Gümüş · 488aada
test(opus): parametrise the startup hop-energy and band-window diagnostics HOP_SRC/HOP_MS recentre reell_startup_hop_energies on any source and instant; WIN_CENTRE recentres spectral_divergence_vs_libopus's per-band window dump; 'her' joins its source list. Used to name the her@96 residue: a missed right-channel HF transient at 88.29 s coded as a long block.
wip(opus-64): r3 handoff — tf_analysis port, code ready to pasteAhmet Kaan Gümüş · 74c150a
wip(opus-64): r3 handoff — tf_analysis port, code ready to paste Third round to hit the tool cap before the first edit; the handoff carries the verified port with line numbers and borrow plan.