ScBarcodeGenerator.h
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 
20 #if defined(__cplusplus)
21 extern "C" {
22 #endif
23 
35 typedef struct ScOpaqueBarcodeGenerator ScBarcodeGenerator;
38 
57 SC_EXPORT
59  ScSymbology symbology,
60  ScError *out_error);
61 
78 SC_EXPORT
80  ScSymbology symbology,
81  char const *json_options,
82  ScError *out_error);
83 
100 SC_EXPORT
102  char const *json_options,
103  ScError *out_error);
104 
113 SC_EXPORT
115 
132 SC_EXPORT
134  uint8_t const *data,
135  size_t data_length,
136  ScEncodingArray const encoding,
137  ScError *out_error);
138 
139 #if defined(__cplusplus)
140 }
141 #endif
142 
143 #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.
A 1d/2d barcode generator.
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:29
void sc_barcode_generator_set_options(ScBarcodeGenerator *generator, char const *json_options, ScError *out_error)
sets the options on a given barcode generator
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:85
Functions to manage an array of encoding ranges.