1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 04:03:30 -05:00

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

This commit is contained in:
f4exb 2015-09-02 02:20:57 +02:00
parent 234fb61955
commit 3a6f2b5481

View File

@ -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;
};