From 58ad952b1addb2732179a81942959665ab030d1e Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 2 Jan 2015 01:59:36 +0300 Subject: [PATCH] UMat: added USAGE_ALLOCATE_SHARED_MEMORY --- modules/core/include/opencv2/core/mat.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 2b4148624..522b8b815 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -376,9 +376,10 @@ enum UMatUsageFlags { USAGE_DEFAULT = 0, - // default allocation policy is platform and usage specific + // buffer allocation policy is platform and usage specific USAGE_ALLOCATE_HOST_MEMORY = 1 << 0, USAGE_ALLOCATE_DEVICE_MEMORY = 1 << 1, + USAGE_ALLOCATE_SHARED_MEMORY = 1 << 2, // It is not equal to: USAGE_ALLOCATE_HOST_MEMORY | USAGE_ALLOCATE_DEVICE_MEMORY __UMAT_USAGE_FLAGS_32BIT = 0x7fffffff // Binary compatibility hint };