| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _JBIG2_DEFINE_H_ | 7 #ifndef _JBIG2_DEFINE_H_ |
| 8 #define _JBIG2_DEFINE_H_ | 8 #define _JBIG2_DEFINE_H_ |
| 9 #include "../../../include/fxcrt/fx_system.h" | 9 #include "../../../include/fxcrt/fx_system.h" |
| 10 #define JBIG2_memset» FXSYS_memset | 10 #define JBIG2_memset FXSYS_memset |
| 11 #define JBIG2_memcmp» FXSYS_memcmp | 11 #define JBIG2_memcmp FXSYS_memcmp |
| 12 #define JBIG2_memcpy» FXSYS_memcpy | 12 #define JBIG2_memcpy FXSYS_memcpy |
| 13 #include "JBig2_Object.h" | 13 #include "JBig2_Object.h" |
| 14 #define JBIG2_OOB» » » 1 | 14 #define JBIG2_OOB 1 |
| 15 typedef struct { | 15 typedef struct { |
| 16 int32_t width, | 16 int32_t width, height; |
| 17 height; | 17 int32_t x, y; |
| 18 int32_t x, | 18 uint8_t flags; |
| 19 y; | |
| 20 uint8_t flags; | |
| 21 } JBig2RegionInfo; | 19 } JBig2RegionInfo; |
| 22 typedef struct { | 20 typedef struct { |
| 23 int32_t codelen; | 21 int32_t codelen; |
| 24 int32_t code; | 22 int32_t code; |
| 25 } JBig2HuffmanCode; | 23 } JBig2HuffmanCode; |
| 26 extern "C" { | 24 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); | 25 void _FaxG4Decode(void* pModule, |
| 26 const uint8_t* src_buf, |
| 27 FX_DWORD src_size, |
| 28 int* pbitpos, |
| 29 uint8_t* dest_buf, |
| 30 int width, |
| 31 int height, |
| 32 int pitch = 0); |
| 28 }; | 33 }; |
| 29 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT» » 64 | 34 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64 |
| 30 #define JBIG2_MAX_EXPORT_SYSMBOLS» » » » 65535 | 35 #define JBIG2_MAX_EXPORT_SYSMBOLS 65535 |
| 31 #define JBIG2_MAX_NEW_SYSMBOLS» » » » » 65535 | 36 #define JBIG2_MAX_NEW_SYSMBOLS 65535 |
| 32 #define JBIG2_MAX_PATTERN_INDEX»» » » » 65535 | 37 #define JBIG2_MAX_PATTERN_INDEX 65535 |
| 33 #define JBIG2_MAX_IMAGE_SIZE» » » » » 65535 | 38 #define JBIG2_MAX_IMAGE_SIZE 65535 |
| 34 #endif | 39 #endif |
| OLD | NEW |