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

Unified Diff: core/src/fxcodec/jbig2/JBig2_ArithDecoder.h

Issue 1332153002: Merge to XFA: Make a bunch of JBig2 classes independent of CJBig2_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcodec/jbig2/JBig2_ArithDecoder.h
diff --git a/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h b/core/src/fxcodec/jbig2/JBig2_ArithDecoder.h
index 02580149278dddc2e705db700c81676007f04b27..7acfe9cd3681af3824fc7112b6058d03c5325b62 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();
« no previous file with comments | « no previous file | core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698