Go to the documentation of this file.
1 
10 #ifndef SC_BARCODE_GENERATOR_H_
11 #define SC_BARCODE_GENERATOR_H_
12 
13 #include <stdlib.h>
15 #include <Scandit/ScConfig.h>
16 #include <Scandit/ScCommon.h>
17 #include <Scandit/ScBarcode.h>
19 
21 
33 typedef struct ScOpaqueBarcodeGenerator ScBarcodeGenerator;
36 
55 SC_EXPORT
57  ScSymbology symbology,
58  ScError *out_error);
59 
76 SC_EXPORT
78  ScSymbology symbology,
79  char const *json_options,
80  ScError *out_error);
81 
98 SC_EXPORT
100  char const *json_options,
101  ScError *out_error);
102 
111 SC_EXPORT
113 
130 SC_EXPORT
132  uint8_t const *data,
133  size_t data_length,
134  ScEncodingArray const encoding,
135  ScError *out_error);
136 
138 
139 #endif // SC_BARCODE_GENERATOR_H_
Opaque recognition context data structure.
void sc_barcode_generator_free(ScBarcodeGenerator *generator)
Free a previously instantiated barcode generator. May be null.
A 2-dimensional bitmap/image.
Definition: ScCommon.h:332
ScBarcodeGenerator * sc_barcode_generator_new(ScRecognitionContext const *context, ScSymbology symbology, ScError *out_error)
Create a new barcode generator instance for the given symbology.
Recognition context interface.
Functions for retrieving barcode information.
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
A 1d/2d barcode generator.
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:27
void sc_barcode_generator_set_options(ScBarcodeGenerator *generator, char const *json_options, ScError *out_error)
sets the options on a given barcode generator
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
ScImageBuffer * sc_barcode_generator_generate(ScBarcodeGenerator const *generator, uint8_t const *data, size_t data_length, ScEncodingArray const encoding, ScError *out_error)
Generates an image containing a barcode encoding the provided data.
ScBarcodeGenerator * sc_barcode_generator_new_with_options(ScRecognitionContext const *context, ScSymbology symbology, char const *json_options, ScError *out_error)
Create a new barcode generator instance for the given symbology and options.
Structure for holding error information.
Definition: ScCommon.h:264
Common definitions used throughout the ScanditSDK API.
Common functions and data structures.
An array of encoding ranges.
Definition: ScEncodingArray.h:68
Functions to manage an array of encoding ranges.