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 {
193
201typedef enum {
230
236SC_EXPORT
237SC_EXTERN
239
243SC_EXPORT
244SC_EXTERN
246
255SC_EXPORT
256char const *sc_symbology_to_string(ScSymbology symbology);
257
266SC_EXPORT
267ScSymbology sc_symbology_from_string(char const *symbology_string);
268
281typedef struct ScOpaqueBarcode ScBarcode;
282
303SC_EXPORT
305
323SC_EXPORT
325
334SC_EXPORT
335void sc_barcode_retain(ScBarcode const *barcode);
336
347SC_EXPORT
348void sc_barcode_release(ScBarcode const *barcode);
349
361SC_EXPORT
363
378SC_EXPORT
380
392SC_EXPORT
394
406SC_EXPORT
408
424SC_EXPORT
426
437SC_EXPORT
438uint32_t sc_barcode_get_frame_id(ScBarcode const *barcode);
439
450SC_EXPORT
452
463SC_EXPORT
465
483SC_EXPORT
485
500SC_EXPORT
501char const *sc_barcode_get_file_id(ScBarcode const *barcode);
502
521SC_EXPORT
523
539SC_EXPORT
541
543
544#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:245
ScCompositeFlag
Flags to hint that two codes form a composite code.
Definition: ScBarcode.h:201
@ SC_COMPOSITE_FLAG_LINKED
Definition: ScBarcode.h:216
@ SC_COMPOSITE_FLAG_UNKNOWN
Definition: ScBarcode.h:211
@ SC_COMPOSITE_FLAG_NONE
Definition: ScBarcode.h:205
@ SC_COMPOSITE_FLAG_GS1_B
Definition: ScBarcode.h:224
@ SC_COMPOSITE_FLAG_GS1_A
Definition: ScBarcode.h:220
@ SC_COMPOSITE_FLAG_GS1_C
Definition: ScBarcode.h:228
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_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:238
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:167
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