1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 13:51:47 -05:00

Added original half band FIR coefficients as comments

This commit is contained in:
f4exb 2016-10-30 10:15:47 +01:00
parent 0ef6f7d240
commit fb2346aba8
2 changed files with 40 additions and 1 deletions

View File

@ -16,6 +16,15 @@ const qint32 HBFIRFilterTraits<32>::hbCoeffs[8] = {
(qint32)( 0.0507185615622293764492845014046906726435 * (1 << hbShift)),
(qint32)(-0.0980159074728618323613105189906491432339 * (1 << hbShift)),
(qint32)( 0.3159417644358786247948955860920250415802 * (1 << hbShift)),
// (qint32)(-0.015956912844043127236437484839370881673 * (1 << hbShift)),
// (qint32)( 0.013023031678944928940522274274371739011 * (1 << hbShift)),
// (qint32)(-0.01866942273717486777684371190844103694 * (1 << hbShift)),
// (qint32)( 0.026550887571157304190005987720724078827 * (1 << hbShift)),
// (qint32)(-0.038350314277854319344740474662103224546 * (1 << hbShift)),
// (qint32)( 0.058429248652825838128421764849917963147 * (1 << hbShift)),
// (qint32)(-0.102889802028955756885153505209018476307 * (1 << hbShift)),
// (qint32)( 0.317237706405931241260276465254719369113 * (1 << hbShift))
};
const qint16 HBFIRFilterTraits<48>::hbMod[48+6] = {
@ -39,6 +48,19 @@ const qint32 HBFIRFilterTraits<48>::hbCoeffs[12] = {
(qint32)( 0.0576685041500848358242414803953579394147 * (1 << hbShift)),
(qint32)(-0.1024912545928038654086122960507054813206 * (1 << hbShift)),
(qint32)( 0.3173768238826674692454332671331940218806 * (1 << hbShift)),
// (qint32)(-0.004102576237611492253332112767338912818 * (1 << hbShift)),
// (qint32)( 0.003950551047979387886410762575906119309 * (1 << hbShift)),
// (qint32)(-0.005807875789391703583164350277456833282 * (1 << hbShift)),
// (qint32)( 0.00823497890520805998770814682075069868 * (1 << hbShift)),
// (qint32)(-0.011372226513199541059195851744334504474 * (1 << hbShift)),
// (qint32)( 0.015471557140973646315984524335362948477 * (1 << hbShift)),
// (qint32)(-0.020944996398689276484450516591095947661 * (1 << hbShift)),
// (qint32)( 0.028568078132034283034279553703527199104 * (1 << hbShift)),
// (qint32)(-0.040015143905614086738964374490024056286 * (1 << hbShift)),
// (qint32)( 0.059669519431831075095828964549582451582 * (1 << hbShift)),
// (qint32)(-0.103669138691865420076609893840213771909 * (1 << hbShift)),
// (qint32)( 0.317491986549921390015072120149852707982 * (1 << hbShift))
};
const qint16 HBFIRFilterTraits<64>::hbMod[64+6] = {
@ -66,6 +88,23 @@ const qint32 HBFIRFilterTraits<64>::hbCoeffs[16] = {
(qint32)( 0.0597215923200692666572564348825835622847 * (1 << hbShift)),
(qint32)(-0.1036982054813635201195864965484361164272 * (1 << hbShift)),
(qint32)( 0.3175014394028848885298543791577685624361 * (1 << hbShift)),
// (qint32)(-0.001114417441601693505720538368564120901 * (1 << hbShift)),
// (qint32)( 0.001268007827185253051302527005361753254 * (1 << hbShift)),
// (qint32)(-0.001959831378850490895410230152151598304 * (1 << hbShift)),
// (qint32)( 0.002878308307661380308073439948657323839 * (1 << hbShift)),
// (qint32)(-0.004071361818258721100571850826099762344 * (1 << hbShift)),
// (qint32)( 0.005597288494657440618973431867289036745 * (1 << hbShift)),
// (qint32)(-0.007532345003308904551886371336877346039 * (1 << hbShift)),
// (qint32)( 0.009980346844667375288961963519795972388 * (1 << hbShift)),
// (qint32)(-0.013092614174300500062830820979797863401 * (1 << hbShift)),
// (qint32)( 0.01710934914871829748417297878404497169 * (1 << hbShift)),
// (qint32)(-0.022443558692997273018576720460259821266 * (1 << hbShift)),
// (qint32)( 0.029875811511593811098386197500076377764 * (1 << hbShift)),
// (qint32)(-0.041086352085710403647667021687084343284 * (1 << hbShift)),
// (qint32)( 0.060465467462665789533104998554335907102 * (1 << hbShift)),
// (qint32)(-0.104159517495977321788203084906854201108 * (1 << hbShift)),
// (qint32)( 0.317657589850154464805598308885237202048 * (1 << hbShift)),
};
const qint16 HBFIRFilterTraits<80>::hbMod[80+6] = {

View File

@ -8,7 +8,7 @@
// uses Q1.14 format internally, input and output are S16
/*
* supported filter orders: 64, 48, 32
* supported filter orders: 80, 64, 48, 32
* any usage of another value will be prevented by compilation errors
*/
template<uint32_t HBFilterOrder>