blob: 9e5d3b3d3bfa087c4a86939f4f34d0e251448381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
#define CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
#include <list>
#include <memory>
#include <utility>
class CJBig2_SymbolDict;
using CJBig2_CacheKey = std::pair<uint32_t, uint32_t>;
using CJBig2_CachePair =
std::pair<CJBig2_CacheKey, std::unique_ptr<CJBig2_SymbolDict>>;
// Holds per-document JBig2 related data.
class JBig2_DocumentContext {
public:
JBig2_DocumentContext();
~JBig2_DocumentContext();
std::list<CJBig2_CachePair>* GetSymbolDictCache() {
return &m_SymbolDictCache;
}
private:
std::list<CJBig2_CachePair> m_SymbolDictCache;
};
#endif // CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
|