diff options
author | Ron Economos <w6rz@comcast.net> | 2019-01-16 23:58:15 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-01-17 18:14:57 -0800 |
commit | 0ad2c261ae3ed86f740c72fc223ec6fb3b0d1e7c (patch) | |
tree | de9db67b1e99909d494b6ed81038a4db4d4f328d /gr-dtv | |
parent | f87e0afacd2fa4cb251115c316dc7945d43df523 (diff) |
dtv: Move VL-SNR puncturing from before to after differential encoding.
Diffstat (limited to 'gr-dtv')
-rw-r--r-- | gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc b/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc index e907bbb499..b7e1fe40ef 100644 --- a/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc +++ b/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2015,2016 Free Software Foundation, Inc. + * Copyright 2015,2016,2019 Free Software Foundation, Inc. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -662,6 +662,9 @@ for (int row = 0; row < ROWS; row++) { \ p[i_p] = pbit; } + for (int j = 1; j < (plen - Xp); j++) { + p[j] ^= p[j-1]; + } if (P != 0) { puncture = 0; for (int j = 0; j < plen; j += P) { @@ -677,10 +680,7 @@ for (int row = 0; row < ROWS; row++) { \ b[index++] = p[j]; } } - p = &out[nbch]; - } - for (int j = 1; j < (plen - Xp); j++) { - p[j] ^= p[j-1]; + p = &out[i + nbch]; } if (signal_constellation == MOD_128APSK) { for (int j = 0; j < 6; j++) { |