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_PDF417SCANNINGDECODER_H_ | 7 #ifndef _BC_PDF417SCANNINGDECODER_H_ |
8 #define _BC_PDF417SCANNINGDECODER_H_ | 8 #define _BC_PDF417SCANNINGDECODER_H_ |
9 class CBC_CommonDecoderResult; | 9 class CBC_CommonDecoderResult; |
10 class CBC_CommonBitMatrix; | 10 class CBC_CommonBitMatrix; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 static FX_INT32 adjustCodewordStartColumn(CBC_CommonBitMatrix* image, FX_INT
32 minColumn, FX_INT32 maxColumn, FX_BOOL leftToRight, FX_INT32 codewordStartCol
umn, FX_INT32 imageRow); | 52 static FX_INT32 adjustCodewordStartColumn(CBC_CommonBitMatrix* image, FX_INT
32 minColumn, FX_INT32 maxColumn, FX_BOOL leftToRight, FX_INT32 codewordStartCol
umn, FX_INT32 imageRow); |
53 static FX_BOOL checkCodewordSkew(FX_INT32 codewordSize, FX_INT32 minCodeword
Width, FX_INT32 maxCodewordWidth); | 53 static FX_BOOL checkCodewordSkew(FX_INT32 codewordSize, FX_INT32 minCodeword
Width, FX_INT32 maxCodewordWidth); |
54 static CBC_CommonDecoderResult* decodeCodewords(CFX_Int32Array &codewords, F
X_INT32 ecLevel, CFX_Int32Array &erasures, FX_INT32 &e); | 54 static CBC_CommonDecoderResult* decodeCodewords(CFX_Int32Array &codewords, F
X_INT32 ecLevel, CFX_Int32Array &erasures, FX_INT32 &e); |
55 static FX_INT32 correctErrors(CFX_Int32Array &codewords, CFX_Int32Array &era
sures, FX_INT32 numECCodewords, FX_INT32 &e); | 55 static FX_INT32 correctErrors(CFX_Int32Array &codewords, CFX_Int32Array &era
sures, FX_INT32 numECCodewords, FX_INT32 &e); |
56 static void verifyCodewordCount(CFX_Int32Array &codewords, FX_INT32 numECCod
ewords, FX_INT32 &e); | 56 static void verifyCodewordCount(CFX_Int32Array &codewords, FX_INT32 numECCod
ewords, FX_INT32 &e); |
57 static CFX_Int32Array* getBitCountForCodeword(FX_INT32 codeword); | 57 static CFX_Int32Array* getBitCountForCodeword(FX_INT32 codeword); |
58 static FX_INT32 getCodewordBucketNumber(FX_INT32 codeword); | 58 static FX_INT32 getCodewordBucketNumber(FX_INT32 codeword); |
59 static FX_INT32 getCodewordBucketNumber(CFX_Int32Array& moduleBitCount); | 59 static FX_INT32 getCodewordBucketNumber(CFX_Int32Array& moduleBitCount); |
60 }; | 60 }; |
61 #endif | 61 #endif |
OLD | NEW |