#ifndef CRI_H #define CRI_H #include #include #include "model/processor/IProcessStrategy.h" #include "utils/OpenCLHelper.h" #define CRI_MAX_BUFFER_SIZE 11 typedef struct Cri_t { cl_int criFilterMode; cl_int frameCntr; cl_int scenariFrameNo; }Cri_t; class Cri : public IProcessStrategy { Q_OBJECT public: Q_INVOKABLE Cri(const Context context, const QString kernelPath, const QObject *parent); virtual void cpuProcess(ScenGenOutput_t parameters) override; virtual void finalize() override; private: KernelFunctor _kernelFunctor; virtual Image* processKernel(Image *frames, Buffer* scratchPad) override; Cri_t _kernelParameters; Image2D* _criBuffer[CRI_MAX_BUFFER_SIZE]; // int counter = 0; }; #endif // CRI_H