Searched refs:dataCapacityBits (Results 1 – 7 of 7) sorted by relevance
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/ |
D | QrCode.java | 152 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available in encodeSegments() local 154 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in encodeSegments() 159 …g = String.format("Data length = %d bits, Max capacity = %d bits", dataUsedBits, dataCapacityBits); in encodeSegments() 181 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; in encodeSegments() local 182 assert bb.bitLength <= dataCapacityBits; in encodeSegments() 183 bb.appendBits(0, Math.min(4, dataCapacityBits - bb.bitLength)); in encodeSegments() 188 for (int padByte = 0xEC; bb.bitLength < dataCapacityBits; padByte ^= 0xEC ^ 0x11) in encodeSegments()
|
D | QrSegmentAdvanced.java | 79 …int dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits avail… in makeSegmentsOptimally() local 81 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in makeSegmentsOptimally() 86 …g = String.format("Data length = %d bits, Max capacity = %d bits", dataUsedBits, dataCapacityBits); in makeSegmentsOptimally()
|
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/ |
D | QrCode.java | 152 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available in encodeSegments() local 154 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in encodeSegments() 159 …g = String.format("Data length = %d bits, Max capacity = %d bits", dataUsedBits, dataCapacityBits); in encodeSegments() 181 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; in encodeSegments() local 182 assert bb.bitLength() <= dataCapacityBits; in encodeSegments() 183 bb.appendBits(0, Math.min(4, dataCapacityBits - bb.bitLength())); in encodeSegments() 188 for (int padByte = 0xEC; bb.bitLength() < dataCapacityBits; padByte ^= 0xEC ^ 0x11) in encodeSegments()
|
D | QrSegmentAdvanced.java | 79 …int dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits avail… in makeSegmentsOptimally() local 81 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in makeSegmentsOptimally() 86 …g = String.format("Data length = %d bits, Max capacity = %d bits", dataUsedBits, dataCapacityBits); in makeSegmentsOptimally()
|
/third_party/qrcodegen/cpp/ |
D | qrcodegen.cpp | 267 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available in encodeSegments() local 269 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in encodeSegments() 277 sb << "Max capacity = " << dataCapacityBits << " bits"; in encodeSegments() 300 size_t dataCapacityBits = static_cast<size_t>(getNumDataCodewords(version, ecl)) * 8; in encodeSegments() local 301 assert(bb.size() <= dataCapacityBits); in encodeSegments() 302 bb.appendBits(0, std::min(4, static_cast<int>(dataCapacityBits - bb.size()))); in encodeSegments() 307 for (uint8_t padByte = 0xEC; bb.size() < dataCapacityBits; padByte ^= 0xEC ^ 0x11) in encodeSegments()
|
/third_party/qrcodegen/typescript-javascript/ |
D | qrcodegen.ts | 100 …const dataCapacityBits: int = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bit… constant 102 if (usedBits <= dataCapacityBits) { 127 const dataCapacityBits: int = QrCode.getNumDataCodewords(version, ecl) * 8; constant 128 assert(bb.length <= dataCapacityBits); 129 appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb); 134 for (let padByte = 0xEC; bb.length < dataCapacityBits; padByte ^= 0xEC ^ 0x11)
|
/third_party/qrcodegen/c/ |
D | qrcodegen.c | 213 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available in qrcodegen_encodeSegmentsAdvanced() local 215 if (dataUsedBits != -1 && dataUsedBits <= dataCapacityBits) in qrcodegen_encodeSegmentsAdvanced() 245 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; in qrcodegen_encodeSegmentsAdvanced() local 246 assert(bitLen <= dataCapacityBits); in qrcodegen_encodeSegmentsAdvanced() 247 int terminatorBits = dataCapacityBits - bitLen; in qrcodegen_encodeSegmentsAdvanced() 255 for (uint8_t padByte = 0xEC; bitLen < dataCapacityBits; padByte ^= 0xEC ^ 0x11) in qrcodegen_encodeSegmentsAdvanced()
|