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 CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
8 #define _JBIG2_CONTEXT_H_ | 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "../../../../third_party/base/nonstd_unique_ptr.h" | 13 #include "../../../../third_party/base/nonstd_unique_ptr.h" |
14 #include "../../../include/fxcodec/fx_codec_def.h" | 14 #include "../../../include/fxcodec/fx_codec_def.h" |
15 #include "JBig2_GeneralDecoder.h" | |
16 #include "JBig2_List.h" | 15 #include "JBig2_List.h" |
17 #include "JBig2_Page.h" | 16 #include "JBig2_Page.h" |
18 #include "JBig2_Segment.h" | 17 #include "JBig2_Segment.h" |
19 | 18 |
| 19 class CJBig2_GRDProc; |
| 20 class IFX_Pause; |
| 21 |
20 using CJBig2_CachePair = std::pair<const uint8_t*, CJBig2_SymbolDict*>; | 22 using CJBig2_CachePair = std::pair<const uint8_t*, CJBig2_SymbolDict*>; |
21 | 23 |
22 #define JBIG2_SUCCESS 0 | 24 #define JBIG2_SUCCESS 0 |
23 #define JBIG2_FAILED -1 | 25 #define JBIG2_FAILED -1 |
24 #define JBIG2_ERROR_TOO_SHORT -2 | 26 #define JBIG2_ERROR_TOO_SHORT -2 |
25 #define JBIG2_ERROR_FATAL -3 | 27 #define JBIG2_ERROR_FATAL -3 |
26 #define JBIG2_END_OF_PAGE 2 | 28 #define JBIG2_END_OF_PAGE 2 |
27 #define JBIG2_END_OF_FILE 3 | 29 #define JBIG2_END_OF_FILE 3 |
28 #define JBIG2_ERROR_FILE_FORMAT -4 | 30 #define JBIG2_ERROR_FILE_FORMAT -4 |
29 #define JBIG2_ERROR_STREAM_TYPE -5 | 31 #define JBIG2_ERROR_STREAM_TYPE -5 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 FXCODEC_STATUS m_ProcessingStatus; | 136 FXCODEC_STATUS m_ProcessingStatus; |
135 FX_BOOL m_bFirstPage; | 137 FX_BOOL m_bFirstPage; |
136 CJBig2_ArithDecoder* m_pArithDecoder; | 138 CJBig2_ArithDecoder* m_pArithDecoder; |
137 CJBig2_GRDProc* m_pGRD; | 139 CJBig2_GRDProc* m_pGRD; |
138 JBig2ArithCtx* m_gbContext; | 140 JBig2ArithCtx* m_gbContext; |
139 nonstd::unique_ptr<CJBig2_Segment> m_pSegment; | 141 nonstd::unique_ptr<CJBig2_Segment> m_pSegment; |
140 FX_DWORD m_dwOffset; | 142 FX_DWORD m_dwOffset; |
141 JBig2RegionInfo m_ri; | 143 JBig2RegionInfo m_ri; |
142 std::list<CJBig2_CachePair>* m_pSymbolDictCache; | 144 std::list<CJBig2_CachePair>* m_pSymbolDictCache; |
143 }; | 145 }; |
144 #endif | 146 |
| 147 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
OLD | NEW |