Merge to XFA: Kill FXSYS_mem{cpy,cmp,set.move}{32,8}.
[pdfium.git] / core / src / fxcodec / jbig2 / JBig2_Define.h
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_memset
11 #define JBIG2_memcmp    FXSYS_memcmp
12 #define JBIG2_memcpy    FXSYS_memcpy
13 #include "JBig2_Object.h"
14 #define JBIG2_OOB                       1
15 typedef struct {
16     int32_t width,
17              height;
18     int32_t x,
19              y;
20     uint8_t flags;
21 } JBig2RegionInfo;
22 typedef struct {
23     int32_t codelen;
24     int32_t code;
25 } JBig2HuffmanCode;
26 extern "C" {
27     void _FaxG4Decode(void *pModule, const uint8_t* src_buf, FX_DWORD src_size, int* pbitpos, uint8_t* 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