diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-24 22:59:03 +0100 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-24 22:59:03 +0100 |
commit | bddbeb98b3db8d435de6b2d10269640121475538 (patch) | |
tree | 1a791f5dd49b94ead503b9b77c6b9277f2701a89 /src/atrac/atrac3.h | |
parent | c73a0e24a0d5c510a65efbe5c2fbc7fd39a3c003 (diff) | |
parent | 74d6e04c21bddd435bd74c34dbe027b883772a76 (diff) | |
download | atracdenc-bddbeb98b3db8d435de6b2d10269640121475538.tar.gz |
Merge branch 'master' into at3plus-dev
Diffstat (limited to 'src/atrac/atrac3.h')
-rw-r--r-- | src/atrac/atrac3.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/atrac/atrac3.h b/src/atrac/atrac3.h index caf49f7..103f6fc 100644 --- a/src/atrac/atrac3.h +++ b/src/atrac/atrac3.h @@ -54,13 +54,13 @@ class TAtrac3Data { public: static constexpr uint8_t MaxBfus = 32; static constexpr uint32_t NumSamples = 1024; -//protected: + static const uint32_t MDCTSz = 512; - static double ScaleTable[64]; - static double EncodeWindow[256]; - static double DecodeWindow[256]; - static double GainLevel[16]; - static double GainInterpolation[31]; + static float ScaleTable[64]; + static float EncodeWindow[256]; + static float DecodeWindow[256]; + static float GainLevel[16]; + static float GainInterpolation[31]; static constexpr int32_t ExponentOffset = 4; static constexpr int32_t LocScale = 3; static constexpr int32_t LocSz = 1 << LocScale; @@ -68,7 +68,7 @@ public: static constexpr uint32_t NumSpecs = NumSamples; static const uint32_t frameSz = 152; - static constexpr double MaxQuant[8] = { + static constexpr float MaxQuant[8] = { 0.0, 1.5, 2.5, 3.5, 4.5, 7.5, 15.5, 31.5 }; @@ -248,6 +248,7 @@ public: typedef std::vector<TTonalVal> TTonalComponents; }; + struct TAtrac3EncoderSettings { TAtrac3EncoderSettings(uint32_t bitrate, bool noGainControll, bool noTonalComponents, uint8_t sourceChannels, uint32_t bfuIdxConst) |