#include "header/IProcessStrategy.h" #include #include void IProcessStrategy::slt_process(Image* inputFrame) { emit sgl_outputReady(processKernel(inputFrame)); } IProcessStrategy::IProcessStrategy(const Context context, const QString kernelPath, const QString kernelName) { try { _CLContext = context; _kernel = _openCLHelper.createKernel(context, kernelPath, kernelName); } catch(...) { qDebug() << "An error occured while creating CL strategy."; throw; } } Device IProcessStrategy::getDefaultDevice(const Context &context) { return (_openCLHelper.getDevicesByContext(context)[0]); }