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

Side by Side Diff: xfa/src/fxbarcode/pdf417/BC_PDF417Detector.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_PDF417DETECTOR_H_
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_
9
10 class CBC_PDF417DetectorResult;
11 class CBC_BinaryBitmap;
12 class CBC_CommonBitMatrix;
13 class CBC_CommonBitArray;
14
15 class CBC_Detector {
16 public:
17 CBC_Detector();
18 virtual ~CBC_Detector();
19 static CBC_PDF417DetectorResult* detect(CBC_BinaryBitmap* image,
20 int32_t hints,
21 FX_BOOL multiple,
22 int32_t& e);
23 static void rotate180(CBC_CommonBitMatrix* bitMatrix);
24 static CBC_CommonBitArray* mirror(CBC_CommonBitArray* input,
25 CBC_CommonBitArray* result);
26
27 private:
28 static int32_t INDEXES_START_PATTERN[];
29 static int32_t INDEXES_STOP_PATTERN[];
30 static int32_t INTEGER_MATH_SHIFT;
31 static int32_t PATTERN_MATCH_RESULT_SCALE_FACTOR;
32 static int32_t MAX_AVG_VARIANCE;
33 static int32_t MAX_INDIVIDUAL_VARIANCE;
34 static int32_t START_PATTERN[];
35 static int32_t STOP_PATTERN[];
36 static int32_t MAX_PIXEL_DRIFT;
37 static int32_t MAX_PATTERN_DRIFT;
38 static int32_t SKIPPED_ROW_COUNT_MAX;
39 static int32_t ROW_STEP;
40 static int32_t BARCODE_MIN_HEIGHT;
41 static CFX_PtrArray* detect(FX_BOOL multiple, CBC_CommonBitMatrix* bitMatrix);
42 static CFX_PtrArray* findVertices(CBC_CommonBitMatrix* matrix,
43 int32_t startRow,
44 int32_t startColumn);
45 static void copyToResult(CFX_PtrArray* result,
46 CFX_PtrArray* tmpResult,
47 int32_t* destinationIndexes,
48 int32_t destinationLength);
49 static CFX_PtrArray* findRowsWithPattern(CBC_CommonBitMatrix* matrix,
50 int32_t height,
51 int32_t width,
52 int32_t startRow,
53 int32_t startColumn,
54 int32_t* pattern,
55 int32_t patternLength);
56 static CFX_Int32Array* findGuardPattern(CBC_CommonBitMatrix* matrix,
57 int32_t column,
58 int32_t row,
59 int32_t width,
60 FX_BOOL whiteFirst,
61 int32_t* pattern,
62 int32_t patternLength,
63 CFX_Int32Array& counters);
64 static int32_t patternMatchVariance(CFX_Int32Array& counters,
65 int32_t* pattern,
66 int32_t maxIndividualVariance);
67 };
68
69 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698