Searched refs:bitLen (Results 1 – 1 of 1) sorted by relevance
/lvgl-latest/src/extra/libs/qrcode/ |
D | qrcodegen.c | 55 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen); 184 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen) { in appendBitsToBuffer() argument 186 for (int i = numBits - 1; i >= 0; i--, (*bitLen)++) in appendBitsToBuffer() 187 buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7)); in appendBitsToBuffer() 231 int bitLen = 0; in qrcodegen_encodeSegmentsAdvanced() local 234 appendBitsToBuffer((int)seg->mode, 4, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 235 appendBitsToBuffer(seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 237 appendBitsToBuffer((seg->data[j >> 3] >> (7 - (j & 7))) & 1, 1, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 239 LV_ASSERT(bitLen == dataUsedBits); in qrcodegen_encodeSegmentsAdvanced() 243 LV_ASSERT(bitLen <= dataCapacityBits); in qrcodegen_encodeSegmentsAdvanced() [all …]
|