| K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | // Copyright 2014 The PDFium Authors |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
| Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 7 | #ifndef FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| 8 | #define FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 9 | |
| Lei Zhang | 41e9ccc | 2018-12-07 19:08:29 +0000 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 12 | class CBC_CommonByteMatrix; |
| 13 | class CBC_QRCoderErrorCorrectionLevel; |
| 14 | class CBC_QRCoderBitVector; |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 15 | |
| Lei Zhang | 8a24b25 | 2017-04-06 14:23:26 -0700 | [diff] [blame] | 16 | class CBC_QRCoderMatrixUtil { |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 17 | public: |
| Lei Zhang | 7330143 | 2018-09-22 06:04:40 +0000 | [diff] [blame] | 18 | CBC_QRCoderMatrixUtil() = delete; |
| 19 | ~CBC_QRCoderMatrixUtil() = delete; |
| 20 | |
| Lei Zhang | c1c7e51 | 2018-09-22 06:06:00 +0000 | [diff] [blame] | 21 | static bool BuildMatrix(CBC_QRCoderBitVector* dataBits, |
| Lei Zhang | 8a24b25 | 2017-04-06 14:23:26 -0700 | [diff] [blame] | 22 | const CBC_QRCoderErrorCorrectionLevel* ecLevel, |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 23 | int32_t version, |
| 24 | int32_t maskPattern, |
| Lei Zhang | c1c7e51 | 2018-09-22 06:06:00 +0000 | [diff] [blame] | 25 | CBC_CommonByteMatrix* matrix); |
| Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 26 | }; |
| 27 | |
| Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 28 | #endif // FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_ |