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_QRCODERDECODER_H_ | 7 #ifndef _BC_QRCODERDECODER_H_ |
8 #define _BC_QRCODERDECODER_H_ | 8 #define _BC_QRCODERDECODER_H_ |
9 class CBC_CommonBitMatrix; | 9 class CBC_CommonBitMatrix; |
10 class CBC_ReedSolomonDecoder; | 10 class CBC_ReedSolomonDecoder; |
11 class CBC_CommonDecoderResult; | 11 class CBC_CommonDecoderResult; |
12 class CBC_QRBitMatrixParser; | 12 class CBC_QRBitMatrixParser; |
13 class CBC_QRCoderVersion; | 13 class CBC_QRCoderVersion; |
14 class CBC_QRDataBlock; | 14 class CBC_QRDataBlock; |
15 class CBC_QRCoderDecoder | 15 class CBC_QRCoderDecoder |
16 { | 16 { |
17 private: | 17 private: |
18 CBC_ReedSolomonDecoder *m_rsDecoder; | 18 CBC_ReedSolomonDecoder *m_rsDecoder; |
19 public: | 19 public: |
20 CBC_QRCoderDecoder(); | 20 CBC_QRCoderDecoder(); |
21 virtual ~CBC_QRCoderDecoder(); | 21 virtual ~CBC_QRCoderDecoder(); |
22 | 22 |
23 CBC_CommonDecoderResult* Decode(FX_BOOL* image, FX_INT32 width, FX_INT32 hei
ght, FX_INT32 &e); | 23 CBC_CommonDecoderResult* Decode(FX_BOOL* image, int32_t width, int32_t heigh
t, int32_t &e); |
24 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, FX_INT32 byteMode
Decode, FX_INT32 &e); | 24 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, int32_t byteModeD
ecode, int32_t &e); |
25 void CorrectErrors(CFX_ByteArray* codewordBytes, FX_INT32 numDataCodewords,
FX_INT32 &e); | 25 void CorrectErrors(CFX_ByteArray* codewordBytes, int32_t numDataCodewords, i
nt32_t &e); |
26 virtual void Init(); | 26 virtual void Init(); |
27 }; | 27 }; |
28 #endif | 28 #endif |
OLD | NEW |