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_DATAMATRIX_BC_SYMBOLINFO_H_ | 7 #ifndef XFA_FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_ |
8 #define XFA_FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_ | 8 #define XFA_FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 #include "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h" | 12 #include "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h" |
13 | 13 |
14 class CBC_Dimension; | 14 class CBC_Dimension; |
15 | 15 |
16 class CBC_SymbolInfo : public CBC_SymbolShapeHint { | 16 class CBC_SymbolInfo : public CBC_SymbolShapeHint { |
17 public: | 17 public: |
18 CBC_SymbolInfo(FX_BOOL rectangular, | 18 CBC_SymbolInfo(FX_BOOL rectangular, |
19 int32_t dataCapacity, | 19 int32_t dataCapacity, |
20 int32_t errorCodewords, | 20 int32_t errorCodewords, |
21 int32_t matrixWidth, | 21 int32_t matrixWidth, |
22 int32_t matrixHeight, | 22 int32_t matrixHeight, |
23 int32_t dataRegions); | 23 int32_t dataRegions); |
24 virtual ~CBC_SymbolInfo(); | 24 ~CBC_SymbolInfo() override; |
| 25 |
25 static void Initialize(); | 26 static void Initialize(); |
26 static void Finalize(); | 27 static void Finalize(); |
27 static void overrideSymbolSet(CBC_SymbolInfo* override); | 28 static void overrideSymbolSet(CBC_SymbolInfo* override); |
28 static CBC_SymbolInfo* lookup(int32_t dataCodewords, int32_t& e); | 29 static CBC_SymbolInfo* lookup(int32_t dataCodewords, int32_t& e); |
29 static CBC_SymbolInfo* lookup(int32_t dataCodewords, | 30 static CBC_SymbolInfo* lookup(int32_t dataCodewords, |
30 SymbolShapeHint shape, | 31 SymbolShapeHint shape, |
31 int32_t& e); | 32 int32_t& e); |
32 static CBC_SymbolInfo* lookup(int32_t dataCodewords, | 33 static CBC_SymbolInfo* lookup(int32_t dataCodewords, |
33 FX_BOOL allowRectangular, | 34 FX_BOOL allowRectangular, |
34 FX_BOOL fail, | 35 FX_BOOL fail, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 int32_t matrixHeight, | 70 int32_t matrixHeight, |
70 int32_t dataRegions, | 71 int32_t dataRegions, |
71 int32_t rsBlockData, | 72 int32_t rsBlockData, |
72 int32_t rsBlockError); | 73 int32_t rsBlockError); |
73 | 74 |
74 FX_BOOL m_rectangular; | 75 FX_BOOL m_rectangular; |
75 int32_t m_dataRegions; | 76 int32_t m_dataRegions; |
76 }; | 77 }; |
77 | 78 |
78 #endif // XFA_FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_ | 79 #endif // XFA_FXBARCODE_DATAMATRIX_BC_SYMBOLINFO_H_ |
OLD | NEW |