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