BC_PDF417BarcodeRow.h revision 5ae9d0c6fd838a2967cca72aa5751b51dadc2769
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 XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_ 8#define XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_ 9 10#include "core/fxcrt/fx_basic.h" 11 12class CBC_BarcodeRow { 13 public: 14 explicit CBC_BarcodeRow(int32_t width); 15 virtual ~CBC_BarcodeRow(); 16 17 void set(int32_t x, uint8_t value); 18 void set(int32_t x, bool black); 19 void addBar(bool black, int32_t width); 20 CFX_ArrayTemplate<uint8_t>& getRow(); 21 CFX_ArrayTemplate<uint8_t>& getScaledRow(int32_t scale); 22 23 private: 24 CFX_ArrayTemplate<uint8_t> m_row; 25 CFX_ArrayTemplate<uint8_t> m_output; 26 int32_t m_currentLocation; 27}; 28 29#endif // XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_ 30