summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h')
-rw-r--r--xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h b/xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
new file mode 100644
index 0000000000..007876a93c
--- /dev/null
+++ b/xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
@@ -0,0 +1,28 @@
+// 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 XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
+#define XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
+
+#include "core/include/fxcrt/fx_basic.h"
+
+class CBC_BarcodeRow {
+ public:
+ CBC_BarcodeRow(int32_t width);
+ virtual ~CBC_BarcodeRow();
+ void set(int32_t x, uint8_t value);
+ void set(int32_t x, FX_BOOL black);
+ void addBar(FX_BOOL black, int32_t width);
+ CFX_ByteArray& getRow();
+ CFX_ByteArray& getScaledRow(int32_t scale);
+
+ private:
+ CFX_ByteArray m_row;
+ CFX_ByteArray m_output;
+ int32_t m_currentLocation;
+};
+
+#endif // XFA_FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_