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_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
9 | 9 |
10 class CBC_CommonByteMatrix; | 10 class CBC_CommonByteMatrix; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 int32_t& e); | 48 int32_t& e); |
49 static int32_t FindMSBSet(int32_t value); | 49 static int32_t FindMSBSet(int32_t value); |
50 static int32_t CalculateBCHCode(int32_t code, int32_t poly); | 50 static int32_t CalculateBCHCode(int32_t code, int32_t poly); |
51 static void MakeTypeInfoBits(CBC_QRCoderErrorCorrectionLevel* ecLevel, | 51 static void MakeTypeInfoBits(CBC_QRCoderErrorCorrectionLevel* ecLevel, |
52 int32_t maskPattern, | 52 int32_t maskPattern, |
53 CBC_QRCoderBitVector* bits, | 53 CBC_QRCoderBitVector* bits, |
54 int32_t& e); | 54 int32_t& e); |
55 static void MakeVersionInfoBits(int32_t version, | 55 static void MakeVersionInfoBits(int32_t version, |
56 CBC_QRCoderBitVector* bits, | 56 CBC_QRCoderBitVector* bits, |
57 int32_t& e); | 57 int32_t& e); |
58 static FX_BOOL IsEmpty(int32_t value); | 58 static bool IsEmpty(int32_t value); |
59 static FX_BOOL IsValidValue(int32_t value); | 59 static bool IsValidValue(int32_t value); |
60 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, int32_t& e); | 60 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, int32_t& e); |
61 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix, | 61 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix, |
62 int32_t& e); | 62 int32_t& e); |
63 static void EmbedHorizontalSeparationPattern(int32_t xStart, | 63 static void EmbedHorizontalSeparationPattern(int32_t xStart, |
64 int32_t yStart, | 64 int32_t yStart, |
65 CBC_CommonByteMatrix* matrix, | 65 CBC_CommonByteMatrix* matrix, |
66 int32_t& e); | 66 int32_t& e); |
67 static void EmbedVerticalSeparationPattern(int32_t xStart, | 67 static void EmbedVerticalSeparationPattern(int32_t xStart, |
68 int32_t yStart, | 68 int32_t yStart, |
69 CBC_CommonByteMatrix* matrix, | 69 CBC_CommonByteMatrix* matrix, |
70 int32_t& e); | 70 int32_t& e); |
71 static void EmbedPositionAdjustmentPattern(int32_t xStart, | 71 static void EmbedPositionAdjustmentPattern(int32_t xStart, |
72 int32_t yStart, | 72 int32_t yStart, |
73 CBC_CommonByteMatrix* matrix, | 73 CBC_CommonByteMatrix* matrix, |
74 int32_t& e); | 74 int32_t& e); |
75 static void EmbedPositionDetectionPattern(int32_t xStart, | 75 static void EmbedPositionDetectionPattern(int32_t xStart, |
76 int32_t yStart, | 76 int32_t yStart, |
77 CBC_CommonByteMatrix* matrix, | 77 CBC_CommonByteMatrix* matrix, |
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_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ | 87 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
OLD | NEW |