summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/PFT.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-03 18:14:02 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-03 18:14:02 +0200
commita61ce56def02ae5fbfa41c4a2ec0c2ba4b93ba14 (patch)
tree580eb69a839d85a6ccfe6132eb6af6cc8fea56f6 /src/dabOutput/edi/PFT.h
parenteec9fecdbf1d4e258243b95de3d6a114551b318b (diff)
downloaddabmux-a61ce56def02ae5fbfa41c4a2ec0c2ba4b93ba14.tar.gz
dabmux-a61ce56def02ae5fbfa41c4a2ec0c2ba4b93ba14.tar.bz2
dabmux-a61ce56def02ae5fbfa41c4a2ec0c2ba4b93ba14.zip
Improve PFT from EDI output
Mainly correct usage of Reed-Solomon and Fragmentation. Not proven to work yet.
Diffstat (limited to 'src/dabOutput/edi/PFT.h')
-rw-r--r--src/dabOutput/edi/PFT.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dabOutput/edi/PFT.h b/src/dabOutput/edi/PFT.h
index 02380ec..1d09c0b 100644
--- a/src/dabOutput/edi/PFT.h
+++ b/src/dabOutput/edi/PFT.h
@@ -40,7 +40,7 @@
#include "Log.h"
#include "ReedSolomon.h"
-typedef std::vector<uint8_t> RSPacket;
+typedef std::vector<uint8_t> RSBlock;
typedef std::vector<uint8_t> PFTFragment;
class PFT
@@ -54,7 +54,6 @@ class PFT
m_k(RSDataWordLength),
m_m(NumRecoverableFragments),
m_pseq(0),
- m_encoder(m_k + ParityBytes, m_k),
m_verbose(verbose)
{
if (m_k > 207) {
@@ -76,9 +75,9 @@ class PFT
std::vector< PFTFragment > Assemble(AFPacket af_packet);
// Apply Reed-Solomon FEC to the AF Packet
- RSPacket Protect(AFPacket af_packet);
+ RSBlock Protect(AFPacket af_packet);
- // Cut a RSPacket into several fragments that can be transmitted
+ // Cut a RSBlock into several fragments that can be transmitted
std::vector< std::vector<uint8_t> > ProtectAndFragment(AFPacket af_packet);
private:
@@ -89,8 +88,6 @@ class PFT
size_t m_num_chunks;
- ReedSolomon m_encoder;
-
bool m_verbose;
};