| 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 XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "core/include/fxcrt/fx_string.h" | 12 #include "core/include/fxcrt/fx_string.h" |
| 13 #include "xfa/src/fxbarcode/BC_Reader.h" | 13 #include "xfa/src/fxbarcode/BC_Reader.h" |
| 14 | 14 |
| 15 class CBC_QRDetector; | |
| 16 class CBC_BinaryBitmap; | 15 class CBC_BinaryBitmap; |
| 17 class CBC_QRCoderDecoder; | 16 class CBC_QRCoderDecoder; |
| 18 class CBC_ResultPoint; | |
| 19 class CBC_ReedSolomonGF256; | |
| 20 class CBC_QRCoderVersion; | |
| 21 class CBC_QRDetector; | |
| 22 class CBC_QRDetectorResult; | |
| 23 class CBC_QRCoderErrorCorrectionLevel; | |
| 24 class CBC_QRCoderMode; | |
| 25 class CBC_QRDataMask; | |
| 26 class CFX_DIBitmap; | 17 class CFX_DIBitmap; |
| 27 | 18 |
| 28 class CBC_QRCodeReader : public CBC_Reader { | 19 class CBC_QRCodeReader : public CBC_Reader { |
| 29 private: | 20 private: |
| 30 CBC_QRCoderDecoder* m_decoder; | 21 CBC_QRCoderDecoder* m_decoder; |
| 31 | 22 |
| 32 public: | 23 public: |
| 33 CBC_QRCodeReader(); | 24 CBC_QRCodeReader(); |
| 34 virtual ~CBC_QRCodeReader(); | 25 virtual ~CBC_QRCodeReader(); |
| 35 CFX_ByteString Decode(CFX_DIBitmap* pBitmap, | 26 CFX_ByteString Decode(CFX_DIBitmap* pBitmap, |
| 36 int32_t hints, | 27 int32_t hints, |
| 37 int32_t byteModeDecode, | 28 int32_t byteModeDecode, |
| 38 int32_t& e); | 29 int32_t& e); |
| 39 CFX_ByteString Decode(const CFX_WideString& filename, | 30 CFX_ByteString Decode(const CFX_WideString& filename, |
| 40 int32_t hints, | 31 int32_t hints, |
| 41 int32_t byteModeDecode, | 32 int32_t byteModeDecode, |
| 42 int32_t& e); | 33 int32_t& e); |
| 43 static void ReleaseAll(); | 34 static void ReleaseAll(); |
| 44 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); | 35 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); |
| 45 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); | 36 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); |
| 46 virtual void Init(); | 37 virtual void Init(); |
| 47 }; | 38 }; |
| 48 | 39 |
| 49 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ | 40 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ |
| OLD | NEW |