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 ScBarcodeGenerator*
58 sc_barcode_generator_new(const ScRecognitionContext *context, ScSymbology symbology, ScError *out_error);
59 
76 SC_EXPORT ScBarcodeGenerator*
78  ScSymbology symbology,
79  const char* json_options,
80  ScError *out_error);
81 
97 SC_EXPORT void
99  const char* json_options,
100  ScError *out_error);
101 
110 SC_EXPORT void
112 
129 SC_EXPORT ScImageBuffer *
131  const uint8_t* data, size_t data_length,
132  const ScEncodingArray encoding,
133  ScError *out_error);
134 
135 #if defined(__cplusplus)
136 }
137 #endif
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.
ScImageBuffer * sc_barcode_generator_generate(const ScBarcodeGenerator *generator, const uint8_t *data, size_t data_length, const ScEncodingArray encoding, ScError *out_error)
Generates an image containing a barcode encoding the provided data.
Recognition context interface.
void sc_barcode_generator_set_options(ScBarcodeGenerator *generator, const char *json_options, ScError *out_error)
sets the options on a given barcode generator
Functions for retrieving barcode information.
A 2-dimensional bitmap/image.
Definition: ScCommon.h:336
A 1d/2d barcode generator.
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:29
ScBarcodeGenerator * sc_barcode_generator_new(const ScRecognitionContext *context, ScSymbology symbology, ScError *out_error)
Create a new barcode generator instance for the given symbology.
Structure for holding error information.
Definition: ScCommon.h:268
Common definitions used throughout the ScanditSDK API.
Common functions and data structures.
An array of encoding ranges.
Definition: ScEncodingArray.h:84
ScBarcodeGenerator * sc_barcode_generator_new_with_options(const ScRecognitionContext *context, ScSymbology symbology, const char *json_options, ScError *out_error)
Create a new barcode generator instance for the given symbology and options.
Functions to manage an array of encoding ranges.