Home | History | Annotate | Download | only in qrcode
      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_QRCODEREADER_H_
      8 #define _BC_QRCODEREADER_H_
      9 class CBC_QRDetector;
     10 class CBC_BinaryBitmap;
     11 class CBC_QRCoderDecoder;
     12 class CBC_ResultPoint;
     13 class CBC_ReedSolomonGF256;
     14 class CBC_QRCoderVersion;
     15 class CBC_QRDetector;
     16 class CBC_QRDetectorResult;
     17 class CBC_QRCoderErrorCorrectionLevel;
     18 class CBC_QRCoderMode;
     19 class CBC_QRDataMask;
     20 class CBC_QRCodeReader;
     21 class CBC_QRCodeReader : public CBC_Reader {
     22  private:
     23   CBC_QRCoderDecoder* m_decoder;
     24 
     25  public:
     26   CBC_QRCodeReader();
     27   virtual ~CBC_QRCodeReader();
     28   CFX_ByteString Decode(CFX_DIBitmap* pBitmap,
     29                         int32_t hints,
     30                         int32_t byteModeDecode,
     31                         int32_t& e);
     32   CFX_ByteString Decode(const CFX_WideString& filename,
     33                         int32_t hints,
     34                         int32_t byteModeDecode,
     35                         int32_t& e);
     36   static void ReleaseAll();
     37   CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e);
     38   CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e);
     39   virtual void Init();
     40 };
     41 #endif
     42