Lines Matching refs:msk
320 QrCode::QrCode(int ver, Ecc ecl, const vector<uint8_t> &dataCodewords, int msk) :
326 if (msk < -1 || msk > 7)
339 if (msk == -1) { // Automatically choose best mask
346 msk = i;
352 assert(0 <= msk && msk <= 7);
353 mask = msk;
354 applyMask(msk); // Apply the final choice of mask
355 drawFormatBits(msk); // Overwrite old format bits
416 void QrCode::drawFormatBits(int msk) {
418 int data = getFormatBits(errorCorrectionLevel) << 3 | msk; // errCorrLvl is uint2, msk is uint3
563 void QrCode::applyMask(int msk) {
564 if (msk < 0 || msk > 7)
570 switch (msk) {