forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on be2d31f20667a69ec964f749b024256a7227cdad

Today

Merge branch 'simplify/u19' into simplify/w1bAhmet Kaan Gümüş · d8990c1
Merge branch 'simplify/u19' into simplify/w1b

# Conflicts:
#	Cargo.lock
Revert "ec-aac SBR: downsampled SBR (ext rate < 2*core, e.g. al_sbr_sr_48_2_fsaac48 ASC 11 90 56 e5 98) ran the 64-band doubling chain with band tables at the 48 kHz ext rate: ours 2048/AU and band-table errors (no sideinfo rows, ours 1001472 = cap at 489 AUs x 2048 vs ffmpeg 1148 x 1024). ffmpeg (aacsbr_template.c 1147/1683/1418): sbr->sample_rate = 2*core for tables, downsampled = ext_sample_rate < sbr->sample_rate -> 32-band synthesis with the decimated window (ds[n]=c[2n]), 32 output samples/slot. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (N=32, v 640, shift -0.5 matching our analysis phase; python replica of analysis->synth32 corr 0.995 at lag 289 vs 0.9967 for the 64-band pair), k2 clamped to 32, LFE bypass uses the same bank. Also QMF_WINDOW[384] and [512] had the wrong sign vs ffmpeg us/ds tables (ffmpeg flips at 385/513, mirror-symmetric with 128/256; ours at 384/512; table now equals ffmpeg's us and ds to 1e-10), pinned sum updated 81.46300943655164 -> 82.21187106118578. cargo check -p ec-aac --all-targets clean; tests not run"Ahmet Kaan Gümüş · b3f487f
Revert "ec-aac SBR: downsampled SBR (ext rate < 2*core, e.g. al_sbr_sr_48_2_fsaac48 ASC 11 90 56 e5 98) ran the 64-band doubling chain with band tables at the 48 kHz ext rate: ours 2048/AU and band-table errors (no sideinfo rows, ours 1001472 = cap at 489 AUs x 2048 vs ffmpeg 1148 x 1024). ffmpeg (aacsbr_template.c 1147/1683/1418): sbr->sample_rate = 2*core for tables, downsampled = ext_sample_rate < sbr->sample_rate -> 32-band synthesis with the decimated window (ds[n]=c[2n]), 32 output samples/slot. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (N=32, v 640, shift -0.5 matching our analysis phase; python replica of analysis->synth32 corr 0.995 at lag 289 vs 0.9967 for the 64-band pair), k2 clamped to 32, LFE bypass uses the same bank. Also QMF_WINDOW[384] and [512] had the wrong sign vs ffmpeg us/ds tables (ffmpeg flips at 385/513, mirror-symmetric with 128/256; ours at 384/512; table now equals ffmpeg's us and ds to 1e-10), pinned sum updated 81.46300943655164 -> 82.21187106118578. cargo check -p ec-aac --all-targets clean; tests not run"

This reverts commit d8db6262615fcd98c2b226b0357869639a98f115.
Revert "ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets clean"Ahmet Kaan Gümüş · 0c091c3
Revert "ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets clean"

This reverts commit 1fd0b3979d821b1c317b17fc782b541cb4daf1bc.
ec-aac test: lag-search window skipped digital silence; own-core reference interpolates linearly. Root cause (measured with pinned ffmpeg, f32le): decoder timing is right, instruments were not. (1) ps_06 is 4x53 AUs; AUs 53-55 of ffmpeg output are digital silence (rms 0 over [108544,112640)). With the now-correct 2048/AU length (434176/ch, = ffmpeg) every lag search anchored at len/4 = 108544 lands exactly there, so corr is noise and the winner sits at the +/-100000 / +/-20000 bound (sbr_real_library_matches_reference, per_au_low_band_divergence, sbr_header_feature_table, synthetic_heaac_matrix ps_06). On main the shorter output moved the window to loud audio, hence the earlier pass. window_start() (single source for 4 copies) advances to the first 4x1024 block louder than 1e-4 of mean power in both signals, unchanged when the base block is loud. (2) full_chain_low_band ps_04 corr 0.964 at lag -961: nearest-neighbor 2x of the core carries a half-sample error; hold-resampling ffmpeg's own ps_04 output gives at best 0.9578 for any decoder, linear interpolation 0.9936 (cm_48_2: 0.9985 -> 0.9999, matches observed 0.9987). upsample_2x is linear; threshold stays 0.99. Also ch0 of a PS stream is not the mono core (ffmpeg ps_06 corr(L,L+R) 0.937 over 10 s), so the comparison stops where the channels first differ (mono_prefix). Decoder evidence: ours vs ffmpeg ps_04 lag 0 corr 1.000000, 52/53 windows exactly 1.0 (1 silent), len 217088 = 106*2048, pre-header AUs included; ps_06 headers only from AU 106. cargo check -p ec-aac --all-targets clean; tests not runAhmet Kaan Gümüş · a62782eBrowse files
Merge branch 'simplify/c-ac3'Ahmet Kaan Gümüş · 5fa31c7Browse files
Merge branch 'simplify/c-truehd'Ahmet Kaan Gümüş · 35cac3aBrowse files