| 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_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| 9 | 9 |
| 10 class CBC_CommonByteMatrix; | 10 class CBC_CommonByteMatrix; |
| 11 class CBC_QRCoderErrorCorrectionLevel; | 11 class CBC_QRCoderErrorCorrectionLevel; |
| 12 class CBC_QRCoderBitVector; | 12 class CBC_QRCoderBitVector; |
| 13 class CBC_QRCoderMatrixUtil { | 13 class CBC_QRCoderMatrixUtil { |
| 14 private: | 14 private: |
| 15 const static int32_t POSITION_DETECTION_PATTERN[7][7]; | 15 static const int32_t POSITION_DETECTION_PATTERN[7][7]; |
| 16 const static int32_t VERTICAL_SEPARATION_PATTERN[7][1]; | 16 static const int32_t VERTICAL_SEPARATION_PATTERN[7][1]; |
| 17 const static int32_t HORIZONTAL_SEPARATION_PATTERN[1][8]; | 17 static const int32_t HORIZONTAL_SEPARATION_PATTERN[1][8]; |
| 18 const static int32_t POSITION_ADJUSTMENT_PATTERN[5][5]; | 18 static const int32_t POSITION_ADJUSTMENT_PATTERN[5][5]; |
| 19 const static int32_t POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; | 19 static const int32_t POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; |
| 20 const static int32_t TYPE_INFO_COORDINATES[15][2]; | 20 static const int32_t TYPE_INFO_COORDINATES[15][2]; |
| 21 const static int32_t VERSION_INFO_POLY; | 21 static const int32_t VERSION_INFO_POLY; |
| 22 const static int32_t TYPE_INFO_POLY; | 22 static const int32_t TYPE_INFO_POLY; |
| 23 const static int32_t TYPE_INFO_MASK_PATTERN; | 23 static const int32_t TYPE_INFO_MASK_PATTERN; |
| 24 | 24 |
| 25 public: | 25 public: |
| 26 CBC_QRCoderMatrixUtil(); | 26 CBC_QRCoderMatrixUtil(); |
| 27 virtual ~CBC_QRCoderMatrixUtil(); | 27 virtual ~CBC_QRCoderMatrixUtil(); |
| 28 static void ClearMatrix(CBC_CommonByteMatrix* matrix, int32_t& e); | 28 static void ClearMatrix(CBC_CommonByteMatrix* matrix, int32_t& e); |
| 29 static void BuildMatrix(CBC_QRCoderBitVector* dataBits, | 29 static void BuildMatrix(CBC_QRCoderBitVector* dataBits, |
| 30 CBC_QRCoderErrorCorrectionLevel* ecLevel, | 30 CBC_QRCoderErrorCorrectionLevel* ecLevel, |
| 31 int32_t version, | 31 int32_t version, |
| 32 int32_t maskPattern, | 32 int32_t maskPattern, |
| 33 CBC_CommonByteMatrix* matrix, | 33 CBC_CommonByteMatrix* matrix, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 int32_t& e); | 78 int32_t& e); |
| 79 static void EmbedPositionDetectionPatternsAndSeparators( | 79 static void EmbedPositionDetectionPatternsAndSeparators( |
| 80 CBC_CommonByteMatrix* matrix, | 80 CBC_CommonByteMatrix* matrix, |
| 81 int32_t& e); | 81 int32_t& e); |
| 82 static void MaybeEmbedPositionAdjustmentPatterns(int32_t version, | 82 static void MaybeEmbedPositionAdjustmentPatterns(int32_t version, |
| 83 CBC_CommonByteMatrix* matrix, | 83 CBC_CommonByteMatrix* matrix, |
| 84 int32_t& e); | 84 int32_t& e); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 87 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| OLD | NEW |