summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_Define.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-10 16:12:44 -0700
committerLei Zhang <thestig@chromium.org>2015-09-10 16:12:44 -0700
commit70f4404e9a9e69afdfdd07715aa946f6561ce0cb (patch)
tree0c681df1e7bb78e9834555834ad464eb7bf2a929 /core/src/fxcodec/jbig2/JBig2_Define.h
parent6df59849472958e7de96da6d9fc7b223b7c1f1c3 (diff)
downloadpdfium-70f4404e9a9e69afdfdd07715aa946f6561ce0cb.tar.xz
Remove CJBig2_Object, CJBig2_Module, and friends.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1326953006 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_Define.h')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_Define.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Define.h b/core/src/fxcodec/jbig2/JBig2_Define.h
index 3cca6acfd9..50516f5798 100644
--- a/core/src/fxcodec/jbig2/JBig2_Define.h
+++ b/core/src/fxcodec/jbig2/JBig2_Define.h
@@ -6,24 +6,28 @@
#ifndef _JBIG2_DEFINE_H_
#define _JBIG2_DEFINE_H_
+
#include "../../../include/fxcrt/fx_system.h"
#define JBIG2_memset FXSYS_memset
#define JBIG2_memcmp FXSYS_memcmp
#define JBIG2_memcpy FXSYS_memcpy
-#include "JBig2_Object.h"
#define JBIG2_OOB 1
-typedef struct {
- int32_t width, height;
- int32_t x, y;
+
+struct JBig2RegionInfo {
+ int32_t width;
+ int32_t height;
+ int32_t x;
+ int32_t y;
uint8_t flags;
-} JBig2RegionInfo;
-typedef struct {
+};
+
+struct JBig2HuffmanCode {
int32_t codelen;
int32_t code;
-} JBig2HuffmanCode;
+};
+
extern "C" {
-void _FaxG4Decode(void* pModule,
- const uint8_t* src_buf,
+void _FaxG4Decode(const uint8_t* src_buf,
FX_DWORD src_size,
int* pbitpos,
uint8_t* dest_buf,
@@ -31,9 +35,11 @@ void _FaxG4Decode(void* pModule,
int height,
int pitch = 0);
};
+
#define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64
#define JBIG2_MAX_EXPORT_SYSMBOLS 65535
#define JBIG2_MAX_NEW_SYSMBOLS 65535
#define JBIG2_MAX_PATTERN_INDEX 65535
#define JBIG2_MAX_IMAGE_SIZE 65535
+
#endif