Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: xfa/src/fxbarcode/pdf417/BC_PDF417DetectionResult.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_
9
10 class CBC_BarcodeMetadata;
11 class CBC_BoundingBox;
12 class CBC_Codeword;
13 class CBC_DetectionResultColumn;
14 class CBC_DetectionResult {
15 public:
16 CBC_DetectionResult(CBC_BarcodeMetadata* barcodeMetadata,
17 CBC_BoundingBox* boundingBox);
18 virtual ~CBC_DetectionResult();
19 CFX_PtrArray& getDetectionResultColumns();
20 void setBoundingBox(CBC_BoundingBox* boundingBox);
21 CBC_BoundingBox* getBoundingBox();
22 void setDetectionResultColumn(
23 int32_t barcodeColumn,
24 CBC_DetectionResultColumn* detectionResultColumn);
25 CBC_DetectionResultColumn* getDetectionResultColumn(int32_t barcodeColumn);
26 CFX_ByteString toString();
27
28 int32_t getBarcodeColumnCount();
29 int32_t getBarcodeRowCount();
30 int32_t getBarcodeECLevel();
31
32 private:
33 static int32_t ADJUST_ROW_NUMBER_SKIP;
34 CBC_BarcodeMetadata* m_barcodeMetadata;
35 CFX_PtrArray m_detectionResultColumns;
36 CBC_BoundingBox* m_boundingBox;
37 int32_t m_barcodeColumnCount;
38
39 private:
40 void adjustIndicatorColumnRowNumbers(
41 CBC_DetectionResultColumn* detectionResultColumn);
42 int32_t adjustRowNumbers();
43 int32_t adjustRowNumbersByRow();
44 int32_t adjustRowNumbersFromBothRI();
45 int32_t adjustRowNumbersFromRRI();
46 int32_t adjustRowNumbersFromLRI();
47 static int32_t adjustRowNumberIfValid(int32_t rowIndicatorRowNumber,
48 int32_t invalidRowCounts,
49 CBC_Codeword* codeword);
50 void adjustRowNumbers(int32_t barcodeColumn,
51 int32_t codewordsRow,
52 CFX_PtrArray* codewords);
53 static FX_BOOL adjustRowNumber(CBC_Codeword* codeword,
54 CBC_Codeword* otherCodeword);
55 };
56
57 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTIONRESULT_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.cpp ('k') | xfa/src/fxbarcode/pdf417/BC_PDF417DetectionResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698