| 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_COMMON_BC_WHITERECTANGLEDETECTOR_H_ | 7 #ifndef XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ |
| 8 #define XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ | 8 #define XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 |
| 10 class CBC_CommonBitMatrix; | 12 class CBC_CommonBitMatrix; |
| 11 class CBC_ResultPoint; | 13 class CBC_ResultPoint; |
| 14 |
| 12 class CBC_WhiteRectangleDetector { | 15 class CBC_WhiteRectangleDetector { |
| 13 public: | 16 public: |
| 14 CBC_WhiteRectangleDetector(CBC_CommonBitMatrix* image); | 17 CBC_WhiteRectangleDetector(CBC_CommonBitMatrix* image); |
| 15 CBC_WhiteRectangleDetector(CBC_CommonBitMatrix* image, | 18 CBC_WhiteRectangleDetector(CBC_CommonBitMatrix* image, |
| 16 int32_t initSize, | 19 int32_t initSize, |
| 17 int32_t x, | 20 int32_t x, |
| 18 int32_t y); | 21 int32_t y); |
| 19 virtual ~CBC_WhiteRectangleDetector(); | 22 virtual ~CBC_WhiteRectangleDetector(); |
| 20 CFX_PtrArray* Detect(int32_t& e); | 23 CFX_PtrArray* Detect(int32_t& e); |
| 21 virtual void Init(int32_t& e); | 24 virtual void Init(int32_t& e); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 CBC_CommonBitMatrix* m_image; | 44 CBC_CommonBitMatrix* m_image; |
| 42 int32_t m_height; | 45 int32_t m_height; |
| 43 int32_t m_width; | 46 int32_t m_width; |
| 44 int32_t m_leftInit; | 47 int32_t m_leftInit; |
| 45 int32_t m_rightInit; | 48 int32_t m_rightInit; |
| 46 int32_t m_downInit; | 49 int32_t m_downInit; |
| 47 int32_t m_upInit; | 50 int32_t m_upInit; |
| 48 }; | 51 }; |
| 49 | 52 |
| 50 #endif // XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ | 53 #endif // XFA_SRC_FXBARCODE_COMMON_BC_WHITERECTANGLEDETECTOR_H_ |
| OLD | NEW |