From da5e0ef4612814e0445205b4536e849bb7293f10 Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Thu, 4 Oct 2018 14:26:32 +0300 Subject: [PATCH] ocl::KernelArg::Local(): added size argument --- modules/core/include/opencv2/core/ocl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/ocl.hpp b/modules/core/include/opencv2/core/ocl.hpp index 5e6b247f8c..95f0fcdd66 100644 --- a/modules/core/include/opencv2/core/ocl.hpp +++ b/modules/core/include/opencv2/core/ocl.hpp @@ -352,7 +352,8 @@ public: KernelArg(int _flags, UMat* _m, int wscale=1, int iwscale=1, const void* _obj=0, size_t _sz=0); KernelArg(); - static KernelArg Local() { return KernelArg(LOCAL, 0); } + static KernelArg Local(size_t localMemSize) + { return KernelArg(LOCAL, 0, 1, 1, 0, localMemSize); } static KernelArg PtrWriteOnly(const UMat& m) { return KernelArg(PTR_ONLY+WRITE_ONLY, (UMat*)&m); } static KernelArg PtrReadOnly(const UMat& m)