Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_Context.h

Issue 1359233002: Split up JBig2_GeneralDecoder.cpp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_ArithQe.h ('k') | core/src/fxcodec/jbig2/JBig2_Context.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_ArithQe.h ('k') | core/src/fxcodec/jbig2/JBig2_Context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698