| 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_PDF417_BC_PDF417_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417_H_ |
| 8 #define XFA_FXBARCODE_PDF417_BC_PDF417_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static int32_t getNumberOfPadCodewords(int32_t m, | 44 static int32_t getNumberOfPadCodewords(int32_t m, |
| 45 int32_t k, | 45 int32_t k, |
| 46 int32_t c, | 46 int32_t c, |
| 47 int32_t r); | 47 int32_t r); |
| 48 static void encodeChar(int32_t pattern, int32_t len, CBC_BarcodeRow* logic); | 48 static void encodeChar(int32_t pattern, int32_t len, CBC_BarcodeRow* logic); |
| 49 void encodeLowLevel(CFX_WideString fullCodewords, | 49 void encodeLowLevel(CFX_WideString fullCodewords, |
| 50 int32_t c, | 50 int32_t c, |
| 51 int32_t r, | 51 int32_t r, |
| 52 int32_t errorCorrectionLevel, | 52 int32_t errorCorrectionLevel, |
| 53 CBC_BarcodeMatrix* logic); | 53 CBC_BarcodeMatrix* logic); |
| 54 CFX_Int32Array* determineDimensions(int32_t sourceCodeWords, | 54 CFX_ArrayTemplate<int32_t>* determineDimensions( |
| 55 int32_t errorCorrectionCodeWords, | 55 int32_t sourceCodeWords, |
| 56 int32_t& e); | 56 int32_t errorCorrectionCodeWords, |
| 57 int32_t& e); |
| 57 | 58 |
| 58 std::unique_ptr<CBC_BarcodeMatrix> m_barcodeMatrix; | 59 std::unique_ptr<CBC_BarcodeMatrix> m_barcodeMatrix; |
| 59 bool m_compact; | 60 bool m_compact; |
| 60 Compaction m_compaction; | 61 Compaction m_compaction; |
| 61 int32_t m_minCols; | 62 int32_t m_minCols; |
| 62 int32_t m_maxCols; | 63 int32_t m_maxCols; |
| 63 int32_t m_maxRows; | 64 int32_t m_maxRows; |
| 64 int32_t m_minRows; | 65 int32_t m_minRows; |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 #endif // XFA_FXBARCODE_PDF417_BC_PDF417_H_ | 68 #endif // XFA_FXBARCODE_PDF417_BC_PDF417_H_ |
| OLD | NEW |