From fa5f92318e7cc08ac872be18d47387cf83c23cd0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 21 Aug 2019 10:08:51 +0200 Subject: Add tist support for EDI output, take code from odr-mmbtools-common --- contrib/edi/PFT.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'contrib/edi/PFT.cpp') diff --git a/contrib/edi/PFT.cpp b/contrib/edi/PFT.cpp index 0692914..371d36f 100644 --- a/contrib/edi/PFT.cpp +++ b/contrib/edi/PFT.cpp @@ -14,34 +14,34 @@ */ /* - This file is part of ODR-DabMux. + This file is part of the ODR-mmbTools. - ODR-DabMux is free software: you can redistribute it and/or modify + 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. - ODR-DabMux is distributed in the hope that it will be useful, + 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 ODR-DabMux. If not, see . - */ + along with this program. If not, see . + */ #include "config.h" #include #include #include #include -#include +#include #include #include #include -#include -#include "edi/PFT.h" +#include "PFT.h" #include "crc.h" +#include "ReedSolomon.h" namespace edi { @@ -61,13 +61,15 @@ PFT::PFT(const configuration_t &conf) : m_verbose(conf.verbose) { if (m_k > 207) { + etiLog.level(warn) << + "EDI PFT: maximum chunk size is 207."; throw std::out_of_range("EDI PFT Chunk size too large."); } if (m_m > 5) { - clog << + etiLog.level(warn) << "EDI PFT: high number of recoverable fragments" - " may lead to large overhead" << endl; + " may lead to large overhead"; // See TS 102 821, 7.2.1 Known values, list entry for 'm' } } -- cgit v1.2.3