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

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

Issue 1326953006: Remove CJBig2_Object, CJBig2_Module, and friends. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 3 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
9 #include "../../../include/fxcrt/fx_system.h" 10 #include "../../../include/fxcrt/fx_system.h"
10 #define JBIG2_memset FXSYS_memset 11 #define JBIG2_memset FXSYS_memset
11 #define JBIG2_memcmp FXSYS_memcmp 12 #define JBIG2_memcmp FXSYS_memcmp
12 #define JBIG2_memcpy FXSYS_memcpy 13 #define JBIG2_memcpy FXSYS_memcpy
13 #include "JBig2_Object.h"
14 #define JBIG2_OOB 1 14 #define JBIG2_OOB 1
15 typedef struct { 15
16 int32_t width, height; 16 struct JBig2RegionInfo {
17 int32_t x, y; 17 int32_t width;
18 int32_t height;
19 int32_t x;
20 int32_t y;
18 uint8_t flags; 21 uint8_t flags;
19 } JBig2RegionInfo; 22 };
20 typedef struct { 23
24 struct JBig2HuffmanCode {
21 int32_t codelen; 25 int32_t codelen;
22 int32_t code; 26 int32_t code;
23 } JBig2HuffmanCode; 27 };
28
24 extern "C" { 29 extern "C" {
25 void _FaxG4Decode(void* pModule, 30 void _FaxG4Decode(const uint8_t* src_buf,
26 const uint8_t* src_buf,
27 FX_DWORD src_size, 31 FX_DWORD src_size,
28 int* pbitpos, 32 int* pbitpos,
29 uint8_t* dest_buf, 33 uint8_t* dest_buf,
30 int width, 34 int width,
31 int height, 35 int height,
32 int pitch = 0); 36 int pitch = 0);
33 }; 37 };
38
34 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64 39 #define JBIG2_MAX_REFERRED_SEGMENT_COUNT 64
35 #define JBIG2_MAX_EXPORT_SYSMBOLS 65535 40 #define JBIG2_MAX_EXPORT_SYSMBOLS 65535
36 #define JBIG2_MAX_NEW_SYSMBOLS 65535 41 #define JBIG2_MAX_NEW_SYSMBOLS 65535
37 #define JBIG2_MAX_PATTERN_INDEX 65535 42 #define JBIG2_MAX_PATTERN_INDEX 65535
38 #define JBIG2_MAX_IMAGE_SIZE 65535 43 #define JBIG2_MAX_IMAGE_SIZE 65535
44
39 #endif 45 #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