1
0
mirror of https://github.com/JvanKatwijk/qt-dab.git synced 2025-10-06 08:12:40 +02:00
Files
SDR-DAB_Qt-DAB/sources/backend/backend-deconvolver.cpp

51 lines
1.9 KiB
C++
Raw Normal View History

2017-02-06 14:09:08 +01:00
#
/*
2025-01-06 20:47:14 +01:00
* Copyright (C) 2014 .. 2024
2017-02-06 14:09:08 +01:00
* Jan van Katwijk (J.vanKatwijk@gmail.com)
2017-07-17 08:33:17 +02:00
* Lazy Chair Computing
2017-02-06 14:09:08 +01:00
*
* This file is part of the Qt-DAB program
2020-05-11 16:09:46 +02:00
*
* Qt-DAB is free software; you can redistribute it and/or modify
2017-02-06 14:09:08 +01:00
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Qt-DAB is distributed in the hope that it will be useful,
2017-02-06 14:09:08 +01:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Qt-DAB; if not, write to the Free Software
2017-02-06 14:09:08 +01:00
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
2018-09-24 19:38:07 +02:00
#include "backend-deconvolver.h"
#include "eep-protection.h"
#include "uep-protection.h"
2017-02-06 14:09:08 +01:00
backendDeconvolver::backendDeconvolver (descriptorType *d,
uint8_t cpuSupport) {
2021-05-09 13:49:00 +02:00
if (d -> shortForm)
protectionHandler. reset (new uep_protection (d -> bitRate,
d -> protLevel,
cpuSupport));
2021-05-09 13:49:00 +02:00
else
protectionHandler. reset (new eep_protection (d -> bitRate,
d -> protLevel,
cpuSupport));
2018-09-24 19:38:07 +02:00
}
2017-02-06 14:09:08 +01:00
2019-07-08 23:30:45 +02:00
backendDeconvolver::~backendDeconvolver() {
2018-09-24 19:38:07 +02:00
}
2017-02-06 14:09:08 +01:00
2018-09-24 19:38:07 +02:00
void backendDeconvolver::deconvolve (int16_t *rawBits_in,
2019-11-10 15:46:23 +01:00
int32_t length,
uint8_t *outData) {
2018-09-24 19:38:07 +02:00
protectionHandler -> deconvolve (rawBits_in,
length,
outData);
}
2017-02-06 14:09:08 +01:00