CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The addressing image patch structure is used by the Host only to address pixels in an image patch. The fields of the structure are defined as: More...
#include <vx_types.h>
Public Attributes | |
vx_uint32 | dim_x |
Width of patch in X dimension in pixels. | |
vx_uint32 | dim_y |
Height of patch in Y dimension in pixels. | |
vx_int32 | stride_x |
Stride in X dimension in bytes. | |
vx_int32 | stride_y |
Stride in Y dimension in bytes. | |
vx_uint32 | scale_x |
Scale of X dimension. For sub-sampled planes this is the scaling factor of the dimension of the plane in relation to the zero plane. Use VX_SCALE_UNITY in the numerator. | |
vx_uint32 | scale_y |
Scale of Y dimension. For sub-sampled planes this is the scaling factor of the dimension of the plane in relation to the zero plane. Use VX_SCALE_UNITY in the numerator. | |
vx_uint32 | step_x |
Step of X dimension in pixels. | |
vx_uint16 | step_y |
Step of Y dimension in pixels. | |
vx_uint16 | stride_x_bits |
Stride in X dimension in bits. Used when stride_x is not an integer number of bytes. | |
The addressing image patch structure is used by the Host only to address pixels in an image patch. The fields of the structure are defined as:
VX_SCALE_UNITY
. vxMapImagePatch
VX_DF_IMAGE_U1
images it is defined that stride_x == 0 since it is less than one byte. The least significant bit (bit number 0, value 1) in the first byte in the image, is the left-most pixel in the upper left corner, i.e. origo. A VX_DF_IMAGE_U1
image always start on a byte boundary and each row has a stride_y that is a multiple of whole bytes, which means padding bits of undefined value may be present at the end of each row. Imagepatches can only be accessed at a multiple of eight pixels: the x-coordinate must be a multiple of eight. Individual pixel access is also different: the byte at the imagepatch-calculated pointer value is a collection of eight pixels. Each byte can then be masked with the bit-mask 1 << (x % 8)
to get individual pixel values (shifted x
times). See ref sub_image_access for an example. vx_uint32 _vx_imagepatch_addressing_t::dim_x |
Width of patch in X dimension in pixels.
vx_uint32 _vx_imagepatch_addressing_t::dim_y |
Height of patch in Y dimension in pixels.
vx_uint32 _vx_imagepatch_addressing_t::scale_x |
Scale of X dimension. For sub-sampled planes this is the scaling factor of the dimension of the plane in relation to the zero plane. Use VX_SCALE_UNITY
in the numerator.
vx_uint32 _vx_imagepatch_addressing_t::scale_y |
Scale of Y dimension. For sub-sampled planes this is the scaling factor of the dimension of the plane in relation to the zero plane. Use VX_SCALE_UNITY
in the numerator.
vx_uint32 _vx_imagepatch_addressing_t::step_x |
Step of X dimension in pixels.
vx_uint16 _vx_imagepatch_addressing_t::step_y |
Step of Y dimension in pixels.
vx_int32 _vx_imagepatch_addressing_t::stride_x |
Stride in X dimension in bytes.
vx_uint16 _vx_imagepatch_addressing_t::stride_x_bits |
Stride in X dimension in bits. Used when stride_x is not an integer number of bytes.
vx_int32 _vx_imagepatch_addressing_t::stride_y |
Stride in Y dimension in bytes.