Lines Matching full:code
2 * QR Code generator library (C)
5 * https://www.nayuki.io/page/qr-code-generator-library
40 * This library creates QR Code symbols, which is a type of two-dimension barcode.
42 * A QR Code structure is an immutable square grid of black and white cells.
43 * The library provides functions to create a QR Code from text or binary data.
44 * The library covers the QR Code Model 2 specification, supporting all versions (sizes)
47 * Ways to create a QR Code object:
58 * The error correction level in a QR Code symbol.
63 qrcodegen_Ecc_LOW = 0, // The QR Code can tolerate about 7% erroneous codewords
64 qrcodegen_Ecc_MEDIUM, // The QR Code can tolerate about 15% erroneous codewords
65 qrcodegen_Ecc_QUARTILE, // The QR Code can tolerate about 25% erroneous codewords
66 qrcodegen_Ecc_HIGH, // The QR Code can tolerate about 30% erroneous codewords
71 * The mask pattern used in a QR Code symbol.
74 // A special value to tell the QR Code encoder to
102 * A segment of character/binary/control data in a QR Code symbol.
107 * Even in the most favorable conditions, a QR Code can only hold 7089 characters of data.
110 * the largest QR Code (version 40) has 31329 modules.
135 #define qrcodegen_VERSION_MIN 1 // The minimum version number supported in the QR Code Model 2 s…
136 #define qrcodegen_VERSION_MAX 40 // The maximum version number supported in the QR Code Model 2 s…
138 // Calculates the number of bytes needed to store any QR Code up to and including the given version…
140 // can store any single QR Code from version 1 to 25 (inclusive). The result fits in an int (or int…
144 // The worst-case number of bytes needed to store one QR Code, up to and including
154 * Encodes the given text string to a QR Code, returning true if encoding succeeded.
163 * - If successful, the resulting QR Code may use numeric,
165 * - In the most optimistic case, a QR Code at version 40 with low ECC
168 * These numbers represent the hard upper limit of the QR Code standard.
169 * - Please consult the QR Code specification for information on
177 * Encodes the given binary data to a QR Code, returning true if encoding succeeded.
181 * valid UTF-8 text, but is not required by the QR Code standard.
188 * - If successful, the resulting QR Code will use byte mode to encode the data.
189 * - In the most optimistic case, a QR Code at version 40 with low ECC can hold any byte
190 * sequence up to length 2953. This is the hard upper limit of the QR Code standard.
191 * - Please consult the QR Code specification for information on
201 * Renders a QR Code representing the given segments at the given error correction level.
202 * The smallest possible QR Code version is automatically chosen for the output. Returns true if
203 * QR Code creation succeeded, or false if the data is too long to fit in any version. The ECC level
209 * result in them being clobbered, but the QR Code output will still be correct.
217 * Renders a QR Code representing the given segments with the given encoding parameters.
218 …* Returns true if QR Code creation succeeded, or false if the data is too long to fit in the range…
219 * The smallest possible QR Code version within the given range is automatically
228 * result in them being clobbered, but the QR Code output will still be correct.
257 * - For byte mode, numChars measures the number of bytes, not Unicode code points.
296 * Returns the side length of the given QR Code, assuming that encoding succeeded.