| 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 XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERDECODER_H_ |
| 8 #define _BC_QRCODERDECODER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERDECODER_H_ |
| 9 |
| 9 class CBC_CommonBitMatrix; | 10 class CBC_CommonBitMatrix; |
| 10 class CBC_ReedSolomonDecoder; | 11 class CBC_ReedSolomonDecoder; |
| 11 class CBC_CommonDecoderResult; | 12 class CBC_CommonDecoderResult; |
| 12 class CBC_QRBitMatrixParser; | 13 class CBC_QRBitMatrixParser; |
| 13 class CBC_QRCoderVersion; | 14 class CBC_QRCoderVersion; |
| 14 class CBC_QRDataBlock; | 15 class CBC_QRDataBlock; |
| 15 class CBC_QRCoderDecoder { | 16 class CBC_QRCoderDecoder { |
| 16 private: | 17 private: |
| 17 CBC_ReedSolomonDecoder* m_rsDecoder; | 18 CBC_ReedSolomonDecoder* m_rsDecoder; |
| 18 | 19 |
| 19 public: | 20 public: |
| 20 CBC_QRCoderDecoder(); | 21 CBC_QRCoderDecoder(); |
| 21 virtual ~CBC_QRCoderDecoder(); | 22 virtual ~CBC_QRCoderDecoder(); |
| 22 | 23 |
| 23 CBC_CommonDecoderResult* Decode(FX_BOOL* image, | 24 CBC_CommonDecoderResult* Decode(FX_BOOL* image, |
| 24 int32_t width, | 25 int32_t width, |
| 25 int32_t height, | 26 int32_t height, |
| 26 int32_t& e); | 27 int32_t& e); |
| 27 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, | 28 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, |
| 28 int32_t byteModeDecode, | 29 int32_t byteModeDecode, |
| 29 int32_t& e); | 30 int32_t& e); |
| 30 void CorrectErrors(CFX_ByteArray* codewordBytes, | 31 void CorrectErrors(CFX_ByteArray* codewordBytes, |
| 31 int32_t numDataCodewords, | 32 int32_t numDataCodewords, |
| 32 int32_t& e); | 33 int32_t& e); |
| 33 virtual void Init(); | 34 virtual void Init(); |
| 34 }; | 35 }; |
| 35 #endif | 36 |
| 37 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERDECODER_H_ |
| OLD | NEW |