Lines Matching defs:bits
267 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available
276 sb << "Data length = " << dataUsedBits << " bits, ";
277 sb << "Max capacity = " << dataCapacityBits << " bits";
310 // Pack bits into bytes in big endian
355 drawFormatBits(msk); // Overwrite old format bits
417 // Calculate error correction code and pack bits
422 int bits = (data << 10 | rem) ^ 0x5412; // uint15
423 assert(bits >> 15 == 0);
427 setFunctionModule(8, i, getBit(bits, i));
428 setFunctionModule(8, 7, getBit(bits, 6));
429 setFunctionModule(8, 8, getBit(bits, 7));
430 setFunctionModule(7, 8, getBit(bits, 8));
432 setFunctionModule(14 - i, 8, getBit(bits, i));
436 setFunctionModule(size - 1 - i, 8, getBit(bits, i));
438 setFunctionModule(8, size - 15 + i, getBit(bits, i));
447 // Calculate error correction code and pack bits
451 long bits = static_cast<long>(version) << 12 | rem; // uint18
452 assert(bits >> 18 == 0);
456 bool bit = getBit(bits, i);
554 // If this QR Code has any remainder bits (0 to 7), they were assigned as