From 4b814d92fe9787bf72ed3a9632e0866f4cedd27f Mon Sep 17 00:00:00 2001 From: "Matthias (think)" Date: Wed, 11 Jul 2012 12:00:56 +0200 Subject: added crc-dabmod patch --- src/BlockPartitioner.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/BlockPartitioner.cpp') diff --git a/src/BlockPartitioner.cpp b/src/BlockPartitioner.cpp index bb16ae2..2ae2e7a 100644 --- a/src/BlockPartitioner.cpp +++ b/src/BlockPartitioner.cpp @@ -29,7 +29,7 @@ #include -BlockPartitioner::BlockPartitioner(unsigned mode, unsigned fct) : +BlockPartitioner::BlockPartitioner(unsigned mode, unsigned phase) : ModMux(ModFormat(0), ModFormat(0)), d_mode(mode) { @@ -67,7 +67,7 @@ BlockPartitioner::BlockPartitioner(unsigned mode, unsigned fct) : } d_cifNb = 0; // For Synchronisation purpose, count nb of CIF to drop - d_cifInit = fct % d_cifCount; + d_cifPhase = phase % d_cifCount; d_cifSize = 864 * 8; myInputFormat.size(d_cifSize); @@ -110,10 +110,10 @@ int BlockPartitioner::process(std::vector dataIn, Buffer* dataOut) "BlockPartitioner::process input size not valid!"); } - // Synchronize first CIF - if (d_cifInit != 0) { - if (++d_cifInit == d_cifCount) { - d_cifInit = 0; + // Synchronize CIF phase + if (d_cifPhase != 0) { + if (++d_cifPhase == d_cifCount) { + d_cifPhase = 0; } // Drop CIF return 0; -- cgit v1.2.3