| 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_DATAMATRIXDETECTOR_H_ | 7 #ifndef _BC_DATAMATRIXDETECTOR_H_ |
| 8 #define _BC_DATAMATRIXDETECTOR_H_ | 8 #define _BC_DATAMATRIXDETECTOR_H_ |
| 9 class CBC_CommonBitMatrix; | 9 class CBC_CommonBitMatrix; |
| 10 class CBC_WhiteRectangleDetector; | 10 class CBC_WhiteRectangleDetector; |
| 11 class CBC_ResultPoint; | 11 class CBC_ResultPoint; |
| 12 class CBC_QRDetectorResult; | 12 class CBC_QRDetectorResult; |
| 13 class CBC_DataMatrixDetector; | 13 class CBC_DataMatrixDetector; |
| 14 class ResultPointsAndTransitions; | 14 class ResultPointsAndTransitions; |
| 15 class CBC_ResultPointsAndTransitions : public CFX_Object | 15 class CBC_ResultPointsAndTransitions |
| 16 { | 16 { |
| 17 public: | 17 public: |
| 18 CBC_ResultPointsAndTransitions(CBC_ResultPoint *from, CBC_ResultPoint *to, F
X_INT32 transitions) | 18 CBC_ResultPointsAndTransitions(CBC_ResultPoint *from, CBC_ResultPoint *to, F
X_INT32 transitions) |
| 19 { | 19 { |
| 20 m_from = from; | 20 m_from = from; |
| 21 m_to = to; | 21 m_to = to; |
| 22 m_transitions = transitions; | 22 m_transitions = transitions; |
| 23 } | 23 } |
| 24 ~CBC_ResultPointsAndTransitions() | 24 ~CBC_ResultPointsAndTransitions() |
| 25 { | 25 { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void Increment(CFX_MapPtrTemplate<CBC_ResultPoint*, FX_INT32> &table, CBC_Re
sultPoint *key); | 69 void Increment(CFX_MapPtrTemplate<CBC_ResultPoint*, FX_INT32> &table, CBC_Re
sultPoint *key); |
| 70 FX_INT32 Round(FX_FLOAT d); | 70 FX_INT32 Round(FX_FLOAT d); |
| 71 void OrderBestPatterns(CFX_PtrArray *patterns); | 71 void OrderBestPatterns(CFX_PtrArray *patterns); |
| 72 virtual void Init(FX_INT32 &e); | 72 virtual void Init(FX_INT32 &e); |
| 73 private: | 73 private: |
| 74 CBC_CommonBitMatrix *m_image; | 74 CBC_CommonBitMatrix *m_image; |
| 75 CBC_WhiteRectangleDetector *m_rectangleDetector; | 75 CBC_WhiteRectangleDetector *m_rectangleDetector; |
| 76 const static FX_INT32 INTEGERS[5]; | 76 const static FX_INT32 INTEGERS[5]; |
| 77 }; | 77 }; |
| 78 #endif | 78 #endif |
| OLD | NEW |