diff options
| author | Daniil Cherednik <[email protected]> | 2026-04-18 16:51:23 +0200 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2026-04-20 00:27:45 +0200 |
| commit | e784b79cfef682059cf5cc8cf9bed635e714c439 (patch) | |
| tree | ba213071aec875714cd7deb1d3f45ecaa676e37b /src/transient_spectral_upsampler.cpp | |
| parent | a958b27a43f0a436406dc51b942ca2f3a417e7a7 (diff) | |
atrac3: reimplement tonal encoding. Use flatness-based tonal extractionnew_psy
- Add shared CalcSpectralFlatnessPerBfu helper in atrac_psy_common
with BFU-table mapping.
- Implement ATRAC3 tonal extraction: compute MDCT energy, estimate
per-BFU flatness, extract up to 5-bin strongest tonal run in
low-flatness BFUs, and zero extracted bins in residual.
- Map extracted tonal bins into TTonalBlocks and integrate them into
bitstream coding.
- Update ATRAC3 bit allocation - reduce residual bits for BFUs with tonal
blocks, and increase tonal quantizer selection.
- Restore --notonal CLI option in main.cpp for A/B comparison.
Diffstat (limited to 'src/transient_spectral_upsampler.cpp')
0 files changed, 0 insertions, 0 deletions
