diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-02 17:29:59 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-02 17:29:59 +0200 |
commit | dcef7ddfced0ff2a1ea013b30db7022bb55b2b07 (patch) | |
tree | 45c454ebaef7c2c279f47cec0581d929146cb2fe /rsdecoder.h | |
parent | 8823ffb8e0cd34615f44e5d241030c57a7465153 (diff) | |
download | etisnoop-dcef7ddfced0ff2a1ea013b30db7022bb55b2b07.tar.gz etisnoop-dcef7ddfced0ff2a1ea013b30db7022bb55b2b07.tar.bz2 etisnoop-dcef7ddfced0ff2a1ea013b30db7022bb55b2b07.zip |
Replace CMake by autotools
Diffstat (limited to 'rsdecoder.h')
-rw-r--r-- | rsdecoder.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/rsdecoder.h b/rsdecoder.h deleted file mode 100644 index ca97c91..0000000 --- a/rsdecoder.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - Copyright (C) 2015 Stefan Pöschel - - Copyright (C) 2015 Matthias P. Braendli (http://www.opendigitalradio.org) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - 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 this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include <stdint.h> -#include <vector> - -extern "C" { -#include <fec.h> -} - -class RSDecoder { - private: - void *rs_handle; - uint8_t rs_packet[120]; - int corr_pos[10]; - public: - RSDecoder(); - ~RSDecoder(); - - /* Correct errors using reed-solomon decoder. - * Returns number of errors corrected, or -1 if some errors could not - * be corrected - */ - int DecodeSuperframe(std::vector<uint8_t> &sf, int subch_index); -}; - - |