diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-20 22:31:20 +0100 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-21 16:30:07 +0100 |
commit | 74d6e04c21bddd435bd74c34dbe027b883772a76 (patch) | |
tree | 4221df9da5a17897296e5f7f841f01b1f6428c74 /src/atrac/atrac_scale.h | |
parent | 78649b2f5941e0649db960cafb2997b5ca432be1 (diff) | |
download | atracdenc-74d6e04c21bddd435bd74c34dbe027b883772a76.tar.gz |
[refactoring] Get rid of TFloat parameter. Use float.
Diffstat (limited to 'src/atrac/atrac_scale.h')
-rw-r--r-- | src/atrac/atrac_scale.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/atrac/atrac_scale.h b/src/atrac/atrac_scale.h index 6cea7a9..059360d 100644 --- a/src/atrac/atrac_scale.h +++ b/src/atrac/atrac_scale.h @@ -30,19 +30,19 @@ namespace NAtracDEnc { struct TScaledBlock { TScaledBlock(uint8_t sfi) : ScaleFactorIndex(sfi) {} /* const */ uint8_t ScaleFactorIndex = 0; - std::vector<TFloat> Values; - TFloat MaxEnergy; + std::vector<float> Values; + float MaxEnergy; }; class TBlockSize; template <class TBaseData> class TScaler { - std::map<TFloat, uint8_t> ScaleIndex; + std::map<float, uint8_t> ScaleIndex; public: TScaler(); - TScaledBlock Scale(const TFloat* in, uint16_t len); - std::vector<TScaledBlock> ScaleFrame(const std::vector<TFloat>& specs, const TBlockSize& blockSize); + TScaledBlock Scale(const float* in, uint16_t len); + std::vector<TScaledBlock> ScaleFrame(const std::vector<float>& specs, const TBlockSize& blockSize); }; class TBlockSize { |