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