| 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 CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ | 7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ |
| 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ | 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ |
| 9 | 9 |
| 10 #include "../../../include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 | 11 |
| 12 class CPDF_StreamAcc; | 12 class CPDF_StreamAcc; |
| 13 | 13 |
| 14 class CJBig2_BitStream { | 14 class CJBig2_BitStream { |
| 15 public: | 15 public: |
| 16 explicit CJBig2_BitStream(CPDF_StreamAcc* pSrcStream); | 16 explicit CJBig2_BitStream(CPDF_StreamAcc* pSrcStream); |
| 17 ~CJBig2_BitStream(); | 17 ~CJBig2_BitStream(); |
| 18 | 18 |
| 19 // TODO(thestig): readFoo() should return bool. | 19 // TODO(thestig): readFoo() should return bool. |
| 20 int32_t readNBits(FX_DWORD nBits, FX_DWORD* dwResult); | 20 int32_t readNBits(FX_DWORD nBits, FX_DWORD* dwResult); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 FX_DWORD m_dwLength; | 49 FX_DWORD m_dwLength; |
| 50 FX_DWORD m_dwByteIdx; | 50 FX_DWORD m_dwByteIdx; |
| 51 FX_DWORD m_dwBitIdx; | 51 FX_DWORD m_dwBitIdx; |
| 52 const FX_DWORD m_dwObjNum; | 52 const FX_DWORD m_dwObjNum; |
| 53 | 53 |
| 54 CJBig2_BitStream(const CJBig2_BitStream&) = delete; | 54 CJBig2_BitStream(const CJBig2_BitStream&) = delete; |
| 55 void operator=(const CJBig2_BitStream&) = delete; | 55 void operator=(const CJBig2_BitStream&) = delete; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ | 58 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_BITSTREAM_H_ |
| OLD | NEW |