Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_QRCoderFormatInformation.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _BC_QRCODERFORMATINFORMATION_H_\r
8 #define _BC_QRCODERFORMATINFORMATION_H_\r
9 class CBC_QRCoderErrorCorrectionLevel;\r
10 class CBC_QRCoderFormatInformation;\r
11 class CBC_QRCoderFormatInformation  : public CFX_Object\r
12 {\r
13 private:\r
14     const static FX_INT32 FORMAT_INFO_MASK_QR;\r
15     const static FX_INT32 FORMAT_INFO_DECODE_LOOKUP[32][2];\r
16     const static FX_INT32 BITS_SET_IN_HALF_BYTE[16];\r
17     CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevl;\r
18     FX_BYTE m_dataMask;\r
19 public:\r
20     CBC_QRCoderFormatInformation(FX_INT32 formatInfo);\r
21     virtual ~CBC_QRCoderFormatInformation();\r
22     FX_BYTE GetDataMask();\r
23     CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel();\r
24 \r
25     static FX_INT32 NumBitsDiffering(FX_INT32 a, FX_INT32 b);\r
26     static CBC_QRCoderFormatInformation* DecodeFormatInformation(FX_INT32 maskedFormatInfo);\r
27     static CBC_QRCoderFormatInformation* DoDecodeFormatInformation(FX_INT32 maskedFormatInfo);\r
28 };\r
29 #endif\r