diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-07-31 22:07:21 +0000 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-07-31 22:07:21 +0000 |
commit | 61c74a7dab606653ae82153786031b6a0260ec16 (patch) | |
tree | 8663519b21a95f3e7821b53832d2199b6698da74 /test | |
parent | f1c9056c40e22b6aea21da5281e469b93a334778 (diff) | |
download | atracdenc-61c74a7dab606653ae82153786031b6a0260ec16.tar.gz |
[AT3P] Add GHA related bitstream code
* borrow Huffman table from FFmpeg
* code (with ut) to pack frequency part of GHA block
* some related data structures
* bitstrem modification to write correct GHA block
* switch compile flag to use float data type
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3818b28..66218d8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,6 +3,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1) set (CMAKE_CXX_STANDARD 11) set (CMAKE_C_STANDARD 11) +include_directories( + "../src/lib" +) + if (ATDE_USE_FLOAT) add_compile_definitions(ATDE_USE_FLOAT) endif() @@ -52,6 +56,22 @@ target_link_libraries(at3plus_pqf_ut GTest::gtest_main ) +### + +set(at3plus_bitstream_ut + ${CMAKE_SOURCE_DIR}/src/atrac/at3p/at3p_bitstream_ut.cpp +) + +add_executable(at3plus_bitstream_ut ${at3plus_bitstream_ut}) + +target_link_libraries(at3plus_bitstream_ut + m + fft_impl + atracdenc_impl + GTest::gtest_main +) + enable_testing() add_test(ut atracdenc_ut) add_test(at3plus_pqf_ut at3plus_pqf_ut) +add_test(at3plus_bitstream_ut at3plus_bitstream_ut) |