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