ScBarcode.h
Go to the documentation of this file.
1 
10 #ifndef SC_BARCODE_H_
11 #define SC_BARCODE_H_
12 
13 #include <Scandit/ScByteArray.h>
15 #include <Scandit/ScConfig.h>
16 #include <Scandit/ScCommon.h>
17 
18 #if defined(__cplusplus)
19 extern "C" {
20 #endif
21 
29 typedef enum {
132 
193 } ScSymbology;
194 
202 typedef enum {
231 
237 SC_EXPORT
238 SC_EXTERN
240 
244 SC_EXPORT
245 SC_EXTERN
247 
256 SC_EXPORT
257 char const *sc_symbology_to_string(ScSymbology symbology);
258 
267 SC_EXPORT
268 ScSymbology sc_symbology_from_string(char const *symbology_string);
269 
281 typedef struct ScOpaqueBarcode ScBarcode;
284 
305 SC_EXPORT
307 
325 SC_EXPORT
327 
336 SC_EXPORT
337 void sc_barcode_retain(ScBarcode *barcode);
338 
349 SC_EXPORT
350 void sc_barcode_release(ScBarcode *barcode);
351 
363 SC_EXPORT
365 
380 SC_EXPORT
382 
394 SC_EXPORT
396 
408 SC_EXPORT
410 
426 SC_EXPORT
428 
439 SC_EXPORT
440 uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode);
441 
452 SC_EXPORT
453 int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode);
454 
465 SC_EXPORT
467 
468 #if defined(__cplusplus)
469 }
470 #endif
471 
472 #endif // SC_BARCODE_H_
ScEncodingArray sc_barcode_get_data_encoding(ScBarcode const *barcode)
Get the data encodings.
Definition: ScBarcode.h:117
Definition: ScBarcode.h:37
Functions to manage an array of bytes.
Definition: ScBarcode.h:225
A located or recognized barcode/ 2d code in an image.
Definition: ScBarcode.h:53
Definition: ScBarcode.h:221
char const * sc_symbology_to_string(ScSymbology symbology)
Helper function to convert the symbology enum to a string.
Definition: ScBarcode.h:217
Definition: ScBarcode.h:140
int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode)
Get the symbol count of the barcode.
Definition: ScBarcode.h:229
Definition: ScBarcode.h:156
Definition: ScBarcode.h:85
SC_EXTERN ScSymbology const SC_ALL_SYMBOLOGIES[]
Array holding all symbologies supported by the scandit barcode scanner.
Definition: ScBarcode.h:239
Definition: ScBarcode.h:212
ScByteArray sc_barcode_get_data(ScBarcode const *barcode)
Get the data encoded in the barcode.
void sc_barcode_retain(ScBarcode *barcode)
Increase reference count of barcode object by one.
Definition: ScBarcode.h:103
Definition: ScBarcode.h:57
Definition: ScBarcode.h:45
uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode)
Get the frame ID a barcode was found in.
Definition: ScBarcode.h:206
SC_EXTERN uint16_t const SC_ALL_SYMBOLOGIES_COUNT
The number of elements in the SC_ALL_SYMBOLOGIES array.
Definition: ScBarcode.h:246
Definition: ScBarcode.h:69
Definition: ScBarcode.h:33
Definition: ScBarcode.h:41
Definition: ScBarcode.h:97
Definition: ScBarcode.h:174
A 2-dimensional polygon with 4 corners.
Definition: ScCommon.h:61
Definition: ScBarcode.h:61
ScBool sc_barcode_is_recognized(ScBarcode const *barcode)
Check whether the barcode was fully decoded (recognized).
ScSymbology sc_barcode_get_symbology(ScBarcode const *barcode)
Get the symbology of the barcode.
ScCompositeFlag
Flags to hint that two codes form a composite code.
Definition: ScBarcode.h:202
Definition: ScBarcode.h:180
ScQuadrilateral sc_barcode_get_location(ScBarcode const *barcode)
Get the location of a recognized or located barcode.
Definition: ScBarcode.h:121
ScBool sc_barcode_is_gs1_data_carrier(ScBarcode const *barcode)
Check whether the barcode is a "GS1" code.
Definition: ScBarcode.h:109
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:29
Definition: ScBarcode.h:65
Definition: ScBarcode.h:160
ScCompositeFlag sc_barcode_get_composite_flag(ScBarcode const *barcode)
Flag to hint whether the barcode is part of a composite code.
ScSymbology sc_symbology_from_string(char const *symbology_string)
Helper function to convert a symbology string to its corresponding symbology enum.
Definition: ScBarcode.h:93
Definition: ScBarcode.h:73
void sc_barcode_release(ScBarcode *barcode)
Decrease reference count of barcode object by one.
Definition: ScBarcode.h:49
Definition: ScBarcode.h:144
Common definitions used throughout the ScanditSDK API.
Definition: ScBarcode.h:192
Common functions and data structures.
An array of encoding ranges.
Definition: ScEncodingArray.h:85
Definition: ScBarcode.h:148
Definition: ScBarcode.h:136
Definition: ScBarcode.h:186
Definition: ScBarcode.h:152
Definition: ScBarcode.h:168
Definition: ScBarcode.h:77
Definition: ScBarcode.h:89
Definition: ScBarcode.h:164
Definition: ScBarcode.h:81
Functions to manage an array of encoding ranges.
A null terminated array of bytes.
Definition: ScBarcode.h:113
Definition: ScBarcode.h:131
Definition: ScBarcode.h:127
ScBool sc_barcode_is_color_inverted(ScBarcode const *barcode)
Get the color of the barcode.
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:127