Skip to content

Commit 138f0cb

Browse files
committed
Added wrapper for IMAGE_SPACE attribute setter
1 parent 7a3b5b3 commit 138f0cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

3rdparty/openvx/include/ivx.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,15 @@ static const vx_enum
15051505
}
15061506
#endif // VX_VERSION_1_1
15071507

1508+
/// vxSetImageAttribute() wrapper
1509+
template<typename T>
1510+
void setAttribute(vx_enum att, T& value) const
1511+
{ IVX_CHECK_STATUS(vxSetImageAttribute(ref, att, &value, sizeof(value))); }
1512+
1513+
/// vxSetImageAttribute(SPACE) wrapper
1514+
void setColorSpace(const vx_enum& sp)
1515+
{ setAttribute(VX_IMAGE_SPACE, sp); }
1516+
15081517
/// vxGetValidRegionImage() wrapper
15091518
vx_rectangle_t getValidRegion() const
15101519
{

0 commit comments

Comments
 (0)