1#[repr(i32)]
4#[doc = " @enum ov_status_e\n @ingroup ov_base_c_api\n @brief This enum contains codes for all possible return values of the interface functions"]
5#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
6pub enum ov_status_e {
7 #[doc = "!< SUCCESS"]
8 OK = 0,
9 #[doc = "!< GENERAL_ERROR"]
10 GENERAL_ERROR = -1,
11 #[doc = "!< NOT_IMPLEMENTED"]
12 NOT_IMPLEMENTED = -2,
13 #[doc = "!< NETWORK_NOT_LOADED"]
14 NETWORK_NOT_LOADED = -3,
15 #[doc = "!< PARAMETER_MISMATCH"]
16 PARAMETER_MISMATCH = -4,
17 #[doc = "!< NOT_FOUND"]
18 NOT_FOUND = -5,
19 #[doc = "!< OUT_OF_BOUNDS"]
20 OUT_OF_BOUNDS = -6,
21 #[doc = "!< UNEXPECTED"]
22 UNEXPECTED = -7,
23 #[doc = "!< REQUEST_BUSY"]
24 REQUEST_BUSY = -8,
25 #[doc = "!< RESULT_NOT_READY"]
26 RESULT_NOT_READY = -9,
27 #[doc = "!< NOT_ALLOCATED"]
28 NOT_ALLOCATED = -10,
29 #[doc = "!< INFER_NOT_STARTED"]
30 INFER_NOT_STARTED = -11,
31 #[doc = "!< NETWORK_NOT_READ"]
32 NETWORK_NOT_READ = -12,
33 #[doc = "!< INFER_CANCELLED"]
34 INFER_CANCELLED = -13,
35 #[doc = "!< INVALID_C_PARAM"]
36 INVALID_C_PARAM = -14,
37 #[doc = "!< UNKNOWN_C_ERROR"]
38 UNKNOWN_C_ERROR = -15,
39 #[doc = "!< NOT_IMPLEMENT_C_METHOD"]
40 NOT_IMPLEMENT_C_METHOD = -16,
41 #[doc = "!< UNKNOW_EXCEPTION"]
42 UNKNOW_EXCEPTION = -17,
43}
44impl ov_element_type_e {
45 pub const DYNAMIC: ov_element_type_e = ov_element_type_e::UNDEFINED;
46}
47#[repr(u32)]
48#[doc = " @enum ov_element_type_e\n @ingroup ov_base_c_api\n @brief This enum contains codes for element type, which is aligned with ov::element::Type_t in\n src/core/include/openvino/core/type/element_type.hpp"]
49#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
50pub enum ov_element_type_e {
51 #[doc = "!< Undefined element type"]
52 UNDEFINED = 0,
53 #[doc = "!< boolean element type"]
54 OV_BOOLEAN = 1,
55 #[doc = "!< bf16 element type"]
56 BF16 = 2,
57 #[doc = "!< f16 element type"]
58 F16 = 3,
59 #[doc = "!< f32 element type"]
60 F32 = 4,
61 #[doc = "!< f64 element type"]
62 F64 = 5,
63 #[doc = "!< i4 element type"]
64 I4 = 6,
65 #[doc = "!< i8 element type"]
66 I8 = 7,
67 #[doc = "!< i16 element type"]
68 I16 = 8,
69 #[doc = "!< i32 element type"]
70 I32 = 9,
71 #[doc = "!< i64 element type"]
72 I64 = 10,
73 #[doc = "!< binary element type"]
74 U1 = 11,
75 #[doc = "!< u2 element type"]
76 U2 = 12,
77 #[doc = "!< u3 element type"]
78 U3 = 13,
79 #[doc = "!< u4 element type"]
80 U4 = 14,
81 #[doc = "!< u6 element type"]
82 U6 = 15,
83 #[doc = "!< u8 element type"]
84 U8 = 16,
85 #[doc = "!< u16 element type"]
86 U16 = 17,
87 #[doc = "!< u32 element type"]
88 U32 = 18,
89 #[doc = "!< u64 element type"]
90 U64 = 19,
91 #[doc = "!< nf4 element type"]
92 NF4 = 20,
93 #[doc = "!< f8e4m3 element type"]
94 F8E4M3 = 21,
95 #[doc = "!< f8e5m2 element type"]
96 F8E5M3 = 22,
97 #[doc = "!< string element type"]
98 STRING = 23,
99 #[doc = "!< f4e2m1 element type"]
100 F4E2M1 = 24,
101 #[doc = "!< f8e8m0 element type"]
102 F8E8M0 = 25,
103}
104#[doc = " @brief encryption_func is a function pointer that encrypt or decrypt the input memory, example of this function is\n codec(const char* input, const size_t in_size, const char* output, size_t* out_size)\n This function needs to be called twice,\n the first call to obtain out_size (the size of output buffer), the second call to obtain output buffer.\n The first call output is nullptr, before the second call, the caller needs to apply for output\n memory based on the out_size returned by the first call.\n the memory of parameter output is allocated and released by the caller.\n @param input The pointer to the input buffer.\n @param in_size The size of input.\n @param output The pointer to the encrypted/decrypted buffer.\n @param out_size The size of output."]
105pub type encryption_func = ::std::option::Option<
106 unsafe extern "C" fn(
107 arg1: *const ::std::os::raw::c_char,
108 arg2: usize,
109 arg3: *mut ::std::os::raw::c_char,
110 arg4: *mut usize,
111 ),
112>;
113#[repr(C)]
114#[derive(Debug, Copy, Clone)]
115pub struct ov_encryption_callbacks {
116 pub encrypt_func: encryption_func,
117 pub decrypt_func: encryption_func,
118}
119#[allow(clippy::unnecessary_operation, clippy::identity_op)]
120const _: () = {
121 ["Size of ov_encryption_callbacks"][::std::mem::size_of::<ov_encryption_callbacks>() - 16usize];
122 ["Alignment of ov_encryption_callbacks"]
123 [::std::mem::align_of::<ov_encryption_callbacks>() - 8usize];
124 ["Offset of field: ov_encryption_callbacks::encrypt_func"]
125 [::std::mem::offset_of!(ov_encryption_callbacks, encrypt_func) - 0usize];
126 ["Offset of field: ov_encryption_callbacks::decrypt_func"]
127 [::std::mem::offset_of!(ov_encryption_callbacks, decrypt_func) - 8usize];
128};
129#[doc = " @struct ov_dimension\n @ingroup ov_dimension_c_api\n @brief This is a structure interface equal to ov::Dimension"]
130#[repr(C)]
131#[derive(Debug, Copy, Clone)]
132pub struct ov_dimension {
133 #[doc = "!< The lower inclusive limit for the dimension."]
134 pub min: i64,
135 #[doc = "!< The upper inclusive limit for the dimension."]
136 pub max: i64,
137}
138#[allow(clippy::unnecessary_operation, clippy::identity_op)]
139const _: () = {
140 ["Size of ov_dimension"][::std::mem::size_of::<ov_dimension>() - 16usize];
141 ["Alignment of ov_dimension"][::std::mem::align_of::<ov_dimension>() - 8usize];
142 ["Offset of field: ov_dimension::min"][::std::mem::offset_of!(ov_dimension, min) - 0usize];
143 ["Offset of field: ov_dimension::max"][::std::mem::offset_of!(ov_dimension, max) - 8usize];
144};
145#[doc = " @struct ov_dimension\n @ingroup ov_dimension_c_api\n @brief This is a structure interface equal to ov::Dimension"]
146pub type ov_dimension_t = ov_dimension;
147#[repr(C)]
148#[derive(Debug, Copy, Clone)]
149pub struct ov_layout {
150 _unused: [u8; 0],
151}
152#[doc = " @struct ov_layout_t\n @ingroup ov_layout_c_api\n @brief type define ov_layout_t from ov_layout"]
153pub type ov_layout_t = ov_layout;
154#[doc = " @struct ov_rank_t\n @ingroup ov_rank_c_api\n @brief type define ov_rank_t from ov_dimension_t"]
155pub type ov_rank_t = ov_dimension_t;
156#[doc = " @struct ov_shape_t\n @ingroup ov_shape_c_api\n @brief Reprents a static shape."]
157#[repr(C)]
158#[derive(Debug, Copy, Clone)]
159pub struct ov_shape_t {
160 #[doc = "!< the rank of shape"]
161 pub rank: i64,
162 #[doc = "!< the dims of shape"]
163 pub dims: *mut i64,
164}
165#[allow(clippy::unnecessary_operation, clippy::identity_op)]
166const _: () = {
167 ["Size of ov_shape_t"][::std::mem::size_of::<ov_shape_t>() - 16usize];
168 ["Alignment of ov_shape_t"][::std::mem::align_of::<ov_shape_t>() - 8usize];
169 ["Offset of field: ov_shape_t::rank"][::std::mem::offset_of!(ov_shape_t, rank) - 0usize];
170 ["Offset of field: ov_shape_t::dims"][::std::mem::offset_of!(ov_shape_t, dims) - 8usize];
171};
172#[doc = " @struct ov_partial_shape\n @ingroup ov_partial_shape_c_api\n @brief It represents a shape that may be partially or totally dynamic.\n A PartialShape may have:\n Dynamic rank. (Informal notation: `?`)\n Static rank, but dynamic dimensions on some or all axes.\n (Informal notation examples: `{1,2,?,4}`, `{?,?,?}`, `{-1,-1,-1}`)\n Static rank, and static dimensions on all axes.\n (Informal notation examples: `{1,2,3,4}`, `{6}`, `{}`)\n\n An interface to make user can initialize ov_partial_shape_t"]
173#[repr(C)]
174#[derive(Debug, Copy, Clone)]
175pub struct ov_partial_shape {
176 #[doc = "!< The rank"]
177 pub rank: ov_rank_t,
178 #[doc = "!< The dimension"]
179 pub dims: *mut ov_dimension_t,
180}
181#[allow(clippy::unnecessary_operation, clippy::identity_op)]
182const _: () = {
183 ["Size of ov_partial_shape"][::std::mem::size_of::<ov_partial_shape>() - 24usize];
184 ["Alignment of ov_partial_shape"][::std::mem::align_of::<ov_partial_shape>() - 8usize];
185 ["Offset of field: ov_partial_shape::rank"]
186 [::std::mem::offset_of!(ov_partial_shape, rank) - 0usize];
187 ["Offset of field: ov_partial_shape::dims"]
188 [::std::mem::offset_of!(ov_partial_shape, dims) - 16usize];
189};
190#[doc = " @struct ov_partial_shape\n @ingroup ov_partial_shape_c_api\n @brief It represents a shape that may be partially or totally dynamic.\n A PartialShape may have:\n Dynamic rank. (Informal notation: `?`)\n Static rank, but dynamic dimensions on some or all axes.\n (Informal notation examples: `{1,2,?,4}`, `{?,?,?}`, `{-1,-1,-1}`)\n Static rank, and static dimensions on all axes.\n (Informal notation examples: `{1,2,3,4}`, `{6}`, `{}`)\n\n An interface to make user can initialize ov_partial_shape_t"]
191pub type ov_partial_shape_t = ov_partial_shape;
192#[repr(C)]
193#[derive(Debug, Copy, Clone)]
194pub struct ov_output_const_port {
195 _unused: [u8; 0],
196}
197#[doc = " @struct ov_output_const_port_t\n @ingroup ov_node_c_api\n @brief type define ov_output_const_port_t from ov_output_const_port"]
198pub type ov_output_const_port_t = ov_output_const_port;
199#[repr(C)]
200#[derive(Debug, Copy, Clone)]
201pub struct ov_output_port {
202 _unused: [u8; 0],
203}
204#[doc = " @struct ov_output_port_t\n @ingroup ov_node_c_api\n @brief type define ov_output_port_t from ov_output_port"]
205pub type ov_output_port_t = ov_output_port;
206#[repr(C)]
207#[derive(Debug, Copy, Clone)]
208pub struct ov_tensor {
209 _unused: [u8; 0],
210}
211#[doc = " @struct ov_tensor_t\n @ingroup ov_tensor_c_api\n @brief type define ov_tensor_t from ov_tensor"]
212pub type ov_tensor_t = ov_tensor;
213#[repr(C)]
214#[derive(Debug, Copy, Clone)]
215pub struct ov_infer_request {
216 _unused: [u8; 0],
217}
218#[doc = " @struct ov_infer_request_t\n @ingroup ov_infer_request_c_api\n @brief type define ov_infer_request_t from ov_infer_request"]
219pub type ov_infer_request_t = ov_infer_request;
220#[doc = " @struct ov_callback_t\n @ingroup ov_infer_request_c_api\n @brief Completion callback definition about the function and args"]
221#[repr(C)]
222#[derive(Debug, Copy, Clone)]
223pub struct ov_callback_t {
224 #[doc = "!< The callback func"]
225 pub callback_func:
226 ::std::option::Option<unsafe extern "C" fn(args: *mut ::std::os::raw::c_void)>,
227 #[doc = "!< The args of callback func"]
228 pub args: *mut ::std::os::raw::c_void,
229}
230#[allow(clippy::unnecessary_operation, clippy::identity_op)]
231const _: () = {
232 ["Size of ov_callback_t"][::std::mem::size_of::<ov_callback_t>() - 16usize];
233 ["Alignment of ov_callback_t"][::std::mem::align_of::<ov_callback_t>() - 8usize];
234 ["Offset of field: ov_callback_t::callback_func"]
235 [::std::mem::offset_of!(ov_callback_t, callback_func) - 0usize];
236 ["Offset of field: ov_callback_t::args"][::std::mem::offset_of!(ov_callback_t, args) - 8usize];
237};
238#[doc = " @struct ov_ProfilingInfo_t\n @ingroup ov_infer_request_c_api\n @brief Store profiling info data"]
239#[repr(C)]
240#[derive(Debug, Copy, Clone)]
241pub struct ov_profiling_info_t {
242 #[doc = "!< status"]
243 pub status: ov_profiling_info_t_Status,
244 #[doc = "!< The absolute time, in microseconds, that the node ran (in total)."]
245 pub real_time: i64,
246 #[doc = "!< The net host CPU time that the node ran."]
247 pub cpu_time: i64,
248 #[doc = "!< Name of a node."]
249 pub node_name: *const ::std::os::raw::c_char,
250 #[doc = "!< Execution type of a unit."]
251 pub exec_type: *const ::std::os::raw::c_char,
252 #[doc = "!< Node type."]
253 pub node_type: *const ::std::os::raw::c_char,
254}
255#[repr(u32)]
256#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
257pub enum ov_profiling_info_t_Status {
258 #[doc = "!< A node is not executed."]
259 NOT_RUN = 0,
260 #[doc = "!< A node is optimized out during graph optimization phase."]
261 OPTIMIZED_OUT = 1,
262 #[doc = "!< A node is executed."]
263 EXECUTED = 2,
264}
265#[allow(clippy::unnecessary_operation, clippy::identity_op)]
266const _: () = {
267 ["Size of ov_profiling_info_t"][::std::mem::size_of::<ov_profiling_info_t>() - 48usize];
268 ["Alignment of ov_profiling_info_t"][::std::mem::align_of::<ov_profiling_info_t>() - 8usize];
269 ["Offset of field: ov_profiling_info_t::status"]
270 [::std::mem::offset_of!(ov_profiling_info_t, status) - 0usize];
271 ["Offset of field: ov_profiling_info_t::real_time"]
272 [::std::mem::offset_of!(ov_profiling_info_t, real_time) - 8usize];
273 ["Offset of field: ov_profiling_info_t::cpu_time"]
274 [::std::mem::offset_of!(ov_profiling_info_t, cpu_time) - 16usize];
275 ["Offset of field: ov_profiling_info_t::node_name"]
276 [::std::mem::offset_of!(ov_profiling_info_t, node_name) - 24usize];
277 ["Offset of field: ov_profiling_info_t::exec_type"]
278 [::std::mem::offset_of!(ov_profiling_info_t, exec_type) - 32usize];
279 ["Offset of field: ov_profiling_info_t::node_type"]
280 [::std::mem::offset_of!(ov_profiling_info_t, node_type) - 40usize];
281};
282#[doc = " @struct ov_profiling_info_list_t\n @ingroup ov_infer_request_c_api\n @brief A list of profiling info data"]
283#[repr(C)]
284#[derive(Debug, Copy, Clone)]
285pub struct ov_profiling_info_list_t {
286 #[doc = "!< The list of ov_profilling_info_t"]
287 pub profiling_infos: *mut ov_profiling_info_t,
288 #[doc = "!< The list size"]
289 pub size: usize,
290}
291#[allow(clippy::unnecessary_operation, clippy::identity_op)]
292const _: () = {
293 ["Size of ov_profiling_info_list_t"]
294 [::std::mem::size_of::<ov_profiling_info_list_t>() - 16usize];
295 ["Alignment of ov_profiling_info_list_t"]
296 [::std::mem::align_of::<ov_profiling_info_list_t>() - 8usize];
297 ["Offset of field: ov_profiling_info_list_t::profiling_infos"]
298 [::std::mem::offset_of!(ov_profiling_info_list_t, profiling_infos) - 0usize];
299 ["Offset of field: ov_profiling_info_list_t::size"]
300 [::std::mem::offset_of!(ov_profiling_info_list_t, size) - 8usize];
301};
302#[repr(C)]
303#[derive(Debug, Copy, Clone)]
304pub struct ov_model {
305 _unused: [u8; 0],
306}
307#[doc = " @struct ov_model_t\n @ingroup ov_model_c_api\n @brief type define ov_model_t from ov_model"]
308pub type ov_model_t = ov_model;
309#[repr(C)]
310#[derive(Debug, Copy, Clone)]
311pub struct ov_remote_context {
312 _unused: [u8; 0],
313}
314pub type ov_remote_context_t = ov_remote_context;
315#[repr(C)]
316#[derive(Debug, Copy, Clone)]
317pub struct ov_compiled_model {
318 _unused: [u8; 0],
319}
320#[doc = " @struct ov_compiled_model_t\n @ingroup ov_compiled_model_c_api\n @brief type define ov_compiled_model_t from ov_compiled_model"]
321pub type ov_compiled_model_t = ov_compiled_model;
322#[repr(C)]
323#[derive(Debug, Copy, Clone)]
324pub struct ov_core {
325 _unused: [u8; 0],
326}
327#[doc = " @struct ov_core_t\n @ingroup ov_core_c_api\n @brief type define ov_core_t from ov_core"]
328pub type ov_core_t = ov_core;
329#[doc = " @struct ov_version\n @ingroup ov_core_c_api\n @brief Represents OpenVINO version information"]
330#[repr(C)]
331#[derive(Debug, Copy, Clone)]
332pub struct ov_version {
333 #[doc = "!< A string representing OpenVINO version"]
334 pub buildNumber: *const ::std::os::raw::c_char,
335 #[doc = "!< A string representing OpenVINO description"]
336 pub description: *const ::std::os::raw::c_char,
337}
338#[allow(clippy::unnecessary_operation, clippy::identity_op)]
339const _: () = {
340 ["Size of ov_version"][::std::mem::size_of::<ov_version>() - 16usize];
341 ["Alignment of ov_version"][::std::mem::align_of::<ov_version>() - 8usize];
342 ["Offset of field: ov_version::buildNumber"]
343 [::std::mem::offset_of!(ov_version, buildNumber) - 0usize];
344 ["Offset of field: ov_version::description"]
345 [::std::mem::offset_of!(ov_version, description) - 8usize];
346};
347#[doc = " @struct ov_version\n @ingroup ov_core_c_api\n @brief Represents OpenVINO version information"]
348pub type ov_version_t = ov_version;
349#[doc = " @struct ov_core_version\n @ingroup ov_core_c_api\n @brief Represents version information that describes device and ov runtime library"]
350#[repr(C)]
351#[derive(Debug, Copy, Clone)]
352pub struct ov_core_version_t {
353 #[doc = "!< A device name"]
354 pub device_name: *const ::std::os::raw::c_char,
355 #[doc = "!< Version"]
356 pub version: ov_version_t,
357}
358#[allow(clippy::unnecessary_operation, clippy::identity_op)]
359const _: () = {
360 ["Size of ov_core_version_t"][::std::mem::size_of::<ov_core_version_t>() - 24usize];
361 ["Alignment of ov_core_version_t"][::std::mem::align_of::<ov_core_version_t>() - 8usize];
362 ["Offset of field: ov_core_version_t::device_name"]
363 [::std::mem::offset_of!(ov_core_version_t, device_name) - 0usize];
364 ["Offset of field: ov_core_version_t::version"]
365 [::std::mem::offset_of!(ov_core_version_t, version) - 8usize];
366};
367#[doc = " @struct ov_core_version_list\n @ingroup ov_core_c_api\n @brief Represents version information that describes all devices and ov runtime library"]
368#[repr(C)]
369#[derive(Debug, Copy, Clone)]
370pub struct ov_core_version_list_t {
371 #[doc = "!< An array of device versions"]
372 pub versions: *mut ov_core_version_t,
373 #[doc = "!< A number of versions in the array"]
374 pub size: usize,
375}
376#[allow(clippy::unnecessary_operation, clippy::identity_op)]
377const _: () = {
378 ["Size of ov_core_version_list_t"][::std::mem::size_of::<ov_core_version_list_t>() - 16usize];
379 ["Alignment of ov_core_version_list_t"]
380 [::std::mem::align_of::<ov_core_version_list_t>() - 8usize];
381 ["Offset of field: ov_core_version_list_t::versions"]
382 [::std::mem::offset_of!(ov_core_version_list_t, versions) - 0usize];
383 ["Offset of field: ov_core_version_list_t::size"]
384 [::std::mem::offset_of!(ov_core_version_list_t, size) - 8usize];
385};
386#[doc = " @struct ov_available_devices_t\n @ingroup ov_core_c_api\n @brief Represent all available devices."]
387#[repr(C)]
388#[derive(Debug, Copy, Clone)]
389pub struct ov_available_devices_t {
390 #[doc = "!< devices' name"]
391 pub devices: *mut *mut ::std::os::raw::c_char,
392 #[doc = "!< devices' number"]
393 pub size: usize,
394}
395#[allow(clippy::unnecessary_operation, clippy::identity_op)]
396const _: () = {
397 ["Size of ov_available_devices_t"][::std::mem::size_of::<ov_available_devices_t>() - 16usize];
398 ["Alignment of ov_available_devices_t"]
399 [::std::mem::align_of::<ov_available_devices_t>() - 8usize];
400 ["Offset of field: ov_available_devices_t::devices"]
401 [::std::mem::offset_of!(ov_available_devices_t, devices) - 0usize];
402 ["Offset of field: ov_available_devices_t::size"]
403 [::std::mem::offset_of!(ov_available_devices_t, size) - 8usize];
404};
405#[repr(C)]
406#[derive(Debug, Copy, Clone)]
407pub struct ov_preprocess_prepostprocessor {
408 _unused: [u8; 0],
409}
410#[doc = " @struct ov_preprocess_prepostprocessor_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_prepostprocessor_t from ov_preprocess_prepostprocessor"]
411pub type ov_preprocess_prepostprocessor_t = ov_preprocess_prepostprocessor;
412#[repr(C)]
413#[derive(Debug, Copy, Clone)]
414pub struct ov_preprocess_input_info {
415 _unused: [u8; 0],
416}
417#[doc = " @struct ov_preprocess_input_info_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_input_info_t from ov_preprocess_input_info"]
418pub type ov_preprocess_input_info_t = ov_preprocess_input_info;
419#[repr(C)]
420#[derive(Debug, Copy, Clone)]
421pub struct ov_preprocess_input_tensor_info {
422 _unused: [u8; 0],
423}
424#[doc = " @struct ov_preprocess_input_tensor_info_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_input_tensor_info_t from ov_preprocess_input_tensor_info"]
425pub type ov_preprocess_input_tensor_info_t = ov_preprocess_input_tensor_info;
426#[repr(C)]
427#[derive(Debug, Copy, Clone)]
428pub struct ov_preprocess_output_info {
429 _unused: [u8; 0],
430}
431#[doc = " @struct ov_preprocess_output_info_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_output_info_t from ov_preprocess_output_info"]
432pub type ov_preprocess_output_info_t = ov_preprocess_output_info;
433#[repr(C)]
434#[derive(Debug, Copy, Clone)]
435pub struct ov_preprocess_output_tensor_info {
436 _unused: [u8; 0],
437}
438#[doc = " @struct ov_preprocess_output_tensor_info_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_output_tensor_info_t from ov_preprocess_output_tensor_info"]
439pub type ov_preprocess_output_tensor_info_t = ov_preprocess_output_tensor_info;
440#[repr(C)]
441#[derive(Debug, Copy, Clone)]
442pub struct ov_preprocess_input_model_info {
443 _unused: [u8; 0],
444}
445#[doc = " @struct ov_preprocess_input_model_info_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_input_model_info_t from ov_preprocess_input_model_info"]
446pub type ov_preprocess_input_model_info_t = ov_preprocess_input_model_info;
447#[repr(C)]
448#[derive(Debug, Copy, Clone)]
449pub struct ov_preprocess_preprocess_steps {
450 _unused: [u8; 0],
451}
452#[doc = " @struct ov_preprocess_preprocess_steps_t\n @ingroup ov_prepostprocess_c_api\n @brief type define ov_preprocess_preprocess_steps_t from ov_preprocess_preprocess_steps"]
453pub type ov_preprocess_preprocess_steps_t = ov_preprocess_preprocess_steps;
454#[repr(u32)]
455#[doc = " @enum ov_color_format_e\n @ingroup ov_prepostprocess_c_api\n @brief This enum contains enumerations for color format."]
456#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
457pub enum ov_color_format_e {
458 #[doc = "!< Undefine color format"]
459 UNDEFINE = 0,
460 #[doc = "!< Image in NV12 format as single tensor"]
461 NV12_SINGLE_PLANE = 1,
462 #[doc = "!< Image in NV12 format represented as separate tensors for Y and UV planes."]
463 NV12_TWO_PLANES = 2,
464 #[doc = "!< Image in I420 (YUV) format as single tensor"]
465 I420_SINGLE_PLANE = 3,
466 #[doc = "!< Image in I420 format represented as separate tensors for Y, U and V planes."]
467 I420_THREE_PLANES = 4,
468 #[doc = "!< Image in RGB interleaved format (3 channels)"]
469 RGB = 5,
470 #[doc = "!< Image in BGR interleaved format (3 channels)"]
471 BGR = 6,
472 #[doc = "!< Image in GRAY format (1 channel)"]
473 GRAY = 7,
474 #[doc = "!< Image in RGBX interleaved format (4 channels)"]
475 RGBX = 8,
476 #[doc = "!< Image in BGRX interleaved format (4 channels)"]
477 BGRX = 9,
478}
479#[repr(u32)]
480#[doc = " @enum ov_preprocess_resize_algorithm_e\n @ingroup ov_prepostprocess_c_api\n @brief This enum contains codes for all preprocess resize algorithm."]
481#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
482pub enum ov_preprocess_resize_algorithm_e {
483 #[doc = "!< linear algorithm"]
484 RESIZE_LINEAR = 0,
485 #[doc = "!< cubic algorithm"]
486 RESIZE_CUBIC = 1,
487 #[doc = "!< nearest algorithm"]
488 RESIZE_NEAREST = 2,
489}
490#[repr(u32)]
491#[doc = " @enum ov_padding_mode_e\n @ingroup ov_prepostprocess_c_api\n @brief This enum contains enumeration for padding mode."]
492#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
493pub enum ov_padding_mode_e {
494 #[doc = "!< Pads with given constant value."]
495 CONSTANT = 0,
496 #[doc = "!< Pads with tensor edge values."]
497 EDGE = 1,
498 #[doc = "!< Pads with reflection of tensor data along axis. Values on the edges are not duplicated."]
499 REFLECT = 2,
500 #[doc = "!< Pads similar like `REFLECT` but values on the edges are duplicated."]
501 SYMMETRIC = 3,
502}