1 // Copyright 2014 The PDFium Authors 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_COMMON_BC_COMMONBITMATRIX_H_ 8 #define FXBARCODE_COMMON_BC_COMMONBITMATRIX_H_ 9 10 #include <stddef.h> 11 #include <stdint.h> 12 13 #include "core/fxcrt/fixed_zeroed_data_vector.h" 14 15 class CBC_CommonBitMatrix { 16 public: 17 CBC_CommonBitMatrix(size_t width, size_t height); 18 ~CBC_CommonBitMatrix(); 19 20 bool Get(size_t x, size_t y) const; 21 void Set(size_t x, size_t y); 22 23 private: 24 const size_t m_height; 25 const size_t m_rowSize; 26 FixedZeroedDataVector<uint32_t> m_bits; 27 }; 28 29 #endif // FXBARCODE_COMMON_BC_COMMONBITMATRIX_H_ 30