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_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ |
8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ | 8 #define XFA_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/fxbarcode/BC_Reader.h" |
14 | 14 |
15 class CBC_BinaryBitmap; | 15 class CBC_BinaryBitmap; |
16 class CBC_QRCoderDecoder; | 16 class CBC_QRCoderDecoder; |
17 class CFX_DIBitmap; | 17 class CFX_DIBitmap; |
18 | 18 |
19 class CBC_QRCodeReader : public CBC_Reader { | 19 class CBC_QRCodeReader : public CBC_Reader { |
20 private: | 20 private: |
21 CBC_QRCoderDecoder* m_decoder; | 21 CBC_QRCoderDecoder* m_decoder; |
22 | 22 |
23 public: | 23 public: |
24 CBC_QRCodeReader(); | 24 CBC_QRCodeReader(); |
25 virtual ~CBC_QRCodeReader(); | 25 virtual ~CBC_QRCodeReader(); |
26 CFX_ByteString Decode(CFX_DIBitmap* pBitmap, | 26 CFX_ByteString Decode(CFX_DIBitmap* pBitmap, |
27 int32_t hints, | 27 int32_t hints, |
28 int32_t byteModeDecode, | 28 int32_t byteModeDecode, |
29 int32_t& e); | 29 int32_t& e); |
30 CFX_ByteString Decode(const CFX_WideString& filename, | 30 CFX_ByteString Decode(const CFX_WideString& filename, |
31 int32_t hints, | 31 int32_t hints, |
32 int32_t byteModeDecode, | 32 int32_t byteModeDecode, |
33 int32_t& e); | 33 int32_t& e); |
34 static void ReleaseAll(); | 34 static void ReleaseAll(); |
35 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); |
36 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); | 36 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); |
37 virtual void Init(); | 37 virtual void Init(); |
38 }; | 38 }; |
39 | 39 |
40 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ | 40 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODEREADER_H_ |
OLD | NEW |