| OLD | NEW |
| 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_ONED_BC_ONEDCODE128READER_H_ | 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDCODE128READER_H_ |
| 8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128READER_H_ | 8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128READER_H_ |
| 9 | 9 |
| 10 class CBC_OneDReader; | 10 #include "xfa/fxbarcode/oned/BC_OneDReader.h" |
| 11 |
| 11 class CBC_CommonBitArray; | 12 class CBC_CommonBitArray; |
| 13 |
| 12 class CBC_OnedCode128Reader : public CBC_OneDReader { | 14 class CBC_OnedCode128Reader : public CBC_OneDReader { |
| 13 public: | 15 public: |
| 14 CBC_OnedCode128Reader(); | 16 CBC_OnedCode128Reader(); |
| 15 virtual ~CBC_OnedCode128Reader(); | 17 virtual ~CBC_OnedCode128Reader(); |
| 16 virtual CFX_ByteString DecodeRow(int32_t rowNumber, | 18 virtual CFX_ByteString DecodeRow(int32_t rowNumber, |
| 17 CBC_CommonBitArray* row, | 19 CBC_CommonBitArray* row, |
| 18 int32_t hints, | 20 int32_t hints, |
| 19 int32_t& e); | 21 int32_t& e); |
| 20 | 22 |
| 21 static const int32_t CODE_PATTERNS[107][7]; | 23 static const int32_t CODE_PATTERNS[107][7]; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 static const int32_t CODE_STOP = 106; | 42 static const int32_t CODE_STOP = 106; |
| 41 | 43 |
| 42 CFX_Int32Array* FindStartPattern(CBC_CommonBitArray* row, int32_t& e); | 44 CFX_Int32Array* FindStartPattern(CBC_CommonBitArray* row, int32_t& e); |
| 43 int32_t DecodeCode(CBC_CommonBitArray* row, | 45 int32_t DecodeCode(CBC_CommonBitArray* row, |
| 44 CFX_Int32Array* counters, | 46 CFX_Int32Array* counters, |
| 45 int32_t rowOffset, | 47 int32_t rowOffset, |
| 46 int32_t& e); | 48 int32_t& e); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128READER_H_ | 51 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128READER_H_ |
| OLD | NEW |