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 _JBIG2_CONTEXT_H_ | 7 #ifndef _JBIG2_CONTEXT_H_ |
8 #define _JBIG2_CONTEXT_H_ | 8 #define _JBIG2_CONTEXT_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 IFX_Pause* pPause = NULL); | 49 IFX_Pause* pPause = NULL); |
50 | 50 |
51 static void DestroyContext(CJBig2_Context* pContext); | 51 static void DestroyContext(CJBig2_Context* pContext); |
52 | 52 |
53 int32_t getFirstPage(uint8_t* pBuf, | 53 int32_t getFirstPage(uint8_t* pBuf, |
54 int32_t width, | 54 int32_t width, |
55 int32_t height, | 55 int32_t height, |
56 int32_t stride, | 56 int32_t stride, |
57 IFX_Pause* pPause); | 57 IFX_Pause* pPause); |
58 | 58 |
59 int32_t getNextPage(uint8_t* pBuf, | |
60 int32_t width, | |
61 int32_t height, | |
62 int32_t stride, | |
63 IFX_Pause* pPause); | |
64 | |
65 int32_t getFirstPage(CJBig2_Image** image, IFX_Pause* pPause); | 59 int32_t getFirstPage(CJBig2_Image** image, IFX_Pause* pPause); |
66 | 60 |
67 int32_t getNextPage(CJBig2_Image** image, IFX_Pause* pPause); | |
68 int32_t Continue(IFX_Pause* pPause); | 61 int32_t Continue(IFX_Pause* pPause); |
69 FXCODEC_STATUS GetProcessiveStatus() { return m_ProcessiveStatus; } | 62 FXCODEC_STATUS GetProcessiveStatus() { return m_ProcessiveStatus; } |
70 | 63 |
71 private: | 64 private: |
72 CJBig2_Context(uint8_t* pGlobalData, | 65 CJBig2_Context(uint8_t* pGlobalData, |
73 FX_DWORD dwGlobalLength, | 66 FX_DWORD dwGlobalLength, |
74 uint8_t* pData, | 67 uint8_t* pData, |
75 FX_DWORD dwLength, | 68 FX_DWORD dwLength, |
76 int32_t nStreamType, | 69 int32_t nStreamType, |
77 std::list<CJBig2_CachePair>* pSymbolDictCache, | 70 std::list<CJBig2_CachePair>* pSymbolDictCache, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 FX_BOOL m_bFirstPage; | 141 FX_BOOL m_bFirstPage; |
149 CJBig2_ArithDecoder* m_pArithDecoder; | 142 CJBig2_ArithDecoder* m_pArithDecoder; |
150 CJBig2_GRDProc* m_pGRD; | 143 CJBig2_GRDProc* m_pGRD; |
151 JBig2ArithCtx* m_gbContext; | 144 JBig2ArithCtx* m_gbContext; |
152 CJBig2_Segment* m_pSegment; | 145 CJBig2_Segment* m_pSegment; |
153 FX_DWORD m_dwOffset; | 146 FX_DWORD m_dwOffset; |
154 JBig2RegionInfo m_ri; | 147 JBig2RegionInfo m_ri; |
155 std::list<CJBig2_CachePair>* m_pSymbolDictCache; | 148 std::list<CJBig2_CachePair>* m_pSymbolDictCache; |
156 }; | 149 }; |
157 #endif | 150 #endif |
OLD | NEW |