1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _BC_QRCODERDECODER_H_ 8 #define _BC_QRCODERDECODER_H_ 9 class CBC_CommonBitMatrix; 10 class CBC_ReedSolomonDecoder; 11 class CBC_CommonDecoderResult; 12 class CBC_QRBitMatrixParser; 13 class CBC_QRCoderVersion; 14 class CBC_QRDataBlock; 15 class CBC_QRCoderDecoder { 16 private: 17 CBC_ReedSolomonDecoder* m_rsDecoder; 18 19 public: 20 CBC_QRCoderDecoder(); 21 virtual ~CBC_QRCoderDecoder(); 22 23 CBC_CommonDecoderResult* Decode(FX_BOOL* image, 24 int32_t width, 25 int32_t height, 26 int32_t& e); 27 CBC_CommonDecoderResult* Decode(CBC_CommonBitMatrix* bits, 28 int32_t byteModeDecode, 29 int32_t& e); 30 void CorrectErrors(CFX_ByteArray* codewordBytes, 31 int32_t numDataCodewords, 32 int32_t& e); 33 virtual void Init(); 34 }; 35 #endif 36