blob: 4e9bf1e8761f297109dd34da32e92d9be7971980 [file] [log] [blame]
// 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_COMMON_BC_COMMONBITMATRIX_H_
#define FXBARCODE_COMMON_BC_COMMONBITMATRIX_H_
#include <stddef.h>
#include <stdint.h>
#include <vector>
class CBC_CommonBitMatrix {
public:
CBC_CommonBitMatrix(size_t width, size_t height);
~CBC_CommonBitMatrix();
bool Get(size_t x, size_t y) const;
void Set(size_t x, size_t y);
private:
const size_t m_height;
const size_t m_rowSize;
std::vector<uint32_t> m_bits;
};
#endif // FXBARCODE_COMMON_BC_COMMONBITMATRIX_H_