diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2009-04-22 15:09:21 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2009-04-22 15:09:21 +0000 |
commit | 27c36765240572fc41d9ca8c69b99e0a41493674 (patch) | |
tree | ad358e69f64f06096c79896dc3c88e80e658a913 /Build/source/texk/web2c/luatexdir/image/writeimg.c | |
parent | 6619094417b7606acce5c62de157d426351d5775 (diff) |
import luatex 0.40.0
git-svn-id: svn://tug.org/texlive/trunk@12791 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/image/writeimg.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/image/writeimg.c | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/Build/source/texk/web2c/luatexdir/image/writeimg.c b/Build/source/texk/web2c/luatexdir/image/writeimg.c index c824bdbe079..35820522bad 100644 --- a/Build/source/texk/web2c/luatexdir/image/writeimg.c +++ b/Build/source/texk/web2c/luatexdir/image/writeimg.c @@ -1,7 +1,7 @@ /* writeimg.c - + Copyright 1996-2006 Han The Thanh <thanh@pdftex.org> - Copyright 2006-2008 Taco Hoekwater <taco@luatex.org> + Copyright 2006-2009 Taco Hoekwater <taco@luatex.org> This file is part of LuaTeX. @@ -24,18 +24,17 @@ #include <kpathsea/c-memstr.h> #include "image.h" +#include "writejpg.h" +#include "writepng.h" +#include "writejbig2.h" +#include "pdftoepdf.h" #include <../lua51/lua.h> #include <../lua51/lauxlib.h> static const char _svn_version[] = - "$Id: writeimg.c 2019 2009-03-14 00:15:58Z hhenkel $ $URL: http://scm.foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/image/writeimg.c $"; - -extern void pdf_print_real(integer m, integer d); - -extern pdfstructure *pstruct; - -#define obj_aux(A) obj_tab[(A)].int4 + "$Id: writeimg.c 2336 2009-04-19 08:38:24Z hhenkel $ " + "$URL: http://scm.foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/image/writeimg.c $"; /**********************************************************************/ /* @@ -652,8 +651,7 @@ typedef image *img_entry; /* define img_ptr, img_array, & img_limit */ /* avoid use of size_t */ img_entry *img_ptr, *img_array = NULL; -integer img_limit; - +size_t img_limit; integer img_to_array(image * img) { @@ -663,8 +661,6 @@ integer img_to_array(image * img) return img_ptr++ - img_array; /* now img is read-only */ } - - /**********************************************************************/ /* To allow the use of \pdfrefximage inside saved boxes in -ini mode, @@ -683,14 +679,14 @@ integer img_to_array(image * img) /* some of the dumped values are really type int, not integer, * but since the macro falls back to generic_dump anyway, that - * does not matter. + * does not matter. */ #define dumpinteger generic_dump #define undumpinteger generic_undump /* (un)dumping a string means dumping the allocation size, followed - * by the bytes. The trailing \0 is dumped as well, because that + * by the bytes. The trailing \0 is dumped as well, because that * makes the code simpler. */ @@ -717,8 +713,6 @@ integer img_to_array(image * img) } else { s = NULL; } \ } while (0) - - void dumpimagemeta(void) { int cur_image, i; @@ -810,14 +804,11 @@ void undumpimagemeta(integer pdfversion, integer pdfinclusionerrorlevel) } } - - - /**********************************************************************/ /* stuff to be accessible from TeX */ -integer read_image(integer objnum, integer index, strnumber filename, - integer page_num, strnumber page_name, strnumber attr, +integer read_image(integer objnum, integer index, str_number filename, + integer page_num, str_number page_name, str_number attr, integer colorspace, integer page_box, integer pdf_minor_version, integer pdf_inclusion_errorlevel) { @@ -888,7 +879,6 @@ integer image_group_ref(integer ref) return img_group_ref(img_dict(img_array[ref])); } - /* The following five functions are for \pdfximagebbox */ integer epdf_xsize(integer ref) @@ -921,7 +911,6 @@ boolean is_png_image(integer ref) return img_type(img_dict(img_array[ref])) == IMG_TYPE_PNG; } - integer image_objnum(integer ref) { return img_objnum(img_dict(img_array[ref])); |