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