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_PDF417_H_ | 7 #ifndef XFA_SRC_FXBARCODE_PDF417_BC_PDF417_H_ |
8 #define _BC_PDF417_H_ | 8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417_H_ |
| 9 |
9 class CBC_Compaction; | 10 class CBC_Compaction; |
10 class CBC_BarcodeRow; | 11 class CBC_BarcodeRow; |
11 class CBC_BarcodeMatrix; | 12 class CBC_BarcodeMatrix; |
12 class CBC_PDF417 { | 13 class CBC_PDF417 { |
13 public: | 14 public: |
14 CBC_PDF417(); | 15 CBC_PDF417(); |
15 CBC_PDF417(FX_BOOL compact); | 16 CBC_PDF417(FX_BOOL compact); |
16 virtual ~CBC_PDF417(); | 17 virtual ~CBC_PDF417(); |
17 CBC_BarcodeMatrix* getBarcodeMatrix(); | 18 CBC_BarcodeMatrix* getBarcodeMatrix(); |
18 void generateBarcodeLogic(CFX_WideString msg, | 19 void generateBarcodeLogic(CFX_WideString msg, |
(...skipping 30 matching lines...) Expand all Loading... |
49 static void encodeChar(int32_t pattern, int32_t len, CBC_BarcodeRow* logic); | 50 static void encodeChar(int32_t pattern, int32_t len, CBC_BarcodeRow* logic); |
50 void encodeLowLevel(CFX_WideString fullCodewords, | 51 void encodeLowLevel(CFX_WideString fullCodewords, |
51 int32_t c, | 52 int32_t c, |
52 int32_t r, | 53 int32_t r, |
53 int32_t errorCorrectionLevel, | 54 int32_t errorCorrectionLevel, |
54 CBC_BarcodeMatrix* logic); | 55 CBC_BarcodeMatrix* logic); |
55 CFX_Int32Array* determineDimensions(int32_t sourceCodeWords, | 56 CFX_Int32Array* determineDimensions(int32_t sourceCodeWords, |
56 int32_t errorCorrectionCodeWords, | 57 int32_t errorCorrectionCodeWords, |
57 int32_t& e); | 58 int32_t& e); |
58 }; | 59 }; |
59 #endif | 60 |
| 61 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417_H_ |
OLD | NEW |