Lines Matching refs:bitLength

151 		seg.bitLength = calcSegmentBitLength(seg.mode, textLen);  in qrcodegen_encodeText()
152 if (seg.bitLength == -1) in qrcodegen_encodeText()
171 seg.bitLength = calcSegmentBitLength(seg.mode, dataLen); in qrcodegen_encodeBinary()
172 if (seg.bitLength == -1) { in qrcodegen_encodeBinary()
236 for (int j = 0; j < seg->bitLength; j++) in qrcodegen_encodeSegmentsAdvanced()
867 result.bitLength = calcSegmentBitLength(result.mode, len); in qrcodegen_makeBytes()
868 LV_ASSERT(result.bitLength != -1); in qrcodegen_makeBytes()
888 result.bitLength = 0; in qrcodegen_makeNumeric()
898 appendBitsToBuffer(accumData, 10, buf, &result.bitLength); in qrcodegen_makeNumeric()
904 appendBitsToBuffer(accumData, accumCount * 3 + 1, buf, &result.bitLength); in qrcodegen_makeNumeric()
905 LV_ASSERT(result.bitLength == bitLen); in qrcodegen_makeNumeric()
922 result.bitLength = 0; in qrcodegen_makeAlphanumeric()
932 appendBitsToBuffer(accumData, 11, buf, &result.bitLength); in qrcodegen_makeAlphanumeric()
938 appendBitsToBuffer(accumData, 6, buf, &result.bitLength); in qrcodegen_makeAlphanumeric()
939 LV_ASSERT(result.bitLength == bitLen); in qrcodegen_makeAlphanumeric()
950 result.bitLength = 0; in qrcodegen_makeEci()
955 appendBitsToBuffer(assignVal, 8, buf, &result.bitLength); in qrcodegen_makeEci()
958 appendBitsToBuffer(2, 2, buf, &result.bitLength); in qrcodegen_makeEci()
959 appendBitsToBuffer(assignVal, 14, buf, &result.bitLength); in qrcodegen_makeEci()
962 appendBitsToBuffer(6, 3, buf, &result.bitLength); in qrcodegen_makeEci()
963 appendBitsToBuffer(assignVal >> 10, 11, buf, &result.bitLength); in qrcodegen_makeEci()
964 appendBitsToBuffer(assignVal & 0x3FF, 10, buf, &result.bitLength); in qrcodegen_makeEci()
981 int bitLength = segs[i].bitLength; in getTotalBits() local
983 LV_ASSERT(0 <= bitLength && bitLength <= INT16_MAX); in getTotalBits()
988 result += 4L + ccbits + bitLength; in getTotalBits()
1016 seg.bitLength = calcSegmentBitLength(seg.mode, dataLen); in qrcodegen_getMinFitVersion()