From c2209ad5e4c6e574516f814740e6998d4d5572db Mon Sep 17 00:00:00 2001 From: Joe Howse Date: Fri, 31 Dec 2021 13:49:33 -0400 Subject: [PATCH] Doc warnings about experimental UMatUsageFlags --- modules/core/include/opencv2/core/mat.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index fdcb8fc817..5b5218a573 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -458,7 +458,16 @@ CV_EXPORTS InputOutputArray noArray(); /////////////////////////////////// MatAllocator ////////////////////////////////////// -//! Usage flags for allocator +/** @brief Usage flags for allocator + + @warning All flags except `USAGE_DEFAULT` are experimental. + + @warning For the OpenCL allocator, `USAGE_ALLOCATE_SHARED_MEMORY` depends on + OpenCV's optional, experimental integration with OpenCL SVM. To enable this + integration, build OpenCV using the `WITH_OPENCL_SVM=ON` CMake option and, at + runtime, call `cv::ocl::Context::getDefault().setUseSVM(true);` or similar + code. Note that SVM is incompatible with OpenCL 1.x. +*/ enum UMatUsageFlags { USAGE_DEFAULT = 0, -- GitLab