| 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_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ |
| 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ | 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 |
| 10 class CBC_Reader; | 12 class CBC_Reader; |
| 11 class CBC_BinaryBitmap; | 13 class CBC_BinaryBitmap; |
| 12 class CBC_CommonBitArray; | 14 class CBC_CommonBitArray; |
| 13 class CBC_OneDReader; | 15 |
| 14 class CBC_OneDReader : public CBC_Reader { | 16 class CBC_OneDReader : public CBC_Reader { |
| 15 public: | 17 public: |
| 16 CBC_OneDReader(); | 18 CBC_OneDReader(); |
| 17 virtual ~CBC_OneDReader(); | 19 virtual ~CBC_OneDReader(); |
| 18 virtual CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); | 20 virtual CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); |
| 19 virtual CFX_ByteString Decode(CBC_BinaryBitmap* image, | 21 virtual CFX_ByteString Decode(CBC_BinaryBitmap* image, |
| 20 int32_t hints, | 22 int32_t hints, |
| 21 int32_t& e); | 23 int32_t& e); |
| 22 virtual CFX_ByteString DecodeRow(int32_t rowNumber, | 24 virtual CFX_ByteString DecodeRow(int32_t rowNumber, |
| 23 CBC_CommonBitArray* row, | 25 CBC_CommonBitArray* row, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 void RecordPatternInReverse(CBC_CommonBitArray* row, | 41 void RecordPatternInReverse(CBC_CommonBitArray* row, |
| 40 int32_t start, | 42 int32_t start, |
| 41 CFX_Int32Array* counters, | 43 CFX_Int32Array* counters, |
| 42 int32_t& e); | 44 int32_t& e); |
| 43 int32_t PatternMatchVariance(CFX_Int32Array* counters, | 45 int32_t PatternMatchVariance(CFX_Int32Array* counters, |
| 44 const int32_t* pattern, | 46 const int32_t* pattern, |
| 45 int32_t maxIndividualVariance); | 47 int32_t maxIndividualVariance); |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ | 50 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDREADER_H_ |
| OLD | NEW |