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 {
33  SC_SYMBOLOGY_UNKNOWN = 0x0000000,
37  SC_SYMBOLOGY_EAN13 = 0x0000001,
41  SC_SYMBOLOGY_EAN8 = 0x0000002,
45  SC_SYMBOLOGY_UPCA = 0x0000004,
49  SC_SYMBOLOGY_UPCE = 0x0000008,
53  SC_SYMBOLOGY_CODE128 = 0x0000010,
57  SC_SYMBOLOGY_CODE39 = 0x0000020,
61  SC_SYMBOLOGY_CODE93 = 0x0000040,
69  SC_SYMBOLOGY_QR = 0x0000100,
77  SC_SYMBOLOGY_PDF417 = 0x0000400,
93  SC_SYMBOLOGY_CODABAR = 0x0004000,
97  SC_SYMBOLOGY_AZTEC = 0x0008000,
117  SC_SYMBOLOGY_CODE11 = 0x0080000,
127  SC_SYMBOLOGY_CODE25 = 0x0200000,
132 
136  SC_SYMBOLOGY_RM4SCC = 0x0800000,
140  SC_SYMBOLOGY_KIX = 0x1000000,
144  SC_SYMBOLOGY_DOTCODE = 0x2000000,
152  SC_SYMBOLOGY_CODE32 = 0x8000000,
156  SC_SYMBOLOGY_LAPA4SC = 0x10000000,
174  SC_SYMBOLOGY_ARUCO = 0x80000000,
180  SC_SYMBOLOGY_UPU_4STATE = 0x100000000,
187 } ScSymbology;
188 
196 typedef enum {
225 
231 SC_EXPORT
232 SC_EXTERN
234 
238 SC_EXPORT
239 SC_EXTERN
241 
250 SC_EXPORT
251 char const *sc_symbology_to_string(ScSymbology symbology);
252 
261 SC_EXPORT
262 ScSymbology sc_symbology_from_string(char const *symbology_string);
263 
275 typedef struct ScOpaqueBarcode ScBarcode;
278 
299 SC_EXPORT
301 
319 SC_EXPORT
321 
330 SC_EXPORT
331 void sc_barcode_retain(ScBarcode *barcode);
332 
343 SC_EXPORT
344 void sc_barcode_release(ScBarcode *barcode);
345 
357 SC_EXPORT
359 
374 SC_EXPORT
376 
388 SC_EXPORT
390 
402 SC_EXPORT
404 
420 SC_EXPORT
422 
433 SC_EXPORT
434 uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode);
435 
446 SC_EXPORT
447 int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode);
448 
459 SC_EXPORT
461 
462 #if defined(__cplusplus)
463 }
464 #endif
465 
466 #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:219
A located or recognized barcode/ 2d code in an image.
Definition: ScBarcode.h:53
Definition: ScBarcode.h:215
char const * sc_symbology_to_string(ScSymbology symbology)
Helper function to convert the symbology enum to a string.
Definition: ScBarcode.h:211
Definition: ScBarcode.h:140
int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode)
Get the symbol count of the barcode.
Definition: ScBarcode.h:223
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:233
Definition: ScBarcode.h:206
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:200
SC_EXTERN uint16_t const SC_ALL_SYMBOLOGIES_COUNT
The number of elements in the SC_ALL_SYMBOLOGIES array.
Definition: ScBarcode.h:240
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:196
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.
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