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
{
40
tivx_reference_t
base
;
41
43
vx_size
size
;
45
vx_enum
type
;
46
48
vx_kernel_image_valid_rectangle_f
valid_rect_callback
;
49
52
struct
{
54
vx_uint32
width
;
56
vx_uint32
height
;
58
vx_df_image
format
;
59
} img;
60
63
struct
{
65
vx_uint32
width;
67
vx_uint32
height;
69
vx_df_image
format;
71
vx_size
levels
;
73
vx_float32
scale;
74
} pmd;
75
78
struct
{
80
vx_enum
type;
81
} sc;
82
85
struct
{
87
vx_enum
item_type
;
89
vx_size
capacity;
90
} arr;
91
94
struct
{
96
vx_enum
type;
98
vx_size
rows
;
100
vx_size
cols
;
101
} mat;
102
105
struct
{
107
vx_size
bins
;
109
vx_int32
offset
;
111
vx_uint32
range
;
112
} dist;
113
116
struct
{
118
vx_uint32
src_width
;
120
vx_uint32
src_height
;
122
vx_uint32
dst_width
;
124
vx_uint32
dst_height
;
125
} remap;
126
129
struct
{
131
vx_enum
type;
133
vx_size
count
;
134
} lut;
135
138
struct
{
140
vx_enum
type;
141
} thres;
142
145
struct
{
147
vx_enum
item_type;
149
vx_size
num_items
;
150
} objarr;
151
154
struct
{
156
vx_size
number_of_dimensions
;
158
vx_size
dimensions[
TIVX_CONTEXT_MAX_TENSOR_DIMS
];
160
vx_enum
data_type
;
162
vx_int8
fixed_point_position
;
163
} tensor;
164
167
struct
{
169
vx_char
type_name[
VX_MAX_REFERENCE_NAME
];
171
vx_size
size;
172
} user_data_object;
173
176
tivx_raw_image_create_params_t
raw_image;
177
178
}
tivx_meta_format_t
;
179
180
187
vx_status
ownReleaseMetaFormat
(
vx_meta_format
*meta);
188
198
vx_meta_format
ownCreateMetaFormat
(
vx_context
context);
199
216
vx_bool
ownIsMetaFormatEqual
(
vx_meta_format
meta1,
vx_meta_format
meta2,
vx_enum
type);
217
218
#ifdef __cplusplus
219
}
220
#endif
221
222
#endif
tivx_meta_format_t::src_height
vx_uint32 src_height
Definition:
vx_meta_format.h:120
vx_bool
vx_bool
VX_MAX_REFERENCE_NAME
#define VX_MAX_REFERENCE_NAME
tivx_meta_format_t::levels
vx_size levels
The ratio between each level.
Definition:
vx_meta_format.h:71
tivx_meta_format_t::num_items
vx_size num_items
Definition:
vx_meta_format.h:149
tivx_meta_format_t::dst_width
vx_uint32 dst_width
Definition:
vx_meta_format.h:122
tivx_meta_format_t::valid_rect_callback
vx_kernel_image_valid_rectangle_f valid_rect_callback
structure containing information about image used when type is set to VX_TYPE_IMAGE ...
Definition:
vx_meta_format.h:48
vx_kernel_image_valid_rectangle_f
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_size
size_t vx_size
vx_enum
int32_t vx_enum
tivx_meta_format_t::bins
vx_size bins
Definition:
vx_meta_format.h:107
tivx_reference_t
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
Definition:
vx_reference.h:63
vx_int32
int32_t vx_int32
tivx_meta_format_t::number_of_dimensions
vx_size number_of_dimensions
The number of dimensions in the tensor.
Definition:
vx_meta_format.h:156
ownReleaseMetaFormat
vx_status ownReleaseMetaFormat(vx_meta_format *meta)
Releases a meta-format object.
vx_char
char vx_char
vx_float32
float vx_float32
vx_status
vx_enum vx_status
vx_context
struct _vx_context * vx_context
vx_meta_format
struct _vx_meta_format * vx_meta_format
tivx_meta_format_t::data_type
vx_enum data_type
The data type of tensor.
Definition:
vx_meta_format.h:160
vx_df_image
uint32_t vx_df_image
tivx_meta_format_t::width
vx_uint32 width
The width of the image in pixels.
Definition:
vx_meta_format.h:54
TIVX_CONTEXT_MAX_TENSOR_DIMS
#define TIVX_CONTEXT_MAX_TENSOR_DIMS
Max possible dimensions of data in a tensor.
Definition:
tivx_obj_desc.h:98
tivx_meta_format_t::src_width
vx_uint32 src_width
Definition:
vx_meta_format.h:118
tivx_meta_format_t::type
vx_enum type
The type of the scalar.
Definition:
vx_meta_format.h:45
tivx_meta_format_t::size
vx_size size
The type of meta data.
Definition:
vx_meta_format.h:43
ownIsMetaFormatEqual
vx_bool ownIsMetaFormatEqual(vx_meta_format meta1, vx_meta_format meta2, vx_enum type)
Check for equivalence between two meta format objects.
tivx_meta_format_t::format
vx_df_image format
The number of scale levels.
Definition:
vx_meta_format.h:58
tivx_meta_format_t
Meta Format object internal state.
Definition:
vx_meta_format.h:37
tivx_meta_format_t::dst_height
vx_uint32 dst_height
Definition:
vx_meta_format.h:124
tivx_meta_format_t::offset
vx_int32 offset
Definition:
vx_meta_format.h:109
tivx_meta_format_t::cols
vx_size cols
Definition:
vx_meta_format.h:100
vx_uint32
uint32_t vx_uint32
tivx_meta_format_t::height
vx_uint32 height
The format of the image.
Definition:
vx_meta_format.h:56
ownCreateMetaFormat
vx_meta_format ownCreateMetaFormat(vx_context context)
Creates a metaformat object.
vx_int8
int8_t vx_int8
tivx_meta_format_t::count
vx_size count
Definition:
vx_meta_format.h:133
tivx_meta_format_t::base
tivx_reference_t base
reference object
Definition:
vx_meta_format.h:40
tivx_meta_format_t::item_type
vx_enum item_type
The type of the Array items.
Definition:
vx_meta_format.h:87
tivx_meta_format_t::rows
vx_size rows
Definition:
vx_meta_format.h:98
tivx_raw_image_create_params_t
The raw image create params structure that is given to the tivxCreateRawImage function.
Definition:
tivx_ext_raw_image.h:117
tivx_meta_format_t::fixed_point_position
vx_int8 fixed_point_position
The fixed point precision of the tensor.
Definition:
vx_meta_format.h:162
tivx_meta_format_t::range
vx_uint32 range
Definition:
vx_meta_format.h:111
source
include
vx_meta_format.h
Generated by
1.8.14