TIOVX User Guide
vx_meta_format.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2016 The Khronos Group Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 
19 #ifndef VX_META_FORMAT_H_
20 #define VX_META_FORMAT_H_
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
37 typedef struct _vx_meta_format
38 {
41 
46 
49 
52  struct {
60  vx_uint32 stride_y_alignment;
61  } img;
62 
65  struct {
67  vx_uint32 width;
69  vx_uint32 height;
71  vx_df_image format;
75  vx_float32 scale;
76  } pmd;
77 
80  struct {
82  vx_enum type;
83  } sc;
84 
87  struct {
93  vx_size item_size;
94  } arr;
95 
98  struct {
100  vx_enum type;
106  vx_size size;
111  } mat;
112 
115  struct {
122  } dist;
123 
126  struct {
128  vx_size rows;
130  vx_size cols;
134  vx_size size;
135  } conv;
136 
139  struct {
148  } remap;
149 
152  struct {
154  vx_enum type;
157  } lut;
158 
161  struct {
163  vx_enum type;
164  } thres;
165 
168  struct {
170  vx_enum item_type;
173  } objarr;
174 
177  struct {
192  } tensor;
193 
196  struct {
200  vx_size size;
201  } user_data_object;
202 
206 
208 
209 
217 
228 
246 
247 #ifdef __cplusplus
248 }
249 #endif
250 
251 #endif
vx_bool
#define VX_MAX_REFERENCE_NAME
vx_size levels
The ratio between each level.
vx_kernel_image_valid_rectangle_f valid_rect_callback
structure containing information about image used when type is set to VX_TYPE_IMAGE ...
uint8_t vx_uint8
vx_status(* vx_kernel_image_valid_rectangle_f)(vx_node node, vx_uint32 index, const vx_rectangle_t *const input_valid[], vx_rectangle_t *const output_valid[])
vx_coordinates2d_t origin
size_t vx_size
vx_bool ownIsMetaFormatEqual(vx_meta_format meta1, vx_meta_format meta2, vx_enum ref_type)
Check for equivalence between two meta format objects.
int32_t vx_enum
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
Definition: vx_reference.h:73
int32_t vx_int32
vx_size number_of_dimensions
The number of dimensions in the tensor.
vx_status ownReleaseMetaFormat(vx_meta_format *meta)
Releases a meta-format object.
char vx_char
float vx_float32
vx_enum vx_status
struct _vx_context * vx_context
struct _vx_meta_format * vx_meta_format
vx_enum data_type
The data type of tensor.
uint32_t vx_df_image
vx_uint32 width
The width of the image in pixels.
#define TIVX_CONTEXT_MAX_TENSOR_DIMS
Max possible dimensions of data in a tensor.
Definition: tivx_obj_desc.h:98
vx_uint8 scaling_divisor
The scaling divisor of the tensor.
vx_enum type
The type of the scalar.
vx_size size
The type of meta data.
vx_df_image format
The stride y alignment of the image.
Meta Format object internal state.
vx_uint8 scaling_divisor_fixed_point_position
The fixed point position of the scaling divisor.
uint32_t vx_uint32
vx_uint32 height
The format of the image.
vx_meta_format ownCreateMetaFormat(vx_context context)
Creates a metaformat object.
int8_t vx_int8
tivx_reference_t base
reference object
vx_enum item_type
The type of the Array items.
The raw image create params structure that is given to the tivxCreateRawImage function.
vx_int8 fixed_point_position
The fixed point precision of the tensor.
vx_size capacity
The item size of the Array.