Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(869)

Side by Side Diff: xfa/fxbarcode/datamatrix/BC_DefaultPlacement.h

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_ 7 #ifndef XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_
8 #define XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_ 8 #define XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
11 11
12 class CBC_DefaultPlacement { 12 class CBC_DefaultPlacement {
13 public: 13 public:
14 CBC_DefaultPlacement(CFX_WideString codewords, 14 CBC_DefaultPlacement(CFX_WideString codewords,
15 int32_t numcols, 15 int32_t numcols,
16 int32_t numrows); 16 int32_t numrows);
17 virtual ~CBC_DefaultPlacement(); 17 virtual ~CBC_DefaultPlacement();
18 18
19 int32_t getNumrows(); 19 int32_t getNumrows();
20 int32_t getNumcols(); 20 int32_t getNumcols();
21 CFX_ByteArray& getBits(); 21 CFX_ArrayTemplate<uint8_t>& getBits();
22 bool getBit(int32_t col, int32_t row); 22 bool getBit(int32_t col, int32_t row);
23 void setBit(int32_t col, int32_t row, bool bit); 23 void setBit(int32_t col, int32_t row, bool bit);
24 bool hasBit(int32_t col, int32_t row); 24 bool hasBit(int32_t col, int32_t row);
25 void place(); 25 void place();
26 26
27 private: 27 private:
28 CFX_WideString m_codewords; 28 CFX_WideString m_codewords;
29 int32_t m_numrows; 29 int32_t m_numrows;
30 int32_t m_numcols; 30 int32_t m_numcols;
31 CFX_ByteArray m_bits; 31 CFX_ArrayTemplate<uint8_t> m_bits;
32 void module(int32_t row, int32_t col, int32_t pos, int32_t bit); 32 void module(int32_t row, int32_t col, int32_t pos, int32_t bit);
33 void utah(int32_t row, int32_t col, int32_t pos); 33 void utah(int32_t row, int32_t col, int32_t pos);
34 void corner1(int32_t pos); 34 void corner1(int32_t pos);
35 void corner2(int32_t pos); 35 void corner2(int32_t pos);
36 void corner3(int32_t pos); 36 void corner3(int32_t pos);
37 void corner4(int32_t pos); 37 void corner4(int32_t pos);
38 }; 38 };
39 39
40 #endif // XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_ 40 #endif // XFA_FXBARCODE_DATAMATRIX_BC_DEFAULTPLACEMENT_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp ('k') | xfa/fxbarcode/datamatrix/BC_DefaultPlacement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698