diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-25 21:34:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-25 21:34:03 +0100 |
commit | 2bba7d602744ccd6dab26940661f0fdfbf231af8 (patch) | |
tree | 590a5808497da3b621e29239cd56db6c89c2d6a9 /src/NullSymbol.cpp | |
parent | b5fd4a6ab6ac92af2141233f802e71c861cd89f4 (diff) | |
download | dabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.tar.gz dabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.tar.bz2 dabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.zip |
Refactor flowgraph and puncturing rules
Diffstat (limited to 'src/NullSymbol.cpp')
-rw-r--r-- | src/NullSymbol.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/NullSymbol.cpp b/src/NullSymbol.cpp index f2c600e..015e564 100644 --- a/src/NullSymbol.cpp +++ b/src/NullSymbol.cpp @@ -1,6 +1,11 @@ /* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) + + Copyright (C) 2016 + Matthias P. Braendli, matthias.braendli@mpb.li + + http://opendigitalradio.org */ /* This file is part of ODR-DabMod. @@ -29,31 +34,27 @@ typedef std::complex<float> complexf; - NullSymbol::NullSymbol(size_t nbCarriers) : - ModCodec(), + ModInput(), myNbCarriers(nbCarriers) { PDEBUG("NullSymbol::NullSymbol(%zu) @ %p\n", nbCarriers, this); - } NullSymbol::~NullSymbol() { PDEBUG("NullSymbol::~NullSymbol() @ %p\n", this); - } -int NullSymbol::process(Buffer* const dataIn, Buffer* dataOut) +int NullSymbol::process(Buffer* dataOut) { - PDEBUG("NullSymbol::process" - "(dataIn: %p, dataOut: %p)\n", - dataIn, dataOut); - + PDEBUG("NullSymbol::process(dataOut: %p)\n", dataOut); + dataOut->setLength(myNbCarriers * 2 * sizeof(float)); bzero(dataOut->getData(), dataOut->getLength()); return dataOut->getLength(); } + |