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_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ |
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ |
9 | 9 |
10 class CBC_Codeword; | 10 class CBC_Codeword; |
11 class CBC_BoundingBox; | 11 class CBC_BoundingBox; |
12 class CBC_DetectionResultColumn { | 12 class CBC_DetectionResultColumn { |
13 public: | 13 public: |
14 CBC_DetectionResultColumn(CBC_BoundingBox* boundingBox); | 14 CBC_DetectionResultColumn(CBC_BoundingBox* boundingBox); |
15 virtual ~CBC_DetectionResultColumn(); | 15 virtual ~CBC_DetectionResultColumn(); |
16 CBC_Codeword* getCodewordNearby(int32_t imageRow); | 16 CBC_Codeword* getCodewordNearby(int32_t imageRow); |
17 int32_t imageRowToCodewordIndex(int32_t imageRow); | 17 int32_t imageRowToCodewordIndex(int32_t imageRow); |
18 int32_t codewordIndexToImageRow(int32_t codewordIndex); | 18 int32_t codewordIndexToImageRow(int32_t codewordIndex); |
19 void setCodeword(int32_t imageRow, CBC_Codeword* codeword); | 19 void setCodeword(int32_t imageRow, CBC_Codeword* codeword); |
20 CBC_Codeword* getCodeword(int32_t imageRow); | 20 CBC_Codeword* getCodeword(int32_t imageRow); |
21 CBC_BoundingBox* getBoundingBox(); | 21 CBC_BoundingBox* getBoundingBox(); |
22 CFX_PtrArray* getCodewords(); | 22 CFX_PtrArray* getCodewords(); |
23 CFX_ByteString toString(); | 23 CFX_ByteString toString(); |
24 | 24 |
25 public: | 25 public: |
26 CBC_BoundingBox* m_boundingBox; | 26 CBC_BoundingBox* m_boundingBox; |
27 CFX_PtrArray* m_codewords; | 27 CFX_PtrArray* m_codewords; |
28 | 28 |
29 private: | 29 private: |
30 static int32_t MAX_NEARBY_DISTANCE; | 30 static int32_t MAX_NEARBY_DISTANCE; |
31 }; | 31 }; |
32 | 32 |
33 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ | 33 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULTCOLUMN_H_ |
OLD | NEW |