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_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ | 7 #ifndef XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ |
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ | 8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ |
9 | 9 |
10 class CBC_PDF417DetectorResult; | 10 class CBC_PDF417DetectorResult; |
11 class CBC_BinaryBitmap; | 11 class CBC_BinaryBitmap; |
12 class CBC_CommonBitMatrix; | 12 class CBC_CommonBitMatrix; |
13 class CBC_CommonBitArray; | 13 class CBC_CommonBitArray; |
| 14 |
14 class CBC_Detector { | 15 class CBC_Detector { |
15 public: | 16 public: |
16 CBC_Detector(); | 17 CBC_Detector(); |
17 virtual ~CBC_Detector(); | 18 virtual ~CBC_Detector(); |
18 static CBC_PDF417DetectorResult* detect(CBC_BinaryBitmap* image, | 19 static CBC_PDF417DetectorResult* detect(CBC_BinaryBitmap* image, |
19 int32_t hints, | 20 int32_t hints, |
20 FX_BOOL multiple, | 21 FX_BOOL multiple, |
21 int32_t& e); | 22 int32_t& e); |
22 static void rotate180(CBC_CommonBitMatrix* bitMatrix); | 23 static void rotate180(CBC_CommonBitMatrix* bitMatrix); |
23 static CBC_CommonBitArray* mirror(CBC_CommonBitArray* input, | 24 static CBC_CommonBitArray* mirror(CBC_CommonBitArray* input, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 FX_BOOL whiteFirst, | 60 FX_BOOL whiteFirst, |
60 int32_t* pattern, | 61 int32_t* pattern, |
61 int32_t patternLength, | 62 int32_t patternLength, |
62 CFX_Int32Array& counters); | 63 CFX_Int32Array& counters); |
63 static int32_t patternMatchVariance(CFX_Int32Array& counters, | 64 static int32_t patternMatchVariance(CFX_Int32Array& counters, |
64 int32_t* pattern, | 65 int32_t* pattern, |
65 int32_t maxIndividualVariance); | 66 int32_t maxIndividualVariance); |
66 }; | 67 }; |
67 | 68 |
68 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ | 69 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DETECTOR_H_ |
OLD | NEW |