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

Side by Side Diff: xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h

Issue 2067903002: Make code compile with clang_use_chrome_plugin (part III) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 6 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
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417Common.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417DetectionResult.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_
8 #define XFA_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 #include "core/fxcrt/include/fx_string.h" 11 #include "core/fxcrt/include/fx_string.h"
12 12
13 class CBC_CommonDecoderResult; 13 class CBC_CommonDecoderResult;
14 class CBC_PDF417ResultMetadata; 14 class CBC_PDF417ResultMetadata;
15 15
16 class CBC_DecodedBitStreamPaser { 16 class CBC_DecodedBitStreamPaser {
17 public: 17 public:
18 CBC_DecodedBitStreamPaser(); 18 CBC_DecodedBitStreamPaser();
19 virtual ~CBC_DecodedBitStreamPaser(); 19 virtual ~CBC_DecodedBitStreamPaser();
20
20 static void Initialize(); 21 static void Initialize();
21 static void Finalize(); 22 static void Finalize();
22 static CBC_CommonDecoderResult* decode(CFX_Int32Array& codewords, 23 static CBC_CommonDecoderResult* decode(CFX_Int32Array& codewords,
23 CFX_ByteString ecLevel, 24 CFX_ByteString ecLevel,
24 int32_t& e); 25 int32_t& e);
25 26
26 private: 27 private:
27 enum Mode { ALPHA, LOWER, MIXED, PUNCT, ALPHA_SHIFT, PUNCT_SHIFT }; 28 enum Mode { ALPHA, LOWER, MIXED, PUNCT, ALPHA_SHIFT, PUNCT_SHIFT };
28 static int32_t MAX_NUMERIC_CODEWORDS; 29 static int32_t MAX_NUMERIC_CODEWORDS;
29 static int32_t PL; 30 static int32_t PL;
(...skipping 24 matching lines...) Expand all
54 static int32_t numericCompaction(CFX_Int32Array& codewords, 55 static int32_t numericCompaction(CFX_Int32Array& codewords,
55 int32_t codeIndex, 56 int32_t codeIndex,
56 CFX_ByteString& result, 57 CFX_ByteString& result,
57 int32_t& e); 58 int32_t& e);
58 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array& codewords, 59 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array& codewords,
59 int32_t count, 60 int32_t count,
60 int32_t& e); 61 int32_t& e);
61 }; 62 };
62 63
63 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ 64 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417Common.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417DetectionResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698