| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef _BC_EDTECTIONRESULT_H_ | |
| 8 #define _BC_EDTECTIONRESULT_H_ | |
| 9 class CBC_BarcodeMetadata; | |
| 10 class CBC_BoundingBox; | |
| 11 class CBC_Codeword; | |
| 12 class CBC_DetectionResultColumn; | |
| 13 class CBC_DetectionResult; | |
| 14 class CBC_DetectionResult : public CFX_Object | |
| 15 { | |
| 16 public: | |
| 17 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata, CBC_BoundingBox* b
oundingBox); | |
| 18 virtual ~CBC_DetectionResult(); | |
| 19 CFX_PtrArray& getDetectionResultColumns(); | |
| 20 void setBoundingBox(CBC_BoundingBox* boundingBox); | |
| 21 CBC_BoundingBox* getBoundingBox(); | |
| 22 void setDetectionResultColumn(FX_INT32 barcodeColumn, CBC_DetectionResultCol
umn* detectionResultColumn); | |
| 23 CBC_DetectionResultColumn* getDetectionResultColumn(FX_INT32 barcodeColumn); | |
| 24 CFX_ByteString toString(); | |
| 25 | |
| 26 FX_INT32 getBarcodeColumnCount(); | |
| 27 FX_INT32 getBarcodeRowCount(); | |
| 28 FX_INT32 getBarcodeECLevel(); | |
| 29 private: | |
| 30 static FX_INT32 ADJUST_ROW_NUMBER_SKIP; | |
| 31 CBC_BarcodeMetadata* m_barcodeMetadata; | |
| 32 CFX_PtrArray m_detectionResultColumns; | |
| 33 CBC_BoundingBox* m_boundingBox; | |
| 34 FX_INT32 m_barcodeColumnCount; | |
| 35 private: | |
| 36 void adjustIndicatorColumnRowNumbers(CBC_DetectionResultColumn* detectionRes
ultColumn); | |
| 37 FX_INT32 adjustRowNumbers(); | |
| 38 FX_INT32 adjustRowNumbersByRow(); | |
| 39 FX_INT32 adjustRowNumbersFromBothRI(); | |
| 40 FX_INT32 adjustRowNumbersFromRRI(); | |
| 41 FX_INT32 adjustRowNumbersFromLRI(); | |
| 42 static FX_INT32 adjustRowNumberIfValid(FX_INT32 rowIndicatorRowNumber, FX_IN
T32 invalidRowCounts, CBC_Codeword* codeword); | |
| 43 void adjustRowNumbers(FX_INT32 barcodeColumn, FX_INT32 codewordsRow, CFX_Ptr
Array* codewords); | |
| 44 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword, CBC_Codeword* otherCo
deword); | |
| 45 | |
| 46 | |
| 47 }; | |
| 48 #endif | |
| OLD | NEW |