Lines Matching refs:LV_ASSERT
185 LV_ASSERT(0 <= numBits && numBits <= 16 && (unsigned long)val >> numBits == 0); in appendBitsToBuffer()
205 LV_ASSERT(segs != NULL || len == 0); in qrcodegen_encodeSegmentsAdvanced()
206 …LV_ASSERT(qrcodegen_VERSION_MIN <= minVersion && minVersion <= maxVersion && maxVersion <= qrcodeg… in qrcodegen_encodeSegmentsAdvanced()
207 LV_ASSERT(0 <= (int)ecl && (int)ecl <= 3 && -1 <= (int)mask && (int)mask <= 7); in qrcodegen_encodeSegmentsAdvanced()
221 LV_ASSERT(dataUsedBits != -1); in qrcodegen_encodeSegmentsAdvanced()
239 LV_ASSERT(bitLen == dataUsedBits); in qrcodegen_encodeSegmentsAdvanced()
243 LV_ASSERT(bitLen <= dataCapacityBits); in qrcodegen_encodeSegmentsAdvanced()
249 LV_ASSERT(bitLen % 8 == 0); in qrcodegen_encodeSegmentsAdvanced()
277 LV_ASSERT(0 <= (int)mask && (int)mask <= 7); in qrcodegen_encodeSegmentsAdvanced()
293 …LV_ASSERT(0 <= (int)ecl && (int)ecl < 4 && qrcodegen_VERSION_MIN <= version && version <= qrcodege… in addEccAndInterleave()
326 LV_ASSERT(0 <= e && e < 4); in getNumDataCodewords()
337 LV_ASSERT(qrcodegen_VERSION_MIN <= ver && ver <= qrcodegen_VERSION_MAX); in getNumRawDataModules()
355 LV_ASSERT(1 <= degree && degree <= qrcodegen_REED_SOLOMON_DEGREE_MAX); in calcReedSolomonGenerator()
381 LV_ASSERT(1 <= degree && degree <= qrcodegen_REED_SOLOMON_DEGREE_MAX); in calcReedSolomonRemainder()
493 LV_ASSERT(bits >> 18 == 0); in drawWhiteFunctionModules()
513 LV_ASSERT(0 <= (int)mask && (int)mask <= 7); in drawFormatBits()
520 LV_ASSERT(bits >> 15 == 0); in drawFormatBits()
594 LV_ASSERT(i == dataLen * 8); in drawCodewords()
604 LV_ASSERT(0 <= (int)mask && (int)mask <= 7); // Disallows qrcodegen_Mask_AUTO in applyMask()
620 default: LV_ASSERT(false); return; in applyMask()
740 LV_ASSERT(qrcode != NULL); in qrcodegen_getSize()
742 LV_ASSERT((qrcodegen_VERSION_MIN * 4 + 17) <= result in qrcodegen_getSize()
750 LV_ASSERT(qrcode != NULL); in qrcodegen_getModule()
759 LV_ASSERT(21 <= qrsize && qrsize <= 177 && 0 <= x && x < qrsize && 0 <= y && y < qrsize); in getModule()
768 LV_ASSERT(21 <= qrsize && qrsize <= 177 && 0 <= x && x < qrsize && 0 <= y && y < qrsize); in setModule()
798 LV_ASSERT(text != NULL); in qrcodegen_isAlphanumeric()
809 LV_ASSERT(text != NULL); in qrcodegen_isNumeric()
823 LV_ASSERT(0 <= temp && temp <= INT16_MAX); in qrcodegen_calcSegmentBufferSize()
852 LV_ASSERT(false); in calcSegmentBitLength()
855 LV_ASSERT(result >= 0); in calcSegmentBitLength()
864 LV_ASSERT(data != NULL || len == 0); in qrcodegen_makeBytes()
868 LV_ASSERT(result.bitLength != -1); in qrcodegen_makeBytes()
879 LV_ASSERT(digits != NULL); in qrcodegen_makeNumeric()
884 LV_ASSERT(bitLen != -1); in qrcodegen_makeNumeric()
894 LV_ASSERT('0' <= c && c <= '9'); in qrcodegen_makeNumeric()
905 LV_ASSERT(result.bitLength == bitLen); in qrcodegen_makeNumeric()
913 LV_ASSERT(text != NULL); in qrcodegen_makeAlphanumeric()
918 LV_ASSERT(bitLen != -1); in qrcodegen_makeAlphanumeric()
928 LV_ASSERT(temp != NULL); in qrcodegen_makeAlphanumeric()
939 LV_ASSERT(result.bitLength == bitLen); in qrcodegen_makeAlphanumeric()
952 LV_ASSERT(false); in qrcodegen_makeEci()
966 LV_ASSERT(false); in qrcodegen_makeEci()
977 LV_ASSERT(segs != NULL || len == 0); in getTotalBits()
982 LV_ASSERT(0 <= numChars && numChars <= INT16_MAX); in getTotalBits()
983 LV_ASSERT(0 <= bitLength && bitLength <= INT16_MAX); in getTotalBits()
985 LV_ASSERT(0 <= ccbits && ccbits <= 16); in getTotalBits()
992 LV_ASSERT(0 <= result && result <= INT16_MAX); in getTotalBits()
1000 LV_ASSERT(qrcodegen_VERSION_MIN <= version && version <= qrcodegen_VERSION_MAX); in numCharCountBits()
1008 default: LV_ASSERT(false); return -1; // Dummy value in numCharCountBits()