diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-10-03 18:14:02 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-10-03 18:14:02 +0200 |
commit | a61ce56def02ae5fbfa41c4a2ec0c2ba4b93ba14 (patch) | |
tree | 580eb69a839d85a6ccfe6132eb6af6cc8fea56f6 /src/ReedSolomon.cpp | |
parent | eec9fecdbf1d4e258243b95de3d6a114551b318b (diff) | |
download | dabmux-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/ReedSolomon.cpp')
-rw-r--r-- | src/ReedSolomon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ReedSolomon.cpp b/src/ReedSolomon.cpp index dbf95a8..ced9e1d 100644 --- a/src/ReedSolomon.cpp +++ b/src/ReedSolomon.cpp @@ -41,9 +41,9 @@ ReedSolomon::ReedSolomon(int N, int K, bool reverse, int gfpoly, int firstRoot, myN = N; myK = K; - int symsize = SYMSIZE; - int nroots = N - K; - int pad = ((1 << symsize) - 1) - N; + const int symsize = SYMSIZE; + const int nroots = N - K; // For EDI PFT, this must be 48 + const int pad = ((1 << symsize) - 1) - N; // is 255-N rsData = init_rs_char(symsize, gfpoly, firstRoot, primElem, nroots, pad); |