| 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_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ | 7 #ifndef XFA_SRC_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ |
| 8 #define XFA_SRC_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ | 8 #define XFA_SRC_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 CBC_ResultPoint* to); | 62 CBC_ResultPoint* to); |
| 63 FX_BOOL IsValid(CBC_ResultPoint* p); | 63 FX_BOOL IsValid(CBC_ResultPoint* p); |
| 64 int32_t Distance(CBC_ResultPoint* a, CBC_ResultPoint* b); | 64 int32_t Distance(CBC_ResultPoint* a, CBC_ResultPoint* b); |
| 65 void Increment(CFX_MapPtrTemplate<CBC_ResultPoint*, int32_t>& table, | 65 void Increment(CFX_MapPtrTemplate<CBC_ResultPoint*, int32_t>& table, |
| 66 CBC_ResultPoint* key); | 66 CBC_ResultPoint* key); |
| 67 int32_t Round(FX_FLOAT d); | 67 int32_t Round(FX_FLOAT d); |
| 68 void OrderBestPatterns(CFX_PtrArray* patterns); | 68 void OrderBestPatterns(CFX_PtrArray* patterns); |
| 69 virtual void Init(int32_t& e); | 69 virtual void Init(int32_t& e); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 static const int32_t INTEGERS[5]; |
| 73 |
| 72 CBC_CommonBitMatrix* m_image; | 74 CBC_CommonBitMatrix* m_image; |
| 73 CBC_WhiteRectangleDetector* m_rectangleDetector; | 75 CBC_WhiteRectangleDetector* m_rectangleDetector; |
| 74 const static int32_t INTEGERS[5]; | |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 #endif // XFA_SRC_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ | 78 #endif // XFA_SRC_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDETECTOR_H_ |
| OLD | NEW |