diff options
author | Martin Schröder <martin@oneiros.de> | 2006-12-26 23:37:34 +0000 |
---|---|---|
committer | Martin Schröder <martin@oneiros.de> | 2006-12-26 23:37:34 +0000 |
commit | 812aa90acbef4930ae356ab194f3f2a8f573f6e4 (patch) | |
tree | a1b8b3d895238994c60580df9e6f0619b2034923 /Build/source/texk/web2c/pdftexdir/image.h | |
parent | e3bba99884ce591c9485122e96fff7071fc7c112 (diff) |
Import pdftex 1.40-rc4, which also changes the signature of
print_version_and_exit, and adds a new library (libs/obsdcompat).
git-svn-id: svn://tug.org/texlive/trunk@2959 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/image.h')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/image.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/image.h b/Build/source/texk/web2c/pdftexdir/image.h index 2f9dcc94171..8907e50f603 100644 --- a/Build/source/texk/web2c/pdftexdir/image.h +++ b/Build/source/texk/web2c/pdftexdir/image.h @@ -29,10 +29,10 @@ $Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/image.h#10 $ #define JPG_UINT8 unsigned char typedef struct { - int color_space; /* used color space. See JPG_ constants */ - JPG_UINT8 bits_per_component; /* bits per component */ - JPG_UINT32 length; /* length of file/data */ - FILE *file; /* jpg file */ + int color_space; /* used color space. See JPG_ constants */ + JPG_UINT8 bits_per_component; /* bits per component */ + JPG_UINT32 length; /* length of file/data */ + FILE *file; /* jpg file */ } JPG_IMAGE_INFO; typedef struct { @@ -45,11 +45,15 @@ typedef struct { integer orig_y; integer selected_page; integer page_box; - integer always_use_pdfpagebox; void *doc; } pdf_image_struct; typedef struct { + integer selected_page; + FILE *file; +} JBIG2_IMAGE_INFO; + +typedef struct { char *image_name; int image_type; int color_type; @@ -63,6 +67,7 @@ typedef struct { pdf_image_struct *pdf; png_image_struct png; JPG_IMAGE_INFO *jpg; + JBIG2_IMAGE_INFO *jbig2; } image_struct; } image_entry; @@ -74,6 +79,7 @@ extern integer image_max; #define IMAGE_TYPE_PNG 2 #define IMAGE_TYPE_JPG 3 #define IMAGE_TYPE_TIF 4 +#define IMAGE_TYPE_JBIG2 5 #define IMAGE_COLOR_B 1 #define IMAGE_COLOR_C 2 @@ -93,12 +99,16 @@ extern integer image_max; #define png_info(N) (img_ptr(N)->image_struct.png.info_ptr) #define pdf_ptr(N) (img_ptr(N)->image_struct.pdf) #define jpg_ptr(N) (img_ptr(N)->image_struct.jpg) +#define jbig2_ptr(N) (img_ptr(N)->image_struct.jbig2) #define tif_ptr(N) (img_ptr(N)->image_struct.tif) -extern integer read_pdf_info(char*, char*, integer, integer, integer, integer); +extern integer read_pdf_info(char *, char *, integer, integer, integer, + integer); extern void write_epdf(void); extern void epdf_delete(void); extern void read_png_info(integer); extern void write_png(integer); extern void read_jpg_info(integer); extern void write_jpg(integer); +extern void read_jbig2_info(integer); +extern void write_jbig2(integer); |