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_DECODEDBITSTREAMPARSER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ |
8 #define _BC_DECODEDBITSTREAMPARSER_H_ | 8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ |
| 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "core/include/fxcrt/fx_string.h" |
| 12 |
9 class CBC_CommonDecoderResult; | 13 class CBC_CommonDecoderResult; |
10 class CBC_PDF417ResultMetadata; | 14 class CBC_PDF417ResultMetadata; |
| 15 |
11 class CBC_DecodedBitStreamPaser { | 16 class CBC_DecodedBitStreamPaser { |
12 public: | 17 public: |
13 CBC_DecodedBitStreamPaser(); | 18 CBC_DecodedBitStreamPaser(); |
14 virtual ~CBC_DecodedBitStreamPaser(); | 19 virtual ~CBC_DecodedBitStreamPaser(); |
15 static void Initialize(); | 20 static void Initialize(); |
16 static void Finalize(); | 21 static void Finalize(); |
17 static CBC_CommonDecoderResult* decode(CFX_Int32Array& codewords, | 22 static CBC_CommonDecoderResult* decode(CFX_Int32Array& codewords, |
18 CFX_ByteString ecLevel, | 23 CFX_ByteString ecLevel, |
19 int32_t& e); | 24 int32_t& e); |
20 | 25 |
(...skipping 26 matching lines...) Expand all Loading... |
47 int32_t codeIndex, | 52 int32_t codeIndex, |
48 CFX_ByteString& result); | 53 CFX_ByteString& result); |
49 static int32_t numericCompaction(CFX_Int32Array& codewords, | 54 static int32_t numericCompaction(CFX_Int32Array& codewords, |
50 int32_t codeIndex, | 55 int32_t codeIndex, |
51 CFX_ByteString& result, | 56 CFX_ByteString& result, |
52 int32_t& e); | 57 int32_t& e); |
53 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array& codewords, | 58 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array& codewords, |
54 int32_t count, | 59 int32_t count, |
55 int32_t& e); | 60 int32_t& e); |
56 }; | 61 }; |
57 #endif | 62 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417DECODEDBITSTREAMPARSER_H_ |
OLD | NEW |