Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Android

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>
14 #include <Scandit/ScConfig.h>
15 #include <Scandit/ScCommon.h>
16 
17 #if defined(__cplusplus)
18 extern "C" {
19 #endif
20 
28 typedef enum {
32  SC_SYMBOLOGY_UNKNOWN = 0x0000000,
36  SC_SYMBOLOGY_EAN13 = 0x0000001,
40  SC_SYMBOLOGY_EAN8 = 0x0000002,
44  SC_SYMBOLOGY_UPCA = 0x0000004,
48  SC_SYMBOLOGY_UPCE = 0x0000008,
52  SC_SYMBOLOGY_CODE128 = 0x0000010,
56  SC_SYMBOLOGY_CODE39 = 0x0000020,
60  SC_SYMBOLOGY_CODE93 = 0x0000040,
68  SC_SYMBOLOGY_QR = 0x0000100,
76  SC_SYMBOLOGY_PDF417 = 0x0000400,
92  SC_SYMBOLOGY_CODABAR = 0x0004000,
96  SC_SYMBOLOGY_AZTEC = 0x0008000,
103 
117  SC_SYMBOLOGY_CODE11 = 0x0080000,
127  SC_SYMBOLOGY_CODE25 = 0x0200000,
132 
136  SC_SYMBOLOGY_RM4SCC = 0x0800000,
137 
141  SC_SYMBOLOGY_KIX = 0x1000000
142 } ScSymbology;
143 
151 typedef enum {
180 
186 SC_EXPORT
188 
192 SC_EXPORT
194 
195 
204 SC_EXPORT const char* sc_symbology_to_string(ScSymbology symbology);
205 
206 
218 typedef struct ScOpaqueBarcode ScBarcode;
221 
242 SC_EXPORT ScByteArray
243 sc_barcode_get_data(const ScBarcode *barcode);
244 
253 SC_EXPORT void sc_barcode_retain(ScBarcode *barcode);
254 
265 SC_EXPORT void sc_barcode_release(ScBarcode *barcode);
266 
267 
279 SC_EXPORT ScSymbology sc_barcode_get_symbology(const ScBarcode *barcode);
280 
295 SC_EXPORT ScBool sc_barcode_is_gs1_data_carrier(const ScBarcode *barcode);
296 
309 
321 SC_EXPORT ScBool sc_barcode_is_recognized(const ScBarcode *barcode);
322 
338 SC_EXPORT ScQuadrilateral sc_barcode_get_location(const ScBarcode *barcode);
339 
350 SC_EXPORT uint32_t sc_barcode_get_frame_id(const ScBarcode *barcode);
351 
362 SC_EXPORT int32_t sc_barcode_get_symbol_count(const ScBarcode *barcode);
363 
364 #if defined(__cplusplus)
365 }
366 #endif
367 
368 
369 #endif //SC_BARCODE_H_
370 
371 
Definition: ScBarcode.h:117
Definition: ScBarcode.h:36
Functions to manage an array of bytes.
Definition: ScBarcode.h:174
A located or recognized barcode/ 2d code in an image.
Definition: ScBarcode.h:52
Definition: ScBarcode.h:170
SC_EXTERN const uint16_t SC_ALL_SYMBOLOGIES_COUNT
The number of elements in the SC_ALL_SYMBOLOGIES array.
Definition: ScBarcode.h:193
ScCompositeFlag sc_barcode_get_composite_flag(const ScBarcode *barcode)
Flag to hint whether the barcode is part of a composite code.
Definition: ScBarcode.h:166
Definition: ScBarcode.h:141
ScSymbology sc_barcode_get_symbology(const ScBarcode *barcode)
Get the symbology of the barcode.
Definition: ScBarcode.h:178
Definition: ScBarcode.h:84
Definition: ScBarcode.h:161
void sc_barcode_retain(ScBarcode *barcode)
Increase reference count of barcode object by one.
Definition: ScBarcode.h:102
Definition: ScBarcode.h:56
Definition: ScBarcode.h:44
Definition: ScBarcode.h:155
Definition: ScBarcode.h:68
Definition: ScBarcode.h:32
Definition: ScBarcode.h:40
ScQuadrilateral sc_barcode_get_location(const ScBarcode *barcode)
Get the location of a recognized or located barcode.
Definition: ScBarcode.h:96
A 2-dimensional polygon with 4 corners.
Definition: ScCommon.h:63
Definition: ScBarcode.h:60
ScCompositeFlag
Flags to hint that two codes form a composite code.
Definition: ScBarcode.h:151
ScBool sc_barcode_is_gs1_data_carrier(const ScBarcode *barcode)
Check whether the barcode is a "GS1" code.
Definition: ScBarcode.h:121
SC_EXTERN const ScSymbology SC_ALL_SYMBOLOGIES[]
Array holding all symbologies supported by the scandit barcode scanner.
Definition: ScBarcode.h:187
Definition: ScBarcode.h:109
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:28
Definition: ScBarcode.h:64
Definition: ScBarcode.h:92
uint32_t sc_barcode_get_frame_id(const ScBarcode *barcode)
Get the frame ID a barcode was found in.
Definition: ScBarcode.h:72
void sc_barcode_release(ScBarcode *barcode)
Decrease reference count of barcode object by one.
Definition: ScBarcode.h:48
#define SC_EXTERN
Use this for defining external symbols.
Definition: ScConfig.h:17
ScBool sc_barcode_is_recognized(const ScBarcode *barcode)
Check whether the barcode was fully decoded (recognized).
Common definitions used throughout the ScanditSDK API.
Common functions and data structures.
Definition: ScBarcode.h:136
const char * sc_symbology_to_string(ScSymbology symbology)
Helper function convert the symbology enum to a string.
Definition: ScBarcode.h:76
Definition: ScBarcode.h:88
Definition: ScBarcode.h:80
A nul terminated array of bytes.
Definition: ScByteArray.h:31
Definition: ScBarcode.h:113
Definition: ScBarcode.h:131
Definition: ScBarcode.h:127
ScByteArray sc_barcode_get_data(const ScBarcode *barcode)
Get the data encoded in the barcode.
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:123
int32_t sc_barcode_get_symbol_count(const ScBarcode *barcode)
Get the symbol count of the barcode.