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/PhaseReference.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/PhaseReference.cpp')
-rw-r--r-- | src/PhaseReference.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/PhaseReference.cpp b/src/PhaseReference.cpp index 2fbd32d..c73c6e2 100644 --- a/src/PhaseReference.cpp +++ b/src/PhaseReference.cpp @@ -55,7 +55,7 @@ const uint8_t PhaseReference::d_h[4][32] = { PhaseReference::PhaseReference(unsigned int dabmode) : - ModCodec(), + ModInput(), d_dabmode(dabmode) { PDEBUG("PhaseReference::PhaseReference(%u) @ %p\n", dabmode, this); @@ -165,15 +165,9 @@ void PhaseReference::fillData() } -int PhaseReference::process(Buffer* const dataIn, Buffer* dataOut) +int PhaseReference::process(Buffer* dataOut) { - PDEBUG("PhaseReference::process(dataIn: %p, dataOut: %p)\n", - dataIn, dataOut); - - if ((dataIn != NULL) && (dataIn->getLength() != 0)) { - throw std::runtime_error( - "PhaseReference::process input size not valid!"); - } + PDEBUG("PhaseReference::process(dataOut: %p)\n", dataOut); dataOut->setData(&d_dataIn[0], d_carriers * sizeof(complexf)); |