| 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 _BC_QRFINDERPATTERNFINDER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRFINDERPATTERNFINDER_H_ |
| 8 #define _BC_QRFINDERPATTERNFINDER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRFINDERPATTERNFINDER_H_ |
| 9 |
| 9 class CBC_CommonBitMatrix; | 10 class CBC_CommonBitMatrix; |
| 10 class CBC_QRFinderPattern; | 11 class CBC_QRFinderPattern; |
| 11 class CBC_ResultPoint; | 12 class CBC_ResultPoint; |
| 12 class CBC_QRFinderPatternInfo; | 13 class CBC_QRFinderPatternInfo; |
| 13 | 14 |
| 14 class CBC_QRFinderPatternFinder { | 15 class CBC_QRFinderPatternFinder { |
| 15 private: | 16 private: |
| 16 const static int32_t CENTER_QUORUM; | 17 const static int32_t CENTER_QUORUM; |
| 17 const static int32_t MIN_SKIP; | 18 const static int32_t MIN_SKIP; |
| 18 const static int32_t MAX_MODULES; | 19 const static int32_t MAX_MODULES; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 int32_t maxCount, | 44 int32_t maxCount, |
| 44 int32_t originalStateCountTotal); | 45 int32_t originalStateCountTotal); |
| 45 FX_FLOAT CrossCheckHorizontal(int32_t startJ, | 46 FX_FLOAT CrossCheckHorizontal(int32_t startJ, |
| 46 int32_t CenterI, | 47 int32_t CenterI, |
| 47 int32_t maxCOunt, | 48 int32_t maxCOunt, |
| 48 int32_t originalStateCountTotal); | 49 int32_t originalStateCountTotal); |
| 49 static void OrderBestPatterns(CFX_PtrArray* patterns); | 50 static void OrderBestPatterns(CFX_PtrArray* patterns); |
| 50 static FX_BOOL FoundPatternCross(const CFX_Int32Array& stateCount); | 51 static FX_BOOL FoundPatternCross(const CFX_Int32Array& stateCount); |
| 51 static FX_FLOAT Distance(CBC_ResultPoint* point1, CBC_ResultPoint* point2); | 52 static FX_FLOAT Distance(CBC_ResultPoint* point1, CBC_ResultPoint* point2); |
| 52 }; | 53 }; |
| 53 #endif | 54 |
| 55 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRFINDERPATTERNFINDER_H_ |
| OLD | NEW |