| 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_EDTECTIONRESULT_H_ | 7 #ifndef _BC_EDTECTIONRESULT_H_ |
| 8 #define _BC_EDTECTIONRESULT_H_ | 8 #define _BC_EDTECTIONRESULT_H_ |
| 9 class CBC_BarcodeMetadata; | 9 class CBC_BarcodeMetadata; |
| 10 class CBC_BoundingBox; | 10 class CBC_BoundingBox; |
| 11 class CBC_Codeword; | 11 class CBC_Codeword; |
| 12 class CBC_DetectionResultColumn; | 12 class CBC_DetectionResultColumn; |
| 13 class CBC_DetectionResult | 13 class CBC_DetectionResult |
| 14 { | 14 { |
| 15 public: | 15 public: |
| 16 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata, CBC_BoundingBox* b
oundingBox); | 16 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata, CBC_BoundingBox* b
oundingBox); |
| 17 virtual ~CBC_DetectionResult(); | 17 virtual ~CBC_DetectionResult(); |
| 18 CFX_PtrArray& getDetectionResultColumns(); | 18 CFX_PtrArray& getDetectionResultColumns(); |
| 19 void setBoundingBox(CBC_BoundingBox* boundingBox); | 19 void setBoundingBox(CBC_BoundingBox* boundingBox); |
| 20 CBC_BoundingBox* getBoundingBox(); | 20 CBC_BoundingBox* getBoundingBox(); |
| 21 void setDetectionResultColumn(FX_INT32 barcodeColumn, CBC_DetectionResultCol
umn* detectionResultColumn); | 21 void setDetectionResultColumn(int32_t barcodeColumn, CBC_DetectionResultColu
mn* detectionResultColumn); |
| 22 CBC_DetectionResultColumn* getDetectionResultColumn(FX_INT32 barcodeColumn); | 22 CBC_DetectionResultColumn* getDetectionResultColumn(int32_t barcodeColumn); |
| 23 CFX_ByteString toString(); | 23 CFX_ByteString toString(); |
| 24 | 24 |
| 25 FX_INT32 getBarcodeColumnCount(); | 25 int32_t getBarcodeColumnCount(); |
| 26 FX_INT32 getBarcodeRowCount(); | 26 int32_t getBarcodeRowCount(); |
| 27 FX_INT32 getBarcodeECLevel(); | 27 int32_t getBarcodeECLevel(); |
| 28 private: | 28 private: |
| 29 static FX_INT32 ADJUST_ROW_NUMBER_SKIP; | 29 static int32_t ADJUST_ROW_NUMBER_SKIP; |
| 30 CBC_BarcodeMetadata* m_barcodeMetadata; | 30 CBC_BarcodeMetadata* m_barcodeMetadata; |
| 31 CFX_PtrArray m_detectionResultColumns; | 31 CFX_PtrArray m_detectionResultColumns; |
| 32 CBC_BoundingBox* m_boundingBox; | 32 CBC_BoundingBox* m_boundingBox; |
| 33 FX_INT32 m_barcodeColumnCount; | 33 int32_t m_barcodeColumnCount; |
| 34 private: | 34 private: |
| 35 void adjustIndicatorColumnRowNumbers(CBC_DetectionResultColumn* detectionRes
ultColumn); | 35 void adjustIndicatorColumnRowNumbers(CBC_DetectionResultColumn* detectionRes
ultColumn); |
| 36 FX_INT32 adjustRowNumbers(); | 36 int32_t adjustRowNumbers(); |
| 37 FX_INT32 adjustRowNumbersByRow(); | 37 int32_t adjustRowNumbersByRow(); |
| 38 FX_INT32 adjustRowNumbersFromBothRI(); | 38 int32_t adjustRowNumbersFromBothRI(); |
| 39 FX_INT32 adjustRowNumbersFromRRI(); | 39 int32_t adjustRowNumbersFromRRI(); |
| 40 FX_INT32 adjustRowNumbersFromLRI(); | 40 int32_t adjustRowNumbersFromLRI(); |
| 41 static FX_INT32 adjustRowNumberIfValid(FX_INT32 rowIndicatorRowNumber, FX_IN
T32 invalidRowCounts, CBC_Codeword* codeword); | 41 static int32_t adjustRowNumberIfValid(int32_t rowIndicatorRowNumber, int32_t
invalidRowCounts, CBC_Codeword* codeword); |
| 42 void adjustRowNumbers(FX_INT32 barcodeColumn, FX_INT32 codewordsRow, CFX_Ptr
Array* codewords); | 42 void adjustRowNumbers(int32_t barcodeColumn, int32_t codewordsRow, CFX_PtrAr
ray* codewords); |
| 43 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword, CBC_Codeword* otherCo
deword); | 43 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword, CBC_Codeword* otherCo
deword); |
| 44 | 44 |
| 45 | 45 |
| 46 }; | 46 }; |
| 47 #endif | 47 #endif |
| OLD | NEW |