Corrected decimation scaling for 8 bit samples so it fits other sample sizes range

pull/6/head
f4exb 2015-09-02 02:20:57 +02:00
rodzic 234fb61955
commit 3a6f2b5481
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -55,16 +55,16 @@ struct decimation_shifts<16, 12>
template<>
struct decimation_shifts<16, 8>
{
static const uint pre1 = 8;
static const uint pre2 = 7;
static const uint pre1 = 5;
static const uint pre2 = 4;
static const uint post2 = 0;
static const uint pre4 = 6;
static const uint pre4 = 3;
static const uint post4 = 0;
static const uint pre8 = 5;
static const uint pre8 = 2;
static const uint post8 = 0;
static const uint pre16 = 4;
static const uint pre16 = 1;
static const uint post16 = 0;
static const uint pre32 = 3;
static const uint pre32 = 0;
static const uint post32 = 0;
};