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

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_Define.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_Context.cpp ('k') | core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_memset8 10 #define JBIG2_memset FXSYS_memset8
11 #define JBIG2_memcmp FXSYS_memcmp32 11 #define JBIG2_memcmp FXSYS_memcmp32
12 #define JBIG2_memcpy FXSYS_memcpy32 12 #define JBIG2_memcpy FXSYS_memcpy32
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 FX_INT32 width, 16 int32_t width,
17 height; 17 height;
18 FX_INT32 x, 18 int32_t x,
19 y; 19 y;
20 FX_BYTE flags; 20 uint8_t flags;
21 } JBig2RegionInfo; 21 } JBig2RegionInfo;
22 typedef struct { 22 typedef struct {
23 FX_INT32 codelen; 23 int32_t codelen;
24 FX_INT32 code; 24 int32_t code;
25 } JBig2HuffmanCode; 25 } JBig2HuffmanCode;
26 extern "C" { 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); 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 }; 28 };
29 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64 29 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64
30 #define JBIG2_MAX_EXPORT_SYSMBOLS 65535 30 #define JBIG2_MAX_EXPORT_SYSMBOLS 65535
31 #define JBIG2_MAX_NEW_SYSMBOLS 65535 31 #define JBIG2_MAX_NEW_SYSMBOLS 65535
32 #define JBIG2_MAX_PATTERN_INDEX 65535 32 #define JBIG2_MAX_PATTERN_INDEX 65535
33 #define JBIG2_MAX_IMAGE_SIZE 65535 33 #define JBIG2_MAX_IMAGE_SIZE 65535
34 #endif 34 #endif
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_Context.cpp ('k') | core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698