| 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_QRALIGNMENTPATTERNFINDER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRALIGNMENTPATTERNFINDER_H_ |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRALIGNMENTPATTERNFINDER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRALIGNMENTPATTERNFINDER_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "xfa/src/fxbarcode/utils.h" |
| 12 |
| 10 class CBC_CommonBitMatrix; | 13 class CBC_CommonBitMatrix; |
| 11 class CBC_QRAlignmentPattern; | 14 class CBC_QRAlignmentPattern; |
| 15 |
| 12 class CBC_QRAlignmentPatternFinder { | 16 class CBC_QRAlignmentPatternFinder { |
| 13 private: | 17 private: |
| 14 CBC_CommonBitMatrix* m_image; | 18 CBC_CommonBitMatrix* m_image; |
| 15 CFX_PtrArray m_possibleCenters; | 19 CFX_PtrArray m_possibleCenters; |
| 16 int32_t m_startX; | 20 int32_t m_startX; |
| 17 int32_t m_startY; | 21 int32_t m_startY; |
| 18 int32_t m_width; | 22 int32_t m_width; |
| 19 int32_t m_height; | 23 int32_t m_height; |
| 20 FX_FLOAT m_moduleSize; | 24 FX_FLOAT m_moduleSize; |
| 21 CFX_Int32Array m_crossCheckStateCount; | 25 CFX_Int32Array m_crossCheckStateCount; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 int32_t maxCount, | 38 int32_t maxCount, |
| 35 int32_t originalStateCountTotal); | 39 int32_t originalStateCountTotal); |
| 36 CBC_QRAlignmentPattern* Find(int32_t& e); | 40 CBC_QRAlignmentPattern* Find(int32_t& e); |
| 37 CBC_QRAlignmentPattern* HandlePossibleCenter(const CFX_Int32Array& stateCount, | 41 CBC_QRAlignmentPattern* HandlePossibleCenter(const CFX_Int32Array& stateCount, |
| 38 int32_t i, | 42 int32_t i, |
| 39 int32_t j); | 43 int32_t j); |
| 40 static FX_FLOAT CenterFromEnd(const CFX_Int32Array& stateCount, int32_t end); | 44 static FX_FLOAT CenterFromEnd(const CFX_Int32Array& stateCount, int32_t end); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRALIGNMENTPATTERNFINDER_H_ | 47 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRALIGNMENTPATTERNFINDER_H_ |
| OLD | NEW |