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_DETECTOR_H_ | 7 #ifndef _BC_DETECTOR_H_ |
8 #define _BC_DETECTOR_H_ | 8 #define _BC_DETECTOR_H_ |
9 class CBC_PDF417DetectorResult; | 9 class CBC_PDF417DetectorResult; |
10 class CBC_BinaryBitmap; | 10 class CBC_BinaryBitmap; |
(...skipping 23 matching lines...) Expand all Loading... |
34 static FX_INT32 ROW_STEP; | 34 static FX_INT32 ROW_STEP; |
35 static FX_INT32 BARCODE_MIN_HEIGHT; | 35 static FX_INT32 BARCODE_MIN_HEIGHT; |
36 static CFX_PtrArray* detect(FX_BOOL multiple, CBC_CommonBitMatrix* bitMatrix
); | 36 static CFX_PtrArray* detect(FX_BOOL multiple, CBC_CommonBitMatrix* bitMatrix
); |
37 static CFX_PtrArray* findVertices(CBC_CommonBitMatrix* matrix, FX_INT32 star
tRow, FX_INT32 startColumn); | 37 static CFX_PtrArray* findVertices(CBC_CommonBitMatrix* matrix, FX_INT32 star
tRow, FX_INT32 startColumn); |
38 static void copyToResult(CFX_PtrArray* result, CFX_PtrArray* tmpResult, FX_I
NT32* destinationIndexes, FX_INT32 destinationLength); | 38 static void copyToResult(CFX_PtrArray* result, CFX_PtrArray* tmpResult, FX_I
NT32* destinationIndexes, FX_INT32 destinationLength); |
39 static CFX_PtrArray* findRowsWithPattern(CBC_CommonBitMatrix* matrix, FX_INT
32 height, FX_INT32 width, FX_INT32 startRow, FX_INT32 startColumn, FX_INT32* pa
ttern, FX_INT32 patternLength); | 39 static CFX_PtrArray* findRowsWithPattern(CBC_CommonBitMatrix* matrix, FX_INT
32 height, FX_INT32 width, FX_INT32 startRow, FX_INT32 startColumn, FX_INT32* pa
ttern, FX_INT32 patternLength); |
40 static CFX_Int32Array* findGuardPattern(CBC_CommonBitMatrix* matrix, FX_INT3
2 column, FX_INT32 row, FX_INT32 width, FX_BOOL whiteFirst, FX_INT32* pattern, F
X_INT32 patternLength, CFX_Int32Array &counters); | 40 static CFX_Int32Array* findGuardPattern(CBC_CommonBitMatrix* matrix, FX_INT3
2 column, FX_INT32 row, FX_INT32 width, FX_BOOL whiteFirst, FX_INT32* pattern, F
X_INT32 patternLength, CFX_Int32Array &counters); |
41 static FX_INT32 patternMatchVariance(CFX_Int32Array &counters, FX_INT32* pat
tern, FX_INT32 maxIndividualVariance); | 41 static FX_INT32 patternMatchVariance(CFX_Int32Array &counters, FX_INT32* pat
tern, FX_INT32 maxIndividualVariance); |
42 }; | 42 }; |
43 #endif | 43 #endif |
OLD | NEW |