summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_SddProc.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_SddProc.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_SddProc.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/core/fxcodec/jbig2/JBig2_SddProc.h b/core/fxcodec/jbig2/JBig2_SddProc.h
index a6fb039cac..abef010868 100644
--- a/core/fxcodec/jbig2/JBig2_SddProc.h
+++ b/core/fxcodec/jbig2/JBig2_SddProc.h
@@ -12,6 +12,7 @@
#include "core/fxcodec/jbig2/JBig2_ArithDecoder.h"
#include "core/fxcrt/fx_system.h"
+#include "core/fxcrt/unowned_ptr.h"
class CJBig2_BitStream;
class CJBig2_HuffmanTable;
@@ -20,6 +21,9 @@ class CJBig2_SymbolDict;
class CJBig2_SDDProc {
public:
+ CJBig2_SDDProc();
+ ~CJBig2_SDDProc();
+
std::unique_ptr<CJBig2_SymbolDict> DecodeArith(
CJBig2_ArithDecoder* pArithDecoder,
std::vector<JBig2ArithCtx>* gbContext,
@@ -32,17 +36,17 @@ class CJBig2_SDDProc {
bool SDHUFF;
bool SDREFAGG;
+ bool SDRTEMPLATE;
+ uint8_t SDTEMPLATE;
uint32_t SDNUMINSYMS;
- CJBig2_Image** SDINSYMS;
uint32_t SDNUMNEWSYMS;
uint32_t SDNUMEXSYMS;
- const CJBig2_HuffmanTable* SDHUFFDH;
- const CJBig2_HuffmanTable* SDHUFFDW;
- const CJBig2_HuffmanTable* SDHUFFBMSIZE;
- const CJBig2_HuffmanTable* SDHUFFAGGINST;
- uint8_t SDTEMPLATE;
+ CJBig2_Image** SDINSYMS;
+ UnownedPtr<const CJBig2_HuffmanTable> SDHUFFDH;
+ UnownedPtr<const CJBig2_HuffmanTable> SDHUFFDW;
+ UnownedPtr<const CJBig2_HuffmanTable> SDHUFFBMSIZE;
+ UnownedPtr<const CJBig2_HuffmanTable> SDHUFFAGGINST;
int8_t SDAT[8];
- bool SDRTEMPLATE;
int8_t SDRAT[4];
};