You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
706 B

#ifndef SRI_H
#define SRI_H
#include <QObject>
#include <QMetaType>
#include "model/processor/IProcessStrategy.h"
#include "utils/OpenCLHelper.h"
typedef struct Sri_t
{
cl_int state;
cl_int sri;
cl_int width;
cl_int height;
}Sri_t;
class Sri : public IProcessStrategy
{
Q_OBJECT
public:
Q_INVOKABLE Sri(const Context context, const QString kernelPath, const QObject *parent);
virtual void cpuProcess(ScenGenOutput_t parameters) override;
virtual void finalize() override;
private:
KernelFunctor<Image2D, Image2D, LocalSpaceArg, Buffer, Sri_t> _kernelFunctor;
virtual Image* processKernel(Image *frames, Buffer* scratchPad) override;
Sri_t _kernelParameters;
};
#endif // SRI_H