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

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

Issue 1935793002: Fix lint bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 7 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
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 #include <stdint.h>
11
10 class CBC_QRCoderErrorCorrectionLevel; 12 class CBC_QRCoderErrorCorrectionLevel;
11 class CBC_QRCoderFormatInformation { 13 class CBC_QRCoderFormatInformation {
12 private: 14 public:
13 static const uint16_t FORMAT_INFO_MASK_QR; 15 explicit CBC_QRCoderFormatInformation(int32_t formatInfo);
14 static const uint16_t FORMAT_INFO_DECODE_LOOKUP[32][2]; 16 ~CBC_QRCoderFormatInformation();
15 static const uint8_t BITS_SET_IN_HALF_BYTE[16];
16 CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevl;
17 uint8_t m_dataMask;
18 17
19 public: 18 uint8_t GetDataMask() const;
20 CBC_QRCoderFormatInformation(int32_t formatInfo);
21 virtual ~CBC_QRCoderFormatInformation();
22 uint8_t GetDataMask();
23 CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel(); 19 CBC_QRCoderErrorCorrectionLevel* GetErrorCorrectionLevel();
24 20
25 static int32_t NumBitsDiffering(int32_t a, int32_t b); 21 static int32_t NumBitsDiffering(int32_t a, int32_t b);
26 static CBC_QRCoderFormatInformation* DecodeFormatInformation( 22 static CBC_QRCoderFormatInformation* DecodeFormatInformation(
27 int32_t maskedFormatInfo); 23 int32_t maskedFormatInfo);
28 static CBC_QRCoderFormatInformation* DoDecodeFormatInformation( 24
29 int32_t maskedFormatInfo); 25 private:
26 CBC_QRCoderErrorCorrectionLevel* m_errorCorrectLevel;
27 const uint8_t m_dataMask;
30 }; 28 };
31 29
32 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_ 30 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERFORMATINFORMATION_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedUPCAReader.h ('k') | xfa/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698