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

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

Issue 1395613003: Put CJBig2_SymbolDict's images in a CJBig2_List container. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 2 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_SddProc.cpp ('k') | core/src/fxcodec/jbig2/JBig2_SymbolDict.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 CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_ 7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_
8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_ 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_
9 9
10 #include "../../../../third_party/base/nonstd_unique_ptr.h" 10 #include "../../../../third_party/base/nonstd_unique_ptr.h"
11 #include "../../../include/fxcrt/fx_basic.h" 11 #include "../../../include/fxcrt/fx_basic.h"
12 #include "JBig2_ArithDecoder.h" 12 #include "JBig2_List.h"
13 13
14 class CJBig2_Image; 14 class CJBig2_Image;
15 struct JBig2ArithCtx;
15 16
16 class CJBig2_SymbolDict { 17 class CJBig2_SymbolDict {
17 public: 18 public:
18 CJBig2_SymbolDict(); 19 CJBig2_SymbolDict();
19 ~CJBig2_SymbolDict(); 20 ~CJBig2_SymbolDict();
20 21
21 nonstd::unique_ptr<CJBig2_SymbolDict> DeepCopy() const; 22 nonstd::unique_ptr<CJBig2_SymbolDict> DeepCopy() const;
22 23
24 // Takes ownership of |image|.
25 void AddImage(CJBig2_Image* image) { m_SDEXSYMS.push_back(image); }
26
27 size_t NumImages() const { return m_SDEXSYMS.size(); }
28 CJBig2_Image* GetImage(size_t index) const { return m_SDEXSYMS.get(index); }
29
23 public: 30 public:
24 FX_DWORD SDNUMEXSYMS;
25 CJBig2_Image** SDEXSYMS;
26 FX_BOOL m_bContextRetained; 31 FX_BOOL m_bContextRetained;
27 JBig2ArithCtx* m_gbContext; 32 JBig2ArithCtx* m_gbContext;
28 JBig2ArithCtx* m_grContext; 33 JBig2ArithCtx* m_grContext;
34
35 private:
36 CJBig2_List<CJBig2_Image> m_SDEXSYMS;
29 }; 37 };
30 38
31 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_ 39 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_SYMBOLDICT_H_
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_SddProc.cpp ('k') | core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698