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 _BC_ONEDUPCAREADER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_ |
8 #define _BC_ONEDUPCAREADER_H_ | 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_ |
| 9 |
9 class CBC_BinaryBitmap; | 10 class CBC_BinaryBitmap; |
10 class CBC_CommonBitArray; | 11 class CBC_CommonBitArray; |
11 class CBC_OneDimReader; | 12 class CBC_OneDimReader; |
12 class CBC_OnedEAN13Reader; | 13 class CBC_OnedEAN13Reader; |
13 class CBC_OnedUPCAReader; | 14 class CBC_OnedUPCAReader; |
14 class CBC_OnedUPCAReader : public CBC_OneDimReader { | 15 class CBC_OnedUPCAReader : public CBC_OneDimReader { |
15 private: | 16 private: |
16 CBC_OnedEAN13Reader* m_ean13Reader; | 17 CBC_OnedEAN13Reader* m_ean13Reader; |
17 | 18 |
18 public: | 19 public: |
(...skipping 12 matching lines...) Expand all Loading... |
31 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); | 32 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); |
32 virtual void Init(); | 33 virtual void Init(); |
33 | 34 |
34 protected: | 35 protected: |
35 int32_t DecodeMiddle(CBC_CommonBitArray* row, | 36 int32_t DecodeMiddle(CBC_CommonBitArray* row, |
36 CFX_Int32Array* startRange, | 37 CFX_Int32Array* startRange, |
37 CFX_ByteString& resultString, | 38 CFX_ByteString& resultString, |
38 int32_t& e); | 39 int32_t& e); |
39 CFX_ByteString MaybeReturnResult(CFX_ByteString& result, int32_t& e); | 40 CFX_ByteString MaybeReturnResult(CFX_ByteString& result, int32_t& e); |
40 }; | 41 }; |
41 #endif | 42 |
| 43 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_ |
OLD | NEW |