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
27typedef enum {
197
205typedef enum {
234
240SC_EXPORT
241SC_EXTERN
243
247SC_EXPORT
248SC_EXTERN
250
259SC_EXPORT
260char const *sc_symbology_to_string(ScSymbology symbology);
261
270SC_EXPORT
271ScSymbology sc_symbology_from_string(char const *symbology_string);
272
285typedef struct ScOpaqueBarcode ScBarcode;
286
307SC_EXPORT
309
327SC_EXPORT
329
338SC_EXPORT
339void sc_barcode_retain(ScBarcode const *barcode);
340
351SC_EXPORT
352void sc_barcode_release(ScBarcode const *barcode);
353
365SC_EXPORT
367
382SC_EXPORT
384
396SC_EXPORT
398
410SC_EXPORT
412
428SC_EXPORT
430
441SC_EXPORT
442uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode);
443
454SC_EXPORT
456
467SC_EXPORT
469
487SC_EXPORT
489
507SC_EXPORT
508char const *sc_barcode_get_file_id(ScBarcode const *barcode);
509
528SC_EXPORT
530
546SC_EXPORT
548
550
551#endif // SC_BARCODE_H_
ScSymbology sc_symbology_from_string(char const *symbology_string)
Helper function to convert a symbology string to its corresponding symbology enum.
SC_EXTERN uint16_t const SC_ALL_SYMBOLOGIES_COUNT
The number of elements in the SC_ALL_SYMBOLOGIES array.
Definition: ScBarcode.h:249
ScCompositeFlag
Flags to hint that two codes form a composite code.
Definition: ScBarcode.h:205
@ SC_COMPOSITE_FLAG_LINKED
Definition: ScBarcode.h:220
@ SC_COMPOSITE_FLAG_UNKNOWN
Definition: ScBarcode.h:215
@ SC_COMPOSITE_FLAG_NONE
Definition: ScBarcode.h:209
@ SC_COMPOSITE_FLAG_GS1_B
Definition: ScBarcode.h:228
@ SC_COMPOSITE_FLAG_GS1_A
Definition: ScBarcode.h:224
@ SC_COMPOSITE_FLAG_GS1_C
Definition: ScBarcode.h:232
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:27
@ SC_SYMBOLOGY_MICRO_QR
Definition: ScBarcode.h:147
@ SC_SYMBOLOGY_UPCE
Definition: ScBarcode.h:45
@ SC_SYMBOLOGY_EAN8
Definition: ScBarcode.h:41
@ SC_SYMBOLOGY_GS1_DATABAR_LIMITED
Definition: ScBarcode.h:117
@ SC_SYMBOLOGY_CODE128
Definition: ScBarcode.h:49
@ SC_SYMBOLOGY_EAN13_UPCA
Definition: ScBarcode.h:37
@ SC_SYMBOLOGY_QR
Definition: ScBarcode.h:65
@ SC_SYMBOLOGY_CODE39
Definition: ScBarcode.h:53
@ SC_SYMBOLOGY_CODE32
Definition: ScBarcode.h:151
@ SC_SYMBOLOGY_INTERLEAVED_2_OF_5
Definition: ScBarcode.h:61
@ SC_SYMBOLOGY_AUSTRALIAN_POST_4STATE
Definition: ScBarcode.h:185
@ SC_SYMBOLOGY_ARUCO
Definition: ScBarcode.h:173
@ SC_SYMBOLOGY_KIX
Definition: ScBarcode.h:139
@ SC_SYMBOLOGY_DATA_MATRIX
Definition: ScBarcode.h:69
@ SC_SYMBOLOGY_UNKNOWN
Definition: ScBarcode.h:31
@ SC_SYMBOLOGY_MATRIX_2_OF_5
Definition: ScBarcode.h:163
@ SC_SYMBOLOGY_FRENCH_POST
Definition: ScBarcode.h:191
@ SC_SYMBOLOGY_MSI_PLESSEY
Definition: ScBarcode.h:77
@ SC_SYMBOLOGY_IATA_2_OF_5
Definition: ScBarcode.h:159
@ SC_SYMBOLOGY_ROYAL_MAIL_4STATE
Definition: ScBarcode.h:135
@ SC_SYMBOLOGY_CODABAR
Definition: ScBarcode.h:89
@ SC_SYMBOLOGY_UPU_4STATE
Definition: ScBarcode.h:179
@ SC_SYMBOLOGY_CODE11
Definition: ScBarcode.h:113
@ SC_SYMBOLOGY_HAN_XIN
Definition: ScBarcode.h:195
@ SC_SYMBOLOGY_MAXICODE
Definition: ScBarcode.h:109
@ SC_SYMBOLOGY_TWO_DIGIT_ADD_ON
Definition: ScBarcode.h:99
@ SC_SYMBOLOGY_USPS_INTELLIGENT_MAIL
Definition: ScBarcode.h:167
@ SC_SYMBOLOGY_GS1_DATABAR_EXPANDED
Definition: ScBarcode.h:85
@ SC_SYMBOLOGY_FIVE_DIGIT_ADD_ON
Definition: ScBarcode.h:105
@ SC_SYMBOLOGY_MICRO_PDF417
Definition: ScBarcode.h:127
@ SC_SYMBOLOGY_PDF417
Definition: ScBarcode.h:73
@ SC_SYMBOLOGY_AZTEC
Definition: ScBarcode.h:93
@ SC_SYMBOLOGY_DOTCODE
Definition: ScBarcode.h:143
@ SC_SYMBOLOGY_CODE25
Definition: ScBarcode.h:123
@ SC_SYMBOLOGY_LAPA4SC
Definition: ScBarcode.h:155
@ SC_SYMBOLOGY_CODE93
Definition: ScBarcode.h:57
@ SC_SYMBOLOGY_GS1_DATABAR
Definition: ScBarcode.h:81
SC_EXTERN ScSymbology const SC_ALL_SYMBOLOGIES[]
Array holding all symbologies supported by the scandit barcode scanner.
Definition: ScBarcode.h:242
char const * sc_symbology_to_string(ScSymbology symbology)
Helper function to convert the symbology enum to a string.
Functions to manage an array of bytes.
Common functions and data structures.
Common definitions used throughout the ScanditSDK API.
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:157
Functions to manage an array of encoding ranges.
A located or recognized barcode/ 2d code in an image.
char const * sc_barcode_get_file_id(ScBarcode const *barcode)
Get the file ID of the barcode.
ScQuadrilateral sc_barcode_get_location(ScBarcode const *barcode)
Get the location of a recognized or located barcode.
int32_t sc_barcode_get_segment_count(ScBarcode const *barcode)
Get the segment count of the file the barcode belongs to.
ScPoint sc_barcode_get_module_counts(ScBarcode const *barcode)
The module count of a scanned code.
int32_t sc_barcode_get_symbol_count(ScBarcode const *barcode)
Get the symbol count of the barcode.
ScCompositeFlag sc_barcode_get_composite_flag(ScBarcode const *barcode)
Flag to hint whether the barcode is part of a composite code.
ScByteArray sc_barcode_get_data(ScBarcode const *barcode)
Get the data encoded in the barcode.
int32_t sc_barcode_get_segment_index(ScBarcode const *barcode)
Get the segment index of the barcode.
ScBool sc_barcode_is_color_inverted(ScBarcode const *barcode)
Get the color of the barcode.
uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode)
Get the frame ID a barcode was found in.
ScSymbology sc_barcode_get_symbology(ScBarcode const *barcode)
Get the symbology of the barcode.
ScBool sc_barcode_is_gs1_data_carrier(ScBarcode const *barcode)
Check whether the barcode is a "GS1" code.
ScBool sc_barcode_is_recognized(ScBarcode const *barcode)
Check whether the barcode was fully decoded (recognized).
void sc_barcode_release(ScBarcode const *barcode)
Decrease reference count of barcode object by one.
ScEncodingArray sc_barcode_get_data_encoding(ScBarcode const *barcode)
Get the data encodings.
void sc_barcode_retain(ScBarcode const *barcode)
Increase reference count of barcode object by one.
A null terminated array of bytes.
An array of encoding ranges.
Definition: ScEncodingArray.h:68
A 2-dimensional point with integer precision.
Definition: ScCommon.h:26
A 2-dimensional polygon with 4 corners.
Definition: ScCommon.h:61