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

Side by Side Diff: xfa/fxbarcode/oned/BC_OnedUPCAReader.h

Issue 1816133002: Move xfa/include/fxbarcode/BC_Barcode.h to xfa/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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_ONED_BC_ONEDUPCAREADER_H_ 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_
8 #define XFA_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_ 8 #define XFA_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_
9 9
10 #include "core/include/fxcrt/fx_string.h"
11 #include "core/include/fxcrt/fx_system.h"
12 #include "xfa/fxbarcode/oned/BC_OneDimReader.h"
13
10 class CBC_BinaryBitmap; 14 class CBC_BinaryBitmap;
11 class CBC_CommonBitArray; 15 class CBC_CommonBitArray;
12 class CBC_OneDimReader;
13 class CBC_OnedEAN13Reader; 16 class CBC_OnedEAN13Reader;
14 class CBC_OnedUPCAReader; 17
15 class CBC_OnedUPCAReader : public CBC_OneDimReader { 18 class CBC_OnedUPCAReader : public CBC_OneDimReader {
16 private:
17 CBC_OnedEAN13Reader* m_ean13Reader;
18
19 public: 19 public:
20 CBC_OnedUPCAReader(); 20 CBC_OnedUPCAReader();
21 virtual ~CBC_OnedUPCAReader(); 21 virtual ~CBC_OnedUPCAReader();
22
23 virtual void Init();
24
22 CFX_ByteString DecodeRow(int32_t rowNumber, 25 CFX_ByteString DecodeRow(int32_t rowNumber,
23 CBC_CommonBitArray* row, 26 CBC_CommonBitArray* row,
24 int32_t hints, 27 int32_t hints,
25 int32_t& e); 28 int32_t& e);
26 CFX_ByteString DecodeRow(int32_t rowNumber, 29 CFX_ByteString DecodeRow(int32_t rowNumber,
27 CBC_CommonBitArray* row, 30 CBC_CommonBitArray* row,
28 CFX_Int32Array* startGuardRange, 31 CFX_Int32Array* startGuardRange,
29 int32_t hints, 32 int32_t hints,
30 int32_t& e); 33 int32_t& e);
31 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e); 34 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t& e);
32 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e); 35 CFX_ByteString Decode(CBC_BinaryBitmap* image, int32_t hints, int32_t& e);
33 virtual void Init();
34 36
35 protected: 37 protected:
36 int32_t DecodeMiddle(CBC_CommonBitArray* row, 38 int32_t DecodeMiddle(CBC_CommonBitArray* row,
37 CFX_Int32Array* startRange, 39 CFX_Int32Array* startRange,
38 CFX_ByteString& resultString, 40 CFX_ByteString& resultString,
39 int32_t& e); 41 int32_t& e);
40 CFX_ByteString MaybeReturnResult(CFX_ByteString& result, int32_t& e); 42 CFX_ByteString MaybeReturnResult(CFX_ByteString& result, int32_t& e);
43
44 private:
45 CBC_OnedEAN13Reader* m_ean13Reader;
46
41 }; 47 };
42 48
43 #endif // XFA_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_ 49 #endif // XFA_FXBARCODE_ONED_BC_ONEDUPCAREADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698