| 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 _BC_QRCODERMATRIXUTIL_H_ |
| 8 #define _BC_QRCODERMATRIXUTIL_H_ | 8 #define _BC_QRCODERMATRIXUTIL_H_ |
| 9 class CBC_CommonByteMatrix; | 9 class CBC_CommonByteMatrix; |
| 10 class CBC_QRCoderErrorCorrectionLevel; | 10 class CBC_QRCoderErrorCorrectionLevel; |
| 11 class CBC_QRCoderBitVector; | 11 class CBC_QRCoderBitVector; |
| 12 class CBC_QRCoderMatrixUtil; | 12 class CBC_QRCoderMatrixUtil |
| 13 class CBC_QRCoderMatrixUtil : public CFX_Object | |
| 14 { | 13 { |
| 15 private: | 14 private: |
| 16 const static FX_INT32 POSITION_DETECTION_PATTERN[7][7]; | 15 const static FX_INT32 POSITION_DETECTION_PATTERN[7][7]; |
| 17 const static FX_INT32 VERTICAL_SEPARATION_PATTERN[7][1]; | 16 const static FX_INT32 VERTICAL_SEPARATION_PATTERN[7][1]; |
| 18 const static FX_INT32 HORIZONTAL_SEPARATION_PATTERN[1][8]; | 17 const static FX_INT32 HORIZONTAL_SEPARATION_PATTERN[1][8]; |
| 19 const static FX_INT32 POSITION_ADJUSTMENT_PATTERN[5][5]; | 18 const static FX_INT32 POSITION_ADJUSTMENT_PATTERN[5][5]; |
| 20 const static FX_INT32 POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; | 19 const static FX_INT32 POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[40][7]; |
| 21 const static FX_INT32 TYPE_INFO_COORDINATES[15][2]; | 20 const static FX_INT32 TYPE_INFO_COORDINATES[15][2]; |
| 22 const static FX_INT32 VERSION_INFO_POLY; | 21 const static FX_INT32 VERSION_INFO_POLY; |
| 23 const static FX_INT32 TYPE_INFO_POLY; | 22 const static FX_INT32 TYPE_INFO_POLY; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, FX_INT32 &e); | 40 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, FX_INT32 &e); |
| 42 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix, FX_
INT32 &e); | 41 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix, FX_
INT32 &e); |
| 43 static void EmbedHorizontalSeparationPattern(FX_INT32 xStart, FX_INT32 yStar
t, CBC_CommonByteMatrix* matrix, FX_INT32 &e); | 42 static void EmbedHorizontalSeparationPattern(FX_INT32 xStart, FX_INT32 yStar
t, CBC_CommonByteMatrix* matrix, FX_INT32 &e); |
| 44 static void EmbedVerticalSeparationPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); | 43 static void EmbedVerticalSeparationPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); |
| 45 static void EmbedPositionAdjustmentPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); | 44 static void EmbedPositionAdjustmentPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); |
| 46 static void EmbedPositionDetectionPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); | 45 static void EmbedPositionDetectionPattern(FX_INT32 xStart, FX_INT32 yStart,
CBC_CommonByteMatrix* matrix, FX_INT32 &e); |
| 47 static void EmbedPositionDetectionPatternsAndSeparators(CBC_CommonByteMatrix
* matrix, FX_INT32 &e); | 46 static void EmbedPositionDetectionPatternsAndSeparators(CBC_CommonByteMatrix
* matrix, FX_INT32 &e); |
| 48 static void MaybeEmbedPositionAdjustmentPatterns(FX_INT32 version, CBC_Commo
nByteMatrix* matrix, FX_INT32 &e); | 47 static void MaybeEmbedPositionAdjustmentPatterns(FX_INT32 version, CBC_Commo
nByteMatrix* matrix, FX_INT32 &e); |
| 49 }; | 48 }; |
| 50 #endif | 49 #endif |
| OLD | NEW |