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_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ | 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
8 #define CORE_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ | 8 #define CORE_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 26 matching lines...) Expand all Loading... |
37 #define JBIG2_ERROR_STREAM_TYPE -5 | 37 #define JBIG2_ERROR_STREAM_TYPE -5 |
38 #define JBIG2_ERROR_LIMIT -6 | 38 #define JBIG2_ERROR_LIMIT -6 |
39 #define JBIG2_MIN_SEGMENT_SIZE 11 | 39 #define JBIG2_MIN_SEGMENT_SIZE 11 |
40 | 40 |
41 class CJBig2_Context { | 41 class CJBig2_Context { |
42 public: | 42 public: |
43 static CJBig2_Context* CreateContext( | 43 static CJBig2_Context* CreateContext( |
44 CPDF_StreamAcc* pGlobalStream, | 44 CPDF_StreamAcc* pGlobalStream, |
45 CPDF_StreamAcc* pSrcStream, | 45 CPDF_StreamAcc* pSrcStream, |
46 std::list<CJBig2_CachePair>* pSymbolDictCache, | 46 std::list<CJBig2_CachePair>* pSymbolDictCache, |
47 IFX_Pause* pPause = NULL); | 47 IFX_Pause* pPause = nullptr); |
48 | 48 |
49 static void DestroyContext(CJBig2_Context* pContext); | 49 static void DestroyContext(CJBig2_Context* pContext); |
50 | 50 |
51 int32_t getFirstPage(uint8_t* pBuf, | 51 int32_t getFirstPage(uint8_t* pBuf, |
52 int32_t width, | 52 int32_t width, |
53 int32_t height, | 53 int32_t height, |
54 int32_t stride, | 54 int32_t stride, |
55 IFX_Pause* pPause); | 55 IFX_Pause* pPause); |
56 | 56 |
57 int32_t Continue(IFX_Pause* pPause); | 57 int32_t Continue(IFX_Pause* pPause); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 std::unique_ptr<CJBig2_GRDProc> m_pGRD; | 125 std::unique_ptr<CJBig2_GRDProc> m_pGRD; |
126 JBig2ArithCtx* m_gbContext; | 126 JBig2ArithCtx* m_gbContext; |
127 std::unique_ptr<CJBig2_Segment> m_pSegment; | 127 std::unique_ptr<CJBig2_Segment> m_pSegment; |
128 uint32_t m_dwOffset; | 128 uint32_t m_dwOffset; |
129 JBig2RegionInfo m_ri; | 129 JBig2RegionInfo m_ri; |
130 std::list<CJBig2_CachePair>* const m_pSymbolDictCache; | 130 std::list<CJBig2_CachePair>* const m_pSymbolDictCache; |
131 bool m_bIsGlobal; | 131 bool m_bIsGlobal; |
132 }; | 132 }; |
133 | 133 |
134 #endif // CORE_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ | 134 #endif // CORE_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
OLD | NEW |