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_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ |
8 #define XFA_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
11 | 11 |
12 class CBC_CommonBitMatrix; | 12 class CBC_CommonBitMatrix; |
13 class CBC_ResultPoint; | 13 class CBC_ResultPoint; |
14 | 14 |
15 class CBC_BoundingBox { | 15 class CBC_BoundingBox { |
16 public: | 16 public: |
17 CBC_BoundingBox(CBC_CommonBitMatrix* image, | 17 CBC_BoundingBox(CBC_CommonBitMatrix* image, |
18 CBC_ResultPoint* topLeft, | 18 CBC_ResultPoint* topLeft, |
19 CBC_ResultPoint* bottomLeft, | 19 CBC_ResultPoint* bottomLeft, |
20 CBC_ResultPoint* topRight, | 20 CBC_ResultPoint* topRight, |
21 CBC_ResultPoint* bottomRight, | 21 CBC_ResultPoint* bottomRight, |
22 int32_t& e); | 22 int32_t& e); |
23 CBC_BoundingBox(CBC_BoundingBox* boundingBox); | 23 CBC_BoundingBox(CBC_BoundingBox* boundingBox); |
24 virtual ~CBC_BoundingBox(); | 24 virtual ~CBC_BoundingBox(); |
| 25 |
25 static CBC_BoundingBox* merge(CBC_BoundingBox* leftBox, | 26 static CBC_BoundingBox* merge(CBC_BoundingBox* leftBox, |
26 CBC_BoundingBox* rightBox, | 27 CBC_BoundingBox* rightBox, |
27 int32_t& e); | 28 int32_t& e); |
28 CBC_BoundingBox* addMissingRows(int32_t missingStartRows, | 29 CBC_BoundingBox* addMissingRows(int32_t missingStartRows, |
29 int32_t missingEndRows, | 30 int32_t missingEndRows, |
30 FX_BOOL isLeft, | 31 FX_BOOL isLeft, |
31 int32_t& e); | 32 int32_t& e); |
32 void setTopRight(CBC_ResultPoint topRight); | 33 void setTopRight(CBC_ResultPoint topRight); |
33 void setBottomRight(CBC_ResultPoint bottomRight); | 34 void setBottomRight(CBC_ResultPoint bottomRight); |
34 int32_t getMinX(); | 35 int32_t getMinX(); |
(...skipping 17 matching lines...) Expand all Loading... |
52 int32_t m_maxY; | 53 int32_t m_maxY; |
53 void init(CBC_CommonBitMatrix* image, | 54 void init(CBC_CommonBitMatrix* image, |
54 CBC_ResultPoint* topLeft, | 55 CBC_ResultPoint* topLeft, |
55 CBC_ResultPoint* bottomLeft, | 56 CBC_ResultPoint* bottomLeft, |
56 CBC_ResultPoint* topRight, | 57 CBC_ResultPoint* topRight, |
57 CBC_ResultPoint* bottomRight); | 58 CBC_ResultPoint* bottomRight); |
58 void calculateMinMaxValues(); | 59 void calculateMinMaxValues(); |
59 }; | 60 }; |
60 | 61 |
61 #endif // XFA_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ | 62 #endif // XFA_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_ |
OLD | NEW |