The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Node: Border Modes

Detailed Description

Defines the border mode behaviors.

Border Mode behavior is set as an attribute of the node, not as a direct parameter to the kernel. This allows clients to set-and-forget the modes of any particular node that supports border modes. All nodes shall support VX_BORDER_MODE_UNDEFINED.

Data Structures

struct  vx_border_mode_t
 Use with the enumeration VX_NODE_ATTRIBUTE_BORDER_MODE to set the border mode behavior of a node that supports borders. More...
 

Enumerations

enum  vx_border_mode_e {
  VX_BORDER_MODE_UNDEFINED = ((( VX_ID_KHRONOS ) << 20) | ( VX_ENUM_BORDER_MODE << 12)) + 0x0,
  VX_BORDER_MODE_CONSTANT = ((( VX_ID_KHRONOS ) << 20) | ( VX_ENUM_BORDER_MODE << 12)) + 0x1,
  VX_BORDER_MODE_REPLICATE = ((( VX_ID_KHRONOS ) << 20) | ( VX_ENUM_BORDER_MODE << 12)) + 0x2
}
 The border mode list. More...
 

Data Structure Documentation

struct vx_border_mode_t

Use with the enumeration VX_NODE_ATTRIBUTE_BORDER_MODE to set the border mode behavior of a node that supports borders.

Definition at line 1339 of file vx_types.h.

Data Fields
vx_enum mode See vx_border_mode_e.
vx_uint32 constant_value For the mode VX_BORDER_MODE_CONSTANT, this value is filled into each pixel. If there are sub-channels in the pixel then this value is divided up accordingly.

Enumeration Type Documentation

The border mode list.

Enumerator
VX_BORDER_MODE_UNDEFINED 

No defined border mode behavior is given.

VX_BORDER_MODE_CONSTANT 

For nodes that support this behavior, a constant value is filled-in when accessing out-of-bounds pixels.

VX_BORDER_MODE_REPLICATE 

For nodes that support this behavior, a replication of the nearest edge pixels value is given for out-of-bounds pixels.

Definition at line 1068 of file vx_types.h.