blob: bee2ef9cb9343fb7fa3d323b6cf7104e1f26ae14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef FXBARCODE_PDF417_BC_PDF417BARCODEMATRIX_H_
#define FXBARCODE_PDF417_BC_PDF417BARCODEMATRIX_H_
#include <memory>
#include <vector>
class CBC_BarcodeRow;
class CBC_BarcodeMatrix {
public:
CBC_BarcodeMatrix(size_t height, size_t width);
virtual ~CBC_BarcodeMatrix();
CBC_BarcodeRow* getRow(size_t row) const { return m_matrix[row].get(); }
size_t getWidth() const { return m_width; }
size_t getHeight() const { return m_height; }
std::vector<uint8_t>& getMatrix();
private:
std::vector<std::unique_ptr<CBC_BarcodeRow>> m_matrix;
std::vector<uint8_t> m_matrixOut;
size_t m_width;
size_t m_height;
};
#endif // FXBARCODE_PDF417_BC_PDF417BARCODEMATRIX_H_
|