diff options
author | Martin Schröder <martin@oneiros.de> | 2008-05-08 14:25:16 +0000 |
---|---|---|
committer | Martin Schröder <martin@oneiros.de> | 2008-05-08 14:25:16 +0000 |
commit | 827cf5621c44c3d315ac95c52c15a23f88d5d44d (patch) | |
tree | 9ec064331f207aa7e08b5057bdae34843df381ef /Build/source/texk/web2c/pdftexdir/writejpg.c | |
parent | ccae75643e0bad3a0450768463491b7760e8ad7c (diff) |
Import pdftex 1.40.8-beta-20080506
git-svn-id: svn://tug.org/texlive/trunk@7945 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/writejpg.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writejpg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writejpg.c b/Build/source/texk/web2c/pdftexdir/writejpg.c index 3f5534d6c4e..5080dfd4ae5 100644 --- a/Build/source/texk/web2c/pdftexdir/writejpg.c +++ b/Build/source/texk/web2c/pdftexdir/writejpg.c @@ -1,5 +1,5 @@ /* -Copyright (c) 1996-2007 Han The Thanh, <thanh@pdftex.org> +Copyright (c) 1996-2008 Han The Thanh, <thanh@pdftex.org> This file is part of pdfTeX. @@ -16,13 +16,14 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with pdfTeX; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -$Id$ */ #include "ptexlib.h" #include "image.h" +static const char _svn_version[] = + "$Id$ $URL: http://scm.foundry.supelec.fr/svn/pdftex/branches/stable/source/src/texk/web2c/pdftexdir/writejpg.c $"; + #define JPG_GRAY 1 /* Gray color space, use /DeviceGray */ #define JPG_RGB 3 /* RGB color space, use /DeviceRGB */ #define JPG_CMYK 4 /* CMYK color space, use /DeviceCMYK */ @@ -106,6 +107,7 @@ void read_jpg_info(integer img) unsigned char jpg_id[] = "JFIF"; img_xres(img) = img_yres(img) = 0; jpg_ptr(img)->file = xfopen(img_name(img), FOPEN_RBIN_MODE); + /* no LFS needed, as JPEG is limited to <4GiB */ xfseek(jpg_ptr(img)->file, 0, SEEK_END, cur_file_name); jpg_ptr(img)->length = xftell(jpg_ptr(img)->file, cur_file_name); xfseek(jpg_ptr(img)->file, 0, SEEK_SET, cur_file_name); |