Lines Matching refs:ocl
193 if (ocl::useOpenCL() && opencl_ON)
196 kernel_getBg.create("getBackgroundImage2_kernel", ocl::video::bgfg_mog2_oclsrc, format( "-D CN=%d -D NMIXTURES=%d", nchannels, nmixtures));
319 //for OCL
328 mutable ocl::Kernel kernel_apply;
329 mutable ocl::Kernel kernel_getBg;
769 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::ReadOnly(frame));
770 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_bgmodelUsedModes));
771 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_weight));
772 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_mean));
773 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_variance));
774 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::WriteOnlyNoSize(fgmask));
802 idxArg = kernel_getBg.set(idxArg, ocl::KernelArg::PtrReadOnly(u_bgmodelUsedModes));
803 idxArg = kernel_getBg.set(idxArg, ocl::KernelArg::PtrReadOnly(u_weight));
804 idxArg = kernel_getBg.set(idxArg, ocl::KernelArg::PtrReadOnly(u_mean));
805 idxArg = kernel_getBg.set(idxArg, ocl::KernelArg::WriteOnly(dst));
819 kernel_apply.create("mog2_kernel", ocl::video::bgfg_mog2_oclsrc, opts);