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 _BC_UTILRESS_H_ | 7 #ifndef XFA_SRC_FXBARCODE_BC_UTILRSS_H_ |
8 #define _BC_UTILRESS_H_ | 8 #define XFA_SRC_FXBARCODE_BC_UTILRSS_H_ |
| 9 |
9 class CBC_RssPair; | 10 class CBC_RssPair; |
10 class CBC_UtilRSS { | 11 class CBC_UtilRSS { |
11 public: | 12 public: |
12 virtual ~CBC_UtilRSS(); | 13 virtual ~CBC_UtilRSS(); |
13 static int32_t GetRSSvalue(CFX_Int32Array& widths, | 14 static int32_t GetRSSvalue(CFX_Int32Array& widths, |
14 int32_t maxWidth, | 15 int32_t maxWidth, |
15 FX_BOOL noNarrow); | 16 FX_BOOL noNarrow); |
16 | 17 |
17 protected: | 18 protected: |
18 static CFX_Int32Array* GetRssWidths(int32_t val, | 19 static CFX_Int32Array* GetRssWidths(int32_t val, |
19 int32_t n, | 20 int32_t n, |
20 int32_t elements, | 21 int32_t elements, |
21 int32_t maxWidth, | 22 int32_t maxWidth, |
22 FX_BOOL noNarrow); | 23 FX_BOOL noNarrow); |
23 static int32_t Combins(int32_t n, int32_t r); | 24 static int32_t Combins(int32_t n, int32_t r); |
24 static CFX_Int32Array* Elements(CFX_Int32Array& eDist, int32_t N, int32_t K); | 25 static CFX_Int32Array* Elements(CFX_Int32Array& eDist, int32_t N, int32_t K); |
25 | 26 |
26 private: | 27 private: |
27 CBC_UtilRSS(); | 28 CBC_UtilRSS(); |
28 }; | 29 }; |
29 #endif | 30 |
| 31 #endif // XFA_SRC_FXBARCODE_BC_UTILRSS_H_ |
OLD | NEW |