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_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ |
8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ |
9 | 9 |
10 class CBC_BarcodeMetadata; | 10 class CBC_BarcodeMetadata; |
11 class CBC_BoundingBox; | 11 class CBC_BoundingBox; |
12 | 12 |
13 class CBC_DetectionResultRowIndicatorColumn : public CBC_DetectionResultColumn { | 13 class CBC_DetectionResultRowIndicatorColumn : public CBC_DetectionResultColumn { |
14 public: | 14 public: |
15 CBC_DetectionResultRowIndicatorColumn(CBC_BoundingBox* boundingBox, | 15 CBC_DetectionResultRowIndicatorColumn(CBC_BoundingBox* boundingBox, |
16 FX_BOOL isLeft); | 16 FX_BOOL isLeft); |
17 virtual ~CBC_DetectionResultRowIndicatorColumn(); | 17 ~CBC_DetectionResultRowIndicatorColumn() override; |
| 18 |
18 void setRowNumbers(); | 19 void setRowNumbers(); |
19 int32_t adjustCompleteIndicatorColumnRowNumbers( | 20 int32_t adjustCompleteIndicatorColumnRowNumbers( |
20 CBC_BarcodeMetadata barcodeMetadata); | 21 CBC_BarcodeMetadata barcodeMetadata); |
21 CFX_Int32Array* getRowHeights(int32_t& e); | 22 CFX_Int32Array* getRowHeights(int32_t& e); |
22 int32_t adjustIncompleteIndicatorColumnRowNumbers( | 23 int32_t adjustIncompleteIndicatorColumnRowNumbers( |
23 CBC_BarcodeMetadata barcodeMetadata); | 24 CBC_BarcodeMetadata barcodeMetadata); |
24 CBC_BarcodeMetadata* getBarcodeMetadata(); | 25 CBC_BarcodeMetadata* getBarcodeMetadata(); |
25 FX_BOOL isLeft(); | 26 FX_BOOL isLeft(); |
26 CFX_ByteString toString(); | 27 CFX_ByteString toString(); |
27 | 28 |
28 private: | 29 private: |
29 void removeIncorrectCodewords(CFX_ArrayTemplate<CBC_Codeword*>* codewords, | 30 void removeIncorrectCodewords(CFX_ArrayTemplate<CBC_Codeword*>* codewords, |
30 CBC_BarcodeMetadata barcodeMetadata); | 31 CBC_BarcodeMetadata barcodeMetadata); |
31 | 32 |
32 FX_BOOL m_isLeft; | 33 FX_BOOL m_isLeft; |
33 }; | 34 }; |
34 | 35 |
35 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ | 36 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTROWINDICATORCOLUMN_H_ |
OLD | NEW |