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 
19 
27 typedef enum {
192 } ScSymbology;
193 
201 typedef enum {
230 
236 SC_EXPORT
237 SC_EXTERN
239 
243 SC_EXPORT
244 SC_EXTERN
246 
255 SC_EXPORT
256 char const *sc_symbology_to_string(ScSymbology symbology);
257 
266 SC_EXPORT
267 ScSymbology sc_symbology_from_string(char const *symbology_string);
268 
280 typedef struct ScOpaqueBarcode ScBarcode;
283 
304 SC_EXPORT
306 
324 SC_EXPORT
326 
335 SC_EXPORT
336 void sc_barcode_retain(ScBarcode const *barcode);
337 
348 SC_EXPORT
349 void sc_barcode_release(ScBarcode const *barcode);
350 
362 SC_EXPORT
364 
379 SC_EXPORT
381 
393 SC_EXPORT
395 
407 SC_EXPORT
409 
425 SC_EXPORT
427 
438 SC_EXPORT
439 uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode);
440 
451 SC_EXPORT
452 int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode);
453 
464 SC_EXPORT
466 
484 SC_EXPORT
486 
501 SC_EXPORT
502 char const *sc_barcode_get_file_id(ScBarcode const *barcode);
503 
522 SC_EXPORT
523 int32_t sc_barcode_get_segment_index(ScBarcode const *barcode);
524 
540 SC_EXPORT
541 int32_t sc_barcode_get_segment_count(ScBarcode const *barcode);
542 
544 
545 #endif // SC_BARCODE_H_
ScEncodingArray sc_barcode_get_data_encoding(ScBarcode const *barcode)
Get the data encodings.
Definition: ScBarcode.h:113
Definition: ScBarcode.h:135
Functions to manage an array of bytes.
Definition: ScBarcode.h:224
A located or recognized barcode/ 2d code in an image.
Definition: ScBarcode.h:49
Definition: ScBarcode.h:220
char const * sc_symbology_to_string(ScSymbology symbology)
Helper function to convert the symbology enum to a string.
Definition: ScBarcode.h:216
Definition: ScBarcode.h:139
int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode)
Get the symbol count of the barcode.
Definition: ScBarcode.h:228
Definition: ScBarcode.h:155
Definition: ScBarcode.h:81
SC_EXTERN ScSymbology const SC_ALL_SYMBOLOGIES[]
Array holding all symbologies supported by the scandit barcode scanner.
Definition: ScBarcode.h:238
Definition: ScBarcode.h:211
ScByteArray sc_barcode_get_data(ScBarcode const *barcode)
Get the data encoded in the barcode.
Definition: ScBarcode.h:99
Definition: ScBarcode.h:53
uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode)
Get the frame ID a barcode was found in.
Definition: ScBarcode.h:205
ScPoint sc_barcode_get_module_counts(ScBarcode const *barcode)
The module count of a scanned code.
SC_EXTERN uint16_t const SC_ALL_SYMBOLOGIES_COUNT
The number of elements in the SC_ALL_SYMBOLOGIES array.
Definition: ScBarcode.h:245
Definition: ScBarcode.h:65
Definition: ScBarcode.h:31
Definition: ScBarcode.h:41
Definition: ScBarcode.h:93
Definition: ScBarcode.h:173
A 2-dimensional polygon with 4 corners.
Definition: ScCommon.h:61
Definition: ScBarcode.h:57
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:201
Definition: ScBarcode.h:179
ScQuadrilateral sc_barcode_get_location(ScBarcode const *barcode)
Get the location of a recognized or located barcode.
Definition: ScBarcode.h:117
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
ScBool sc_barcode_is_gs1_data_carrier(ScBarcode const *barcode)
Check whether the barcode is a "GS1" code.
Definition: ScBarcode.h:105
A 2-dimensional point with integer precision.
Definition: ScCommon.h:26
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:27
Definition: ScBarcode.h:61
int32_t sc_barcode_get_segment_count(ScBarcode const *barcode)
Get the segment count of the file the barcode belongs to.
Definition: ScBarcode.h:159
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.
void sc_barcode_retain(ScBarcode const *barcode)
Increase reference count of barcode object by one.
Definition: ScBarcode.h:89
Definition: ScBarcode.h:37
Definition: ScBarcode.h:69
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
int32_t sc_barcode_get_segment_index(ScBarcode const *barcode)
Get the segment index of the barcode.
Definition: ScBarcode.h:45
char const * sc_barcode_get_file_id(ScBarcode const *barcode)
Get the file ID of the barcode.
Definition: ScBarcode.h:143
void sc_barcode_release(ScBarcode const *barcode)
Decrease reference count of barcode object by one.
Common definitions used throughout the ScanditSDK API.
Definition: ScBarcode.h:191
Common functions and data structures.
An array of encoding ranges.
Definition: ScEncodingArray.h:68
Definition: ScBarcode.h:147
Definition: ScBarcode.h:185
Definition: ScBarcode.h:151
Definition: ScBarcode.h:167
Definition: ScBarcode.h:73
Definition: ScBarcode.h:85
Definition: ScBarcode.h:163
Definition: ScBarcode.h:77
Functions to manage an array of encoding ranges.
A null terminated array of bytes.
Definition: ScBarcode.h:109
Definition: ScBarcode.h:127
Definition: ScBarcode.h:123
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:167