• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
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 
7 #ifndef FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
8 #define FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
9 
10 #include <stdint.h>
11 
12 class CBC_CommonByteMatrix;
13 class CBC_QRCoderErrorCorrectionLevel;
14 class CBC_QRCoderBitVector;
15 
16 class CBC_QRCoderMatrixUtil {
17  public:
18   CBC_QRCoderMatrixUtil() = delete;
19   ~CBC_QRCoderMatrixUtil() = delete;
20 
21   static bool BuildMatrix(CBC_QRCoderBitVector* dataBits,
22                           const CBC_QRCoderErrorCorrectionLevel* ecLevel,
23                           int32_t version,
24                           int32_t maskPattern,
25                           CBC_CommonByteMatrix* matrix);
26 };
27 
28 #endif  // FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
29