| 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_CONTEXT_H_ | 7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
| 8 #define CORE_SRC_FXCODEC_JBIG2_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_List.h" | 15 #include "JBig2_List.h" |
| 16 #include "JBig2_Page.h" | 16 #include "JBig2_Page.h" |
| 17 #include "JBig2_Segment.h" | 17 #include "JBig2_Segment.h" |
| 18 | 18 |
| 19 class CJBig2_ArithDecoder; |
| 19 class CJBig2_GRDProc; | 20 class CJBig2_GRDProc; |
| 20 class IFX_Pause; | 21 class IFX_Pause; |
| 21 | 22 |
| 22 using CJBig2_CachePair = std::pair<const uint8_t*, CJBig2_SymbolDict*>; | 23 using CJBig2_CachePair = std::pair<const uint8_t*, CJBig2_SymbolDict*>; |
| 23 | 24 |
| 24 #define JBIG2_SUCCESS 0 | 25 #define JBIG2_SUCCESS 0 |
| 25 #define JBIG2_FAILED -1 | 26 #define JBIG2_FAILED -1 |
| 26 #define JBIG2_ERROR_TOO_SHORT -2 | 27 #define JBIG2_ERROR_TOO_SHORT -2 |
| 27 #define JBIG2_ERROR_FATAL -3 | 28 #define JBIG2_ERROR_FATAL -3 |
| 28 #define JBIG2_END_OF_PAGE 2 | 29 #define JBIG2_END_OF_PAGE 2 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 nonstd::unique_ptr<CJBig2_ArithDecoder> m_pArithDecoder; | 122 nonstd::unique_ptr<CJBig2_ArithDecoder> m_pArithDecoder; |
| 122 nonstd::unique_ptr<CJBig2_GRDProc> m_pGRD; | 123 nonstd::unique_ptr<CJBig2_GRDProc> m_pGRD; |
| 123 JBig2ArithCtx* m_gbContext; | 124 JBig2ArithCtx* m_gbContext; |
| 124 nonstd::unique_ptr<CJBig2_Segment> m_pSegment; | 125 nonstd::unique_ptr<CJBig2_Segment> m_pSegment; |
| 125 FX_DWORD m_dwOffset; | 126 FX_DWORD m_dwOffset; |
| 126 JBig2RegionInfo m_ri; | 127 JBig2RegionInfo m_ri; |
| 127 std::list<CJBig2_CachePair>* const m_pSymbolDictCache; | 128 std::list<CJBig2_CachePair>* const m_pSymbolDictCache; |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ | 131 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ |
| OLD | NEW |