• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef _JBIG2_DEFINE_H_
8 #define _JBIG2_DEFINE_H_
9 #include "../../../include/fxcrt/fx_system.h"
10 #define JBIG2_memset	FXSYS_memset8
11 #define JBIG2_memcmp	FXSYS_memcmp32
12 #define JBIG2_memcpy	FXSYS_memcpy32
13 #include "JBig2_Object.h"
14 #define JBIG2_OOB			1
15 typedef struct {
16     FX_INT32 width,
17              height;
18     FX_INT32 x,
19              y;
20     FX_BYTE flags;
21 } JBig2RegionInfo;
22 typedef struct {
23     FX_INT32 codelen;
24     FX_INT32 code;
25 } JBig2HuffmanCode;
26 extern "C" {
27     void _FaxG4Decode(void *pModule, FX_LPCBYTE src_buf, FX_DWORD src_size, int* pbitpos, FX_LPBYTE dest_buf, int width, int height, int pitch = 0);
28 };
29 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT		64
30 #define JBIG2_MAX_EXPORT_SYSMBOLS				65535
31 #define JBIG2_MAX_NEW_SYSMBOLS					65535
32 #define JBIG2_MAX_PATTERN_INDEX					65535
33 #define JBIG2_MAX_IMAGE_SIZE					65535
34 #endif
35