diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-10 16:34:17 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-10 16:34:17 -0700 |
commit | a7f5386053136db6d41b1fc4943544ec623704c3 (patch) | |
tree | 3c8e8345078b166fcbd55bd2f258de98146e00b3 /core/src/fxcodec/jbig2/JBig2_ArithDecoder.h | |
parent | 808a99e8c6f72713ca9492508faa4b8445ae0d33 (diff) | |
download | pdfium-a7f5386053136db6d41b1fc4943544ec623704c3.tar.xz |
Merge to XFA: Make a bunch of JBig2 classes independent of CJBig2_Object.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1319713003 .
(cherry picked from commit 800bf5ac07305ccf9c9522c8c76f728a4fd99da5)
Review URL: https://codereview.chromium.org/1332153002 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_ArithDecoder.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h b/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h index 0258014927..7acfe9cd36 100644 --- a/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h +++ b/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h @@ -9,13 +9,15 @@ #include "JBig2_Define.h" #include "JBig2_BitStream.h" #include "JBig2_ArithQe.h" -typedef struct { + +struct JBig2ArithCtx { unsigned int MPS; unsigned int I; -} JBig2ArithCtx; -class CJBig2_ArithDecoder : public CJBig2_Object { +}; + +class CJBig2_ArithDecoder { public: - CJBig2_ArithDecoder(CJBig2_BitStream* pStream); + explicit CJBig2_ArithDecoder(CJBig2_BitStream* pStream); ~CJBig2_ArithDecoder(); @@ -23,14 +25,15 @@ class CJBig2_ArithDecoder : public CJBig2_Object { private: void INITDEC(); - void BYTEIN(); + unsigned char B; unsigned int C; unsigned int A; unsigned int CT; CJBig2_BitStream* m_pStream; }; + inline CJBig2_ArithDecoder::CJBig2_ArithDecoder(CJBig2_BitStream* pStream) { m_pStream = pStream; INITDEC(); |