Searched refs:qrcodegen_Ecc (Results 1 – 4 of 4) sorted by relevance
/third_party/qrcodegen/c/ |
D | qrcodegen.h | 57 enum qrcodegen_Ecc { enum 188 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl); 227 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl); 264 enum qrcodegen_Ecc ecl, uint8_t tempBuffer[], uint8_t qrcode[]); 302 …n_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcodegen_Ecc ecl,
|
D | qrcodegen.c | 57 testable void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t resu… 58 testable int getNumDataCodewords(int version, enum qrcodegen_Ecc ecl); 68 static void drawFormatBits(enum qrcodegen_Ecc ecl, enum qrcodegen_Mask mask, uint8_t qrcode[]); 130 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeText() 168 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeBinary() 197 enum qrcodegen_Ecc ecl, uint8_t tempBuffer[], uint8_t qrcode[]) { in qrcodegen_encodeSegments() 204 …n_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcodegen_Ecc ecl, in qrcodegen_encodeSegmentsAdvanced() 226 if (boostEcl && dataUsedBits <= getNumDataCodewords(version, (enum qrcodegen_Ecc)i) * 8) in qrcodegen_encodeSegmentsAdvanced() 227 ecl = (enum qrcodegen_Ecc)i; in qrcodegen_encodeSegmentsAdvanced() 294 testable void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t resu… in addEccAndInterleave() [all …]
|
D | qrcodegen-test.c | 49 void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t result[]); 50 int getNumDataCodewords(int version, enum qrcodegen_Ecc ecl); 108 static uint8_t *addEccAndInterleaveReference(const uint8_t *data, int version, enum qrcodegen_Ecc e… in addEccAndInterleaveReference() 163 size_t dataLen = (size_t)getNumDataCodewords(version, (enum qrcodegen_Ecc)ecl); in testAddEccAndInterleave() 171 uint8_t *expectOutput = addEccAndInterleaveReference(pureData, version, (enum qrcodegen_Ecc)ecl); in testAddEccAndInterleave() 185 addEccAndInterleave(paddedData, version, (enum qrcodegen_Ecc)ecl, actualOutput); in testAddEccAndInterleave() 232 assert(getNumDataCodewords(tc[0], (enum qrcodegen_Ecc)tc[1]) == tc[2]); in testGetNumDataCodewords()
|
D | qrcodegen-demo.c | 59 enum qrcodegen_Ecc errCorLvl = qrcodegen_Ecc_LOW; // Error correction level in doBasicDemo()
|