| 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 XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ |
| 9 | 9 |
| 10 class CBC_CommonDecoderResult; | 10 class CBC_CommonDecoderResult; |
| 11 class CBC_QRCoderErrorCorrectionLevel; | 11 class CBC_QRCoderErrorCorrectionLevel; |
| 12 class CBC_CommonBitSource; | 12 class CBC_CommonBitSource; |
| 13 class CBC_QRCoderVersion; | 13 class CBC_QRCoderVersion; |
| 14 class CBC_CommonCharacterSetECI; | 14 class CBC_CommonCharacterSetECI; |
| 15 class CBC_QRDecodedBitStreamParser { | 15 class CBC_QRDecodedBitStreamParser { |
| 16 private: | 16 private: |
| 17 const static FX_CHAR ALPHANUMERIC_CHARS[45]; | 17 static const FX_CHAR ALPHANUMERIC_CHARS[45]; |
| 18 static const FX_CHAR* UTF_8; | 18 static const FX_CHAR* UTF_8; |
| 19 CBC_QRDecodedBitStreamParser(); | 19 CBC_QRDecodedBitStreamParser(); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 virtual ~CBC_QRDecodedBitStreamParser(); | 22 virtual ~CBC_QRDecodedBitStreamParser(); |
| 23 static CBC_CommonDecoderResult* Decode( | 23 static CBC_CommonDecoderResult* Decode( |
| 24 CFX_ByteArray* bytes, | 24 CFX_ByteArray* bytes, |
| 25 CBC_QRCoderVersion* version, | 25 CBC_QRCoderVersion* version, |
| 26 CBC_QRCoderErrorCorrectionLevel* ecLevel, | 26 CBC_QRCoderErrorCorrectionLevel* ecLevel, |
| 27 int32_t byteModeDecode, | 27 int32_t byteModeDecode, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 50 CBC_CommonBitSource* bits, | 50 CBC_CommonBitSource* bits, |
| 51 CFX_ByteString& result, | 51 CFX_ByteString& result, |
| 52 int32_t count, | 52 int32_t count, |
| 53 CBC_CommonCharacterSetECI* currentCharacterSetECI, | 53 CBC_CommonCharacterSetECI* currentCharacterSetECI, |
| 54 CFX_Int32Array* byteSegments, | 54 CFX_Int32Array* byteSegments, |
| 55 int32_t byteModeDecode, | 55 int32_t byteModeDecode, |
| 56 int32_t& e); | 56 int32_t& e); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ | 59 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRDECODEDBITSTREAMPARSER_H_ |
| OLD | NEW |