aboutsummaryrefslogtreecommitdiffstats
path: root/src/atrac/atrac_scale.h
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2024-12-20 22:31:20 +0100
committerDaniil Cherednik <dan.cherednik@gmail.com>2024-12-21 16:30:07 +0100
commit74d6e04c21bddd435bd74c34dbe027b883772a76 (patch)
tree4221df9da5a17897296e5f7f841f01b1f6428c74 /src/atrac/atrac_scale.h
parent78649b2f5941e0649db960cafb2997b5ca432be1 (diff)
downloadatracdenc-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.h10
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 {