[gs-cvs] gs/src

Igor Melichev igor at ghostscript.com
Wed Jul 20 00:22:03 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv13147/gs/src

Modified Files:
	gdevpdf.c gdevpdfb.h 
Log Message:
Fix (ps2write) : The default value for MaxInlineImageSize was incorrect.

DETAILS :

It was too small for real images.
May improve the printer prerformance.

EXPECTED DIFFERENCES :

None.


Index: gdevpdf.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdf.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- gdevpdf.c	13 Jul 2005 10:37:10 -0000	1.114
+++ gdevpdf.c	20 Jul 2005 07:22:01 -0000	1.115
@@ -121,22 +121,26 @@
 
 #define PDF_DEVICE_NAME "pdfwrite"
 #define PDF_DEVICE_IDENT gs_pdfwrite_device
+#define PDF_DEVICE_MaxInlineImageSize 4000
 #define PDF_FOR_OPDFREAD 0
 
 #include "gdevpdfb.h"
 
 #undef PDF_DEVICE_NAME
 #undef PDF_DEVICE_IDENT
+#undef PDF_DEVICE_MaxInlineImageSize
 #undef PDF_FOR_OPDFREAD
 
 #define PDF_DEVICE_NAME "ps2write"
 #define PDF_DEVICE_IDENT gs_ps2write_device
+#define PDF_DEVICE_MaxInlineImageSize max_long
 #define PDF_FOR_OPDFREAD 1
 
 #include "gdevpdfb.h"
 
 #undef PDF_DEVICE_NAME
 #undef PDF_DEVICE_IDENT
+#undef PDF_DEVICE_MaxInlineImageSize
 #undef PDF_FOR_OPDFREAD
 /* ---------------- Device open/close ---------------- */
 

Index: gdevpdfb.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfb.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- gdevpdfb.h	7 Jun 2005 18:33:56 -0000	1.1
+++ gdevpdfb.h	20 Jul 2005 07:22:01 -0000	1.2
@@ -21,6 +21,7 @@
    The following macros to be defined in advance :
    PDF_DEVICE_NAME - a string like "pdfwrite".
    PDF_DEVICE_IDENT - an identifier like gs_pdfwrite_device.
+   PDF_DEVICE_MaxInlineImageSize - a value of PDF_DEVICE_MaxInlineImageSize.
    PDF_FOR_OPDFREAD - an integer 0 (false) or 1 (true).
  */
 
@@ -117,7 +118,7 @@
  12000,				/* MaxClipPathSize */ /* HP LaserJet 1320 hangs with 14000. */
  max_long,                      /* MaxViewerMemorySize */
  256000,			/* MaxShadingBitmapSize */
- 4000,				/* MaxInlineImageSize */
+ PDF_DEVICE_MaxInlineImageSize,	/* MaxInlineImageSize */
  {0, 0},			/* OwnerPassword */
  {0, 0},			/* UserPassword */
  0,				/* KeyLength */



More information about the gs-cvs mailing list