diff options
author | F5OEO <evaristec@gmail.com> | 2018-12-10 13:52:43 +0000 |
---|---|---|
committer | F5OEO <evaristec@gmail.com> | 2018-12-10 13:52:43 +0000 |
commit | b1e838a5f73af2425d34b8b5a8af1bf703b8df30 (patch) | |
tree | 1849e0121c0c395340b8875bfbc21527febfe869 /src/OfdmGenerator.cpp | |
parent | 5d825e7586814d47f29d3b4324effb36c6acd9ed (diff) | |
download | dabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.tar.gz dabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.tar.bz2 dabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.zip |
Move CFR preprocess only if CFR enable
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r-- | src/OfdmGenerator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 1331e63..2642bff 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -226,10 +226,11 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut) fftwf_execute(myFftPlan); // IFFT from myFftIn to myFftOut - complexf *symbol = reinterpret_cast<complexf*>(myFftOut); + + if (myCfr) { + complexf *symbol = reinterpret_cast<complexf*>(myFftOut); myPaprBeforeCFR.process_block(symbol, mySpacing); - if (myCfr) { if (myMERCalcIndex == i) { before_cfr.resize(mySpacing); memcpy(reinterpret_cast<fftwf_complex*>(before_cfr.data()), |