| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ | |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ | |
| 9 | |
| 10 class CBC_QRCoderErrorCorrectionLevel; | |
| 11 class CBC_QRCoderFormatInformation { | |
| 12 private: | |
| 13 static const int32_t FORMAT_INFO_MASK_QR; | |
| 14 static const int32_t FORMAT_INFO_DECODE_LOOKUP[32][2]; | |
| 15 static const int32_t BITS_SET_IN_HALF_BYTE[16]; | |
| 16 CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevl; | |
| 17 uint8_t m_dataMask; | |
| 18 | |
| 19 public: | |
| 20 CBC_QRCoderFormatInformation(int32_t formatInfo); | |
| 21 virtual ~CBC_QRCoderFormatInformation(); | |
| 22 uint8_t GetDataMask(); | |
| 23 CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel(); | |
| 24 | |
| 25 static int32_t NumBitsDiffering(int32_t a, int32_t b); | |
| 26 static CBC_QRCoderFormatInformation* DecodeFormatInformation( | |
| 27 int32_t maskedFormatInfo); | |
| 28 static CBC_QRCoderFormatInformation* DoDecodeFormatInformation( | |
| 29 int32_t maskedFormatInfo); | |
| 30 }; | |
| 31 | |
| 32 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ | |
| OLD | NEW |