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_QRCODERMATRIXUTIL_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
8 #define _BC_QRCODERMATRIXUTIL_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| 9 |
9 class CBC_CommonByteMatrix; | 10 class CBC_CommonByteMatrix; |
10 class CBC_QRCoderErrorCorrectionLevel; | 11 class CBC_QRCoderErrorCorrectionLevel; |
11 class CBC_QRCoderBitVector; | 12 class CBC_QRCoderBitVector; |
12 class CBC_QRCoderMatrixUtil { | 13 class CBC_QRCoderMatrixUtil { |
13 private: | 14 private: |
14 const static int32_t POSITION_DETECTION_PATTERN[7][7]; | 15 const static int32_t POSITION_DETECTION_PATTERN[7][7]; |
15 const static int32_t VERTICAL_SEPARATION_PATTERN[7][1]; | 16 const static int32_t VERTICAL_SEPARATION_PATTERN[7][1]; |
16 const static int32_t HORIZONTAL_SEPARATION_PATTERN[1][8]; | 17 const static int32_t HORIZONTAL_SEPARATION_PATTERN[1][8]; |
17 const static int32_t POSITION_ADJUSTMENT_PATTERN[5][5]; | 18 const static int32_t POSITION_ADJUSTMENT_PATTERN[5][5]; |
18 const static int32_t POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; | 19 const static int32_t POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 int32_t yStart, | 76 int32_t yStart, |
76 CBC_CommonByteMatrix* matrix, | 77 CBC_CommonByteMatrix* matrix, |
77 int32_t& e); | 78 int32_t& e); |
78 static void EmbedPositionDetectionPatternsAndSeparators( | 79 static void EmbedPositionDetectionPatternsAndSeparators( |
79 CBC_CommonByteMatrix* matrix, | 80 CBC_CommonByteMatrix* matrix, |
80 int32_t& e); | 81 int32_t& e); |
81 static void MaybeEmbedPositionAdjustmentPatterns(int32_t version, | 82 static void MaybeEmbedPositionAdjustmentPatterns(int32_t version, |
82 CBC_CommonByteMatrix* matrix, | 83 CBC_CommonByteMatrix* matrix, |
83 int32_t& e); | 84 int32_t& e); |
84 }; | 85 }; |
85 #endif | 86 |
| 87 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
OLD | NEW |