OLD | NEW |
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_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ |
8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
11 | 11 |
12 class CBC_ResultPoint; | 12 class CBC_ResultPoint; |
13 class CBC_CommonBitMatrix; | 13 class CBC_CommonBitMatrix; |
14 class CBC_QRDetectorResult; | 14 class CBC_QRDetectorResult; |
15 class CBC_QRFinderPatternInfo; | 15 class CBC_QRFinderPatternInfo; |
16 class CBC_QRAlignmentPattern; | 16 class CBC_QRAlignmentPattern; |
17 class CBC_QRFinderPatternFinder; | |
18 class CBC_QRCoderVersion; | |
19 class CBC_QRGridSampler; | |
20 class CBC_QRAlignmentPatternFinder; | |
21 class CBC_QRAlignmentPattern; | |
22 | 17 |
23 class CBC_QRDetector { | 18 class CBC_QRDetector { |
24 private: | 19 private: |
25 CBC_CommonBitMatrix* m_image; | 20 CBC_CommonBitMatrix* m_image; |
26 | 21 |
27 public: | 22 public: |
28 CBC_QRDetector(CBC_CommonBitMatrix* image); | 23 CBC_QRDetector(CBC_CommonBitMatrix* image); |
29 virtual ~CBC_QRDetector(); | 24 virtual ~CBC_QRDetector(); |
30 | 25 |
31 CBC_CommonBitMatrix* GetImage(); | 26 CBC_CommonBitMatrix* GetImage(); |
(...skipping 27 matching lines...) Expand all Loading... |
59 static CBC_CommonBitMatrix* SampleGrid(CBC_CommonBitMatrix* image, | 54 static CBC_CommonBitMatrix* SampleGrid(CBC_CommonBitMatrix* image, |
60 CBC_ResultPoint* topLeft, | 55 CBC_ResultPoint* topLeft, |
61 CBC_ResultPoint* topRight, | 56 CBC_ResultPoint* topRight, |
62 CBC_ResultPoint* bottomLeft, | 57 CBC_ResultPoint* bottomLeft, |
63 CBC_ResultPoint* alignmentPattern, | 58 CBC_ResultPoint* alignmentPattern, |
64 int32_t dimension, | 59 int32_t dimension, |
65 int32_t& e); | 60 int32_t& e); |
66 }; | 61 }; |
67 | 62 |
68 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ | 63 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRDETECTOR_H_ |
OLD | NEW |