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_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ | 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ |
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ | 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ |
9 | 9 |
10 #include "xfa/fxbarcode/BC_TwoDimWriter.h" | 10 #include "xfa/fxbarcode/BC_TwoDimWriter.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 BCFORMAT format, | 24 BCFORMAT format, |
25 int32_t& outWidth, | 25 int32_t& outWidth, |
26 int32_t& outHeight, | 26 int32_t& outHeight, |
27 int32_t hints, | 27 int32_t hints, |
28 int32_t& e); | 28 int32_t& e); |
29 uint8_t* Encode(const CFX_ByteString& contents, | 29 uint8_t* Encode(const CFX_ByteString& contents, |
30 BCFORMAT format, | 30 BCFORMAT format, |
31 int32_t& outWidth, | 31 int32_t& outWidth, |
32 int32_t& outHeight, | 32 int32_t& outHeight, |
33 int32_t& e); | 33 int32_t& e); |
34 FX_BOOL SetVersion(int32_t version); | 34 bool SetVersion(int32_t version); |
35 | 35 |
36 // CBC_TwoDimWriter | 36 // CBC_TwoDimWriter |
37 FX_BOOL SetErrorCorrectionLevel(int32_t level) override; | 37 bool SetErrorCorrectionLevel(int32_t level) override; |
38 | 38 |
39 static void ReleaseAll(); | 39 static void ReleaseAll(); |
40 | 40 |
41 private: | 41 private: |
42 int32_t m_iVersion; | 42 int32_t m_iVersion; |
43 }; | 43 }; |
44 | 44 |
45 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ | 45 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODEWRITER_H_ |
OLD | NEW |