diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-08-06 00:28:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-10-17 01:08:53 +0300 |
commit | 43e508b0b607054d2a720e8d9c3a11947d6f798d (patch) | |
tree | c9d70e031a21ec9dcf45ab1d18727f267724c30f /src/util.h | |
parent | fcb5986d9d21d923db2480be5089168fc1d1fcd2 (diff) | |
download | atracdenc-43e508b0b607054d2a720e8d9c3a11947d6f798d.tar.gz |
Simplest gain control - scale first part of frame if the attack transient was detected
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -62,12 +62,6 @@ inline uint16_t GetFirstSetBit(uint32_t x) { } template<class T> -inline uint16_t Log2FloatToIdx(T x, uint16_t shift) { - T t = x * shift; - return GetFirstSetBit(std::trunc(t)); -} - -template<class T> inline T CalcMedian(T* in, uint32_t len) { std::vector<T> tmp(in, in+len); std::sort(tmp.begin(), tmp.end()); |