#include #include "toimanager.h" #include "nooppr.h" // ---------------------------------------------------------------------- // Classe SimpleFourierFilter : Filtre simple ds le domaine de Fourier // ---------------------------------------------------------------------- NoOpProcessor::NoOpProcessor(int wsz) { wsize = wsz; totnscount = 0; } void NoOpProcessor::PrintStatus(ostream & os) { os << "\n ------------------------------------------------------ \n" << " NoOpProcessor::PrintStatus() - WindowSize=" << WSize() << endl; os << " Total number of processed samples= " << ProcessedSampleCount() << endl; TOIProcessor::PrintStatus(os); os << " ------------------------------------------------------ " << endl; } void NoOpProcessor::init() { cout << "NoOpProcessor::init" << endl; declareInput("in"); declareInput("in2"); declareOutput("out"); declareOutput("out2"); name = "NoOpProcessor"; // upExtra = 1; } void NoOpProcessor::run() { // TOIManager* mgr = TOIManager::getManager(); int snb = getMinIn(); int sne = getMaxIn(); if (!checkInputTOIIndex(0)) { cerr << " NoOpProcessor::run() - Input TOI (in) not connected! " << endl; throw ParmError("NoOpProcessor::run() Input TOI (in) not connected!"); } bool fgin2 = checkInputTOIIndex(1); bool fgout = checkOutputTOIIndex(0); bool fgout2 = checkOutputTOIIndex(1); if (fgout2 && !fgin2) { cerr << " NoOpProcessor::run() - out2 connected without in2!" << endl; throw ParmError("NoOpProcessor::run() out2 connected without in2!"); } cout << " NoOpProcessor::run() SNRange=" << snb << " - " << sne << endl; double * vin = NULL; double * vin2 = NULL; uint_8 * vfg = NULL; uint_8 * vfg2 = NULL; try { // Le debut int k,i,klast; klast = snb-1; int totnbblock = 0; if (wsize > 1) { vin = new double[wsize]; vfg = new uint_8[wsize]; if (fgin2) { vin2 = new double[wsize]; vfg2 = new uint_8[wsize]; } // Boucle sur les sampleNum // 1er partie, on traite par paquets de wsize for(k=snb;k<=sne-wsize+1;k+=wsize) { for(i=0; i