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 class CBC_QRCoderDecoder : public CFX_Object | 16 class CBC_QRCoderDecoder : public CFX_Object |
17 { | 17 { |
18 private: | 18 private: |
19 CBC_ReedSolomonDecoder *m_rsDecoder; | 19 CBC_ReedSolomonDecoder *m_rsDecoder; |
20 public: | 20 public: |
21 CBC_QRCoderDecoder(); | 21 CBC_QRCoderDecoder(); |
22 virtual ~CBC_QRCoderDecoder(); | 22 virtual ~CBC_QRCoderDecoder(); |
23 | 23 |
24 CBC_CommonDecoderResult* Decode(FX_BOOL* image, FX_INT32 width, FX_INT32 hei
ght, FX_INT32 &e); | 24 CBC_CommonDecoderResult* Decode(FX_BOOL* image, FX_INT32 width, FX_INT32 hei
ght, FX_INT32 &e); |
25 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, FX_INT32 byteMode
Decode, FX_INT32 &e); | 25 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, FX_INT32 byteMode
Decode, FX_INT32 &e); |
26 void CorrectErrors(CFX_ByteArray* codewordBytes, FX_INT32 numDataCodewords,
FX_INT32 &e); | 26 void CorrectErrors(CFX_ByteArray* codewordBytes, FX_INT32 numDataCodewords,
FX_INT32 &e); |
27 virtual void Init(); | 27 virtual void Init(); |
28 }; | 28 }; |
29 #endif | 29 #endif |
OLD | NEW |