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_PDF417DETECTIONRESULT_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_ |
8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_ |
9 | 9 |
10 class CBC_BarcodeMetadata; | 10 class CBC_BarcodeMetadata; |
11 class CBC_BoundingBox; | 11 class CBC_BoundingBox; |
12 class CBC_Codeword; | 12 class CBC_Codeword; |
13 class CBC_DetectionResultColumn; | 13 class CBC_DetectionResultColumn; |
14 class CBC_DetectionResult { | 14 class CBC_DetectionResult { |
15 public: | 15 public: |
16 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata, | 16 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata, |
17 CBC_BoundingBox* boundingBox); | 17 CBC_BoundingBox* boundingBox); |
18 virtual ~CBC_DetectionResult(); | 18 virtual ~CBC_DetectionResult(); |
| 19 |
19 CFX_ArrayTemplate<CBC_DetectionResultColumn*>& getDetectionResultColumns(); | 20 CFX_ArrayTemplate<CBC_DetectionResultColumn*>& getDetectionResultColumns(); |
20 void setBoundingBox(CBC_BoundingBox* boundingBox); | 21 void setBoundingBox(CBC_BoundingBox* boundingBox); |
21 CBC_BoundingBox* getBoundingBox(); | 22 CBC_BoundingBox* getBoundingBox(); |
22 void setDetectionResultColumn( | 23 void setDetectionResultColumn( |
23 int32_t barcodeColumn, | 24 int32_t barcodeColumn, |
24 CBC_DetectionResultColumn* detectionResultColumn); | 25 CBC_DetectionResultColumn* detectionResultColumn); |
25 CBC_DetectionResultColumn* getDetectionResultColumn(int32_t barcodeColumn); | 26 CBC_DetectionResultColumn* getDetectionResultColumn(int32_t barcodeColumn); |
26 CFX_ByteString toString(); | 27 CFX_ByteString toString(); |
27 | 28 |
28 int32_t getBarcodeColumnCount(); | 29 int32_t getBarcodeColumnCount(); |
(...skipping 19 matching lines...) Expand all Loading... |
48 int32_t invalidRowCounts, | 49 int32_t invalidRowCounts, |
49 CBC_Codeword* codeword); | 50 CBC_Codeword* codeword); |
50 void adjustRowNumbers(int32_t barcodeColumn, | 51 void adjustRowNumbers(int32_t barcodeColumn, |
51 int32_t codewordsRow, | 52 int32_t codewordsRow, |
52 CFX_ArrayTemplate<CBC_Codeword*>* codewords); | 53 CFX_ArrayTemplate<CBC_Codeword*>* codewords); |
53 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword, | 54 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword, |
54 CBC_Codeword* otherCodeword); | 55 CBC_Codeword* otherCodeword); |
55 }; | 56 }; |
56 | 57 |
57 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_ | 58 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_ |
OLD | NEW |