Home | History | Annotate | Download | only in pdf417
      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_PDF417_BC_PDF417BARCODEROW_H_
      8 #define FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
      9 
     10 #include <stdint.h>
     11 
     12 #include <vector>
     13 
     14 class CBC_BarcodeRow {
     15  public:
     16   explicit CBC_BarcodeRow(size_t width);
     17   virtual ~CBC_BarcodeRow();
     18 
     19   void set(int32_t x, uint8_t value);
     20   void set(int32_t x, bool black);
     21   void addBar(bool black, int32_t width);
     22   std::vector<uint8_t>& getRow();
     23   std::vector<uint8_t>& getScaledRow(int32_t scale);
     24 
     25  private:
     26   std::vector<uint8_t> m_row;
     27   std::vector<uint8_t> m_output;
     28   int32_t m_currentLocation;
     29 };
     30 
     31 #endif  // FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
     32