Searched refs:bitLen (Results 1 – 1 of 1) sorted by relevance
| /lvgl-latest/src/libs/qrcode/ |
| D | qrcodegen.c | 57 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int * bitLen); 190 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int * bitLen) in appendBitsToBuffer() argument 193 for(int i = numBits - 1; i >= 0; i--, (*bitLen)++) in appendBitsToBuffer() 194 buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7)); in appendBitsToBuffer() 240 int bitLen = 0; in qrcodegen_encodeSegmentsAdvanced() local 243 appendBitsToBuffer((int)seg->mode, 4, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 244 appendBitsToBuffer(seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 246 appendBitsToBuffer((seg->data[j >> 3] >> (7 - (j & 7))) & 1, 1, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced() 248 LV_ASSERT(bitLen == dataUsedBits); in qrcodegen_encodeSegmentsAdvanced() 252 LV_ASSERT(bitLen <= dataCapacityBits); in qrcodegen_encodeSegmentsAdvanced() [all …]
|