Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: xfa/fxbarcode/qrcode/BC_QRCoderFormatInformation.h

Issue 1814233005: Make a few more const tables smaller. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: format Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fgas/layout/fgas_unicode.h ('k') | xfa/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_
9 9
10 class CBC_QRCoderErrorCorrectionLevel; 10 class CBC_QRCoderErrorCorrectionLevel;
11 class CBC_QRCoderFormatInformation { 11 class CBC_QRCoderFormatInformation {
12 private: 12 private:
13 static const int32_t FORMAT_INFO_MASK_QR; 13 static const uint16_t FORMAT_INFO_MASK_QR;
14 static const int32_t FORMAT_INFO_DECODE_LOOKUP[32][2]; 14 static const uint16_t FORMAT_INFO_DECODE_LOOKUP[32][2];
15 static const int32_t BITS_SET_IN_HALF_BYTE[16]; 15 static const uint8_t BITS_SET_IN_HALF_BYTE[16];
16 CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevl; 16 CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevl;
17 uint8_t m_dataMask; 17 uint8_t m_dataMask;
18 18
19 public: 19 public:
20 CBC_QRCoderFormatInformation(int32_t formatInfo); 20 CBC_QRCoderFormatInformation(int32_t formatInfo);
21 virtual ~CBC_QRCoderFormatInformation(); 21 virtual ~CBC_QRCoderFormatInformation();
22 uint8_t GetDataMask(); 22 uint8_t GetDataMask();
23 CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel(); 23 CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel();
24 24
25 static int32_t NumBitsDiffering(int32_t a, int32_t b); 25 static int32_t NumBitsDiffering(int32_t a, int32_t b);
26 static CBC_QRCoderFormatInformation* DecodeFormatInformation( 26 static CBC_QRCoderFormatInformation* DecodeFormatInformation(
27 int32_t maskedFormatInfo); 27 int32_t maskedFormatInfo);
28 static CBC_QRCoderFormatInformation* DoDecodeFormatInformation( 28 static CBC_QRCoderFormatInformation* DoDecodeFormatInformation(
29 int32_t maskedFormatInfo); 29 int32_t maskedFormatInfo);
30 }; 30 };
31 31
32 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ 32 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_unicode.h ('k') | xfa/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698