| 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 _BC_DECODEDBITSTREAMPARSER_H_ |
| 8 #define _BC_DECODEDBITSTREAMPARSER_H_ | 8 #define _BC_DECODEDBITSTREAMPARSER_H_ |
| 9 class CBC_CommonDecoderResult; | 9 class CBC_CommonDecoderResult; |
| 10 class CBC_PDF417ResultMetadata; | 10 class CBC_PDF417ResultMetadata; |
| 11 class CBC_DecodedBitStreamPaser; | 11 class CBC_DecodedBitStreamPaser |
| 12 class CBC_DecodedBitStreamPaser : public CFX_Object | |
| 13 { | 12 { |
| 14 public: | 13 public: |
| 15 CBC_DecodedBitStreamPaser(); | 14 CBC_DecodedBitStreamPaser(); |
| 16 virtual ~CBC_DecodedBitStreamPaser(); | 15 virtual ~CBC_DecodedBitStreamPaser(); |
| 17 static void Initialize(); | 16 static void Initialize(); |
| 18 static void Finalize(); | 17 static void Finalize(); |
| 19 static CBC_CommonDecoderResult* decode(CFX_Int32Array &codewords, CFX_ByteSt
ring ecLevel, FX_INT32 &e); | 18 static CBC_CommonDecoderResult* decode(CFX_Int32Array &codewords, CFX_ByteSt
ring ecLevel, FX_INT32 &e); |
| 20 | 19 |
| 21 private: | 20 private: |
| 22 enum Mode { | 21 enum Mode { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 39 static FX_CHAR MIXED_CHARS[30]; | 38 static FX_CHAR MIXED_CHARS[30]; |
| 40 static FX_INT32 NUMBER_OF_SEQUENCE_CODEWORDS; | 39 static FX_INT32 NUMBER_OF_SEQUENCE_CODEWORDS; |
| 41 static FX_INT32 decodeMacroBlock(CFX_Int32Array &codewords, FX_INT32 codeInd
ex, CBC_PDF417ResultMetadata* resultMetadata, FX_INT32 &e); | 40 static FX_INT32 decodeMacroBlock(CFX_Int32Array &codewords, FX_INT32 codeInd
ex, CBC_PDF417ResultMetadata* resultMetadata, FX_INT32 &e); |
| 42 static FX_INT32 textCompaction(CFX_Int32Array &codewords, FX_INT32 codeIndex
, CFX_ByteString &result); | 41 static FX_INT32 textCompaction(CFX_Int32Array &codewords, FX_INT32 codeIndex
, CFX_ByteString &result); |
| 43 static void decodeTextCompaction(CFX_Int32Array &textCompactionData, CFX_Int
32Array &byteCompactionData, FX_INT32 length, CFX_ByteString &result); | 42 static void decodeTextCompaction(CFX_Int32Array &textCompactionData, CFX_Int
32Array &byteCompactionData, FX_INT32 length, CFX_ByteString &result); |
| 44 static FX_INT32 byteCompaction(FX_INT32 mode, CFX_Int32Array &codewords, FX_
INT32 codeIndex, CFX_ByteString &result); | 43 static FX_INT32 byteCompaction(FX_INT32 mode, CFX_Int32Array &codewords, FX_
INT32 codeIndex, CFX_ByteString &result); |
| 45 static FX_INT32 numericCompaction(CFX_Int32Array &codewords, FX_INT32 codeIn
dex, CFX_ByteString &result, FX_INT32 &e); | 44 static FX_INT32 numericCompaction(CFX_Int32Array &codewords, FX_INT32 codeIn
dex, CFX_ByteString &result, FX_INT32 &e); |
| 46 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array &codewords, FX_IN
T32 count, FX_INT32 &e); | 45 static CFX_ByteString decodeBase900toBase10(CFX_Int32Array &codewords, FX_IN
T32 count, FX_INT32 &e); |
| 47 }; | 46 }; |
| 48 #endif | 47 #endif |
| OLD | NEW |