summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniil Cherednik <[email protected]>2026-04-18 16:51:23 +0200
committerDaniil Cherednik <[email protected]>2026-04-20 00:27:45 +0200
commite784b79cfef682059cf5cc8cf9bed635e714c439 (patch)
treeba213071aec875714cd7deb1d3f45ecaa676e37b /test
parenta958b27a43f0a436406dc51b942ca2f3a417e7a7 (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 'test')
-rw-r--r--test/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 8f92f68..481d228 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -19,6 +19,7 @@ set(atracdenc_ut
${CMAKE_SOURCE_DIR}/src/transient_detector_ut.cpp
${CMAKE_SOURCE_DIR}/src/transient_spectral_upsampler_ut.cpp
${CMAKE_SOURCE_DIR}/src/atrac/atrac_scale_ut.cpp
+ ${CMAKE_SOURCE_DIR}/src/atrac/atrac_psy_common_ut.cpp
)
add_executable(atracdenc_ut ${atracdenc_ut})