blob: bf498eb90ef698c89237469a93abb6c60ae5d8cd [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2014 The PDFium Authors
Dan Sinclair1770c022016-03-14 14:14:16 -04002// 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 Sinclaire7786682017-03-29 15:18:41 -04007#ifndef FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
8#define FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
Dan Sinclair1770c022016-03-14 14:14:16 -04009
Lei Zhang41e9ccc2018-12-07 19:08:29 +000010#include <stdint.h>
11
Dan Sinclair1770c022016-03-14 14:14:16 -040012class CBC_CommonByteMatrix;
13class CBC_QRCoderErrorCorrectionLevel;
14class CBC_QRCoderBitVector;
Dan Sinclair1770c022016-03-14 14:14:16 -040015
Lei Zhang8a24b252017-04-06 14:23:26 -070016class CBC_QRCoderMatrixUtil {
Dan Sinclair1770c022016-03-14 14:14:16 -040017 public:
Lei Zhang73301432018-09-22 06:04:40 +000018 CBC_QRCoderMatrixUtil() = delete;
19 ~CBC_QRCoderMatrixUtil() = delete;
20
Lei Zhangc1c7e512018-09-22 06:06:00 +000021 static bool BuildMatrix(CBC_QRCoderBitVector* dataBits,
Lei Zhang8a24b252017-04-06 14:23:26 -070022 const CBC_QRCoderErrorCorrectionLevel* ecLevel,
Dan Sinclair1770c022016-03-14 14:14:16 -040023 int32_t version,
24 int32_t maskPattern,
Lei Zhangc1c7e512018-09-22 06:06:00 +000025 CBC_CommonByteMatrix* matrix);
Dan Sinclair1770c022016-03-14 14:14:16 -040026};
27
Dan Sinclaire7786682017-03-29 15:18:41 -040028#endif // FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_