From 138f0cbf3cb5325a8af5277fb4d22deaba458c39 Mon Sep 17 00:00:00 2001 From: Vitaly Tuzov Date: Wed, 14 Dec 2016 13:23:52 +0300 Subject: [PATCH] Added wrapper for IMAGE_SPACE attribute setter --- 3rdparty/openvx/include/ivx.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/3rdparty/openvx/include/ivx.hpp b/3rdparty/openvx/include/ivx.hpp index 3d5102f5cf..fc2ceb1106 100644 --- a/3rdparty/openvx/include/ivx.hpp +++ b/3rdparty/openvx/include/ivx.hpp @@ -1505,6 +1505,15 @@ static const vx_enum } #endif // VX_VERSION_1_1 + /// vxSetImageAttribute() wrapper + template + void setAttribute(vx_enum att, T& value) const + { IVX_CHECK_STATUS(vxSetImageAttribute(ref, att, &value, sizeof(value))); } + + /// vxSetImageAttribute(SPACE) wrapper + void setColorSpace(const vx_enum& sp) + { setAttribute(VX_IMAGE_SPACE, sp); } + /// vxGetValidRegionImage() wrapper vx_rectangle_t getValidRegion() const {