[gs-cvs] rev 8519 - trunk/gs/src
giles at ghostscript.com
giles at ghostscript.com
Fri Feb 8 16:55:39 PST 2008
Author: giles
Date: 2008-02-08 16:55:38 -0800 (Fri, 08 Feb 2008)
New Revision: 8519
Modified:
trunk/gs/src/int.mak
trunk/gs/src/lib.mak
Log:
Include 12 and 16 bit image support as part of the core graphics
library. Bug 689688.
Details:
Previously, the core graphics library defaulted to including the
'no12bit' and 'no16bit' modules, which contained stubs. These modules
were replaced by full implementations when the psl2lib (12 bit) and
pdfread (16 bit) modules were included.
We now consider this build-time flexibility redundant. The extra code is
not large and the default build generally includes it as these images
are part of all the newer page description languages. We therefore
include the unpack routines directly in libcore and remove the
noi1xbit modules entirely.
Modified: trunk/gs/src/int.mak
===================================================================
--- trunk/gs/src/int.mak 2008-02-07 09:33:22 UTC (rev 8518)
+++ trunk/gs/src/int.mak 2008-02-09 00:55:38 UTC (rev 8519)
@@ -1875,11 +1875,9 @@
$(PSD)pdffonts.dev : $(INT_MAK) $(ECHOGS_XE)
$(SETMOD) $(PSD)pdffonts -ps gs_mex_e gs_mro_e gs_pdf_e gs_wan_e
-$(PSD)pdfread.dev : $(INT_MAK) $(ECHOGS_XE) $(GLOBJ)gxi16bit.$(OBJ)\
+$(PSD)pdfread.dev : $(INT_MAK) $(ECHOGS_XE) \
$(PSD)frsd.dev $(PSD)func4.dev $(PSD)fzlib.dev $(PSD)transpar.dev
- $(SETMOD) $(GLD)pdfread $(GLOBJ)gxi16bit.$(OBJ)
- $(ADDMOD) $(GLD)pdfread -replace $(GLD)no16bit
- $(ADDMOD) $(PSD)pdfread -include $(PSD)frsd $(PSD)func4 $(PSD)fzlib
+ $(SETMOD) $(PSD)pdfread -include $(PSD)frsd $(PSD)func4 $(PSD)fzlib
$(ADDMOD) $(PSD)pdfread -include $(PSD)transpar
$(ADDMOD) $(PSD)pdfread -ps pdf_ops gs_l2img
$(ADDMOD) $(PSD)pdfread -ps pdf_rbld
Modified: trunk/gs/src/lib.mak
===================================================================
--- trunk/gs/src/lib.mak 2008-02-07 09:33:22 UTC (rev 8518)
+++ trunk/gs/src/lib.mak 2008-02-09 00:55:38 UTC (rev 8519)
@@ -675,6 +675,22 @@
$(gzcpath_h) $(gxdevmem_h) $(gximage_h) $(gdevmrop_h)
$(GLCC) $(GLO_)gxipixel.$(OBJ) $(C_) $(GLSRC)gxipixel.c
+$(GLOBJ)gxi12bit.$(OBJ) : $(GLSRC)gxi12bit.c $(GXERR)\
+ $(memory__h) $(gpcheck_h)\
+ $(gsccolor_h) $(gspaint_h)\
+ $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
+ $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
+ $(gxmatrix_h) $(vdtrace_h)
+ $(GLCC) $(GLO_)gxi12bit.$(OBJ) $(C_) $(GLSRC)gxi12bit.c
+
+$(GLOBJ)gxi16bit.$(OBJ) : $(GLSRC)gxi16bit.c $(GXERR)\
+ $(memory__h) $(gpcheck_h)\
+ $(gsccolor_h) $(gspaint_h)\
+ $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
+ $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
+ $(gxmatrix_h)
+ $(GLCC) $(GLO_)gxi16bit.$(OBJ) $(C_) $(GLSRC)gxi16bit.c
+
# gxmclip is used for Patterns and ImageType 3 images:
# it isn't included in the base library.
$(GLOBJ)gxmclip.$(OBJ) : $(GLSRC)gxmclip.c $(GX)\
@@ -1088,7 +1104,7 @@
LIB5x=$(GLOBJ)gxfill.$(OBJ) $(GLOBJ)gxfdrop.$(OBJ) $(GLOBJ)gxht.$(OBJ) $(GLOBJ)gxhtbit.$(OBJ)
LIB6x=$(GLOBJ)gxwts.$(OBJ) $(GLOBJ)gxidata.$(OBJ) $(GLOBJ)gxifast.$(OBJ) $(GLOBJ)gximage.$(OBJ)
LIB7x=$(GLOBJ)gximage1.$(OBJ) $(GLOBJ)gximono.$(OBJ) $(GLOBJ)gxipixel.$(OBJ) $(GLOBJ)gximask.$(OBJ)
-LIB8x=$(GLOBJ)gxpaint.$(OBJ) $(GLOBJ)gxpath.$(OBJ) $(GLOBJ)gxpath2.$(OBJ)
+LIB8x=$(GLOBJ)gxi12bit.$(OBJ) $(GLOBJ)gxi16bit.$(OBJ) $(GLOBJ)gxpaint.$(OBJ) $(GLOBJ)gxpath.$(OBJ) $(GLOBJ)gxpath2.$(OBJ)
LIB9x=$(GLOBJ)gxpcopy.$(OBJ) $(GLOBJ)gxpdash.$(OBJ) $(GLOBJ)gxpflat.$(OBJ)
LIB10x=$(GLOBJ)gxsample.$(OBJ) $(GLOBJ)gxstroke.$(OBJ) $(GLOBJ)gxsync.$(OBJ) $(GLOBJ)vdtrace.$(OBJ)
LIB1d=$(GLOBJ)gdevabuf.$(OBJ) $(GLOBJ)gdevdbit.$(OBJ) $(GLOBJ)gdevddrw.$(OBJ) $(GLOBJ)gdevdflt.$(OBJ)
@@ -1149,11 +1165,11 @@
$(GLD)libcore.dev : $(LIB_MAK) $(ECHOGS_XE)\
$(GLD)libs.dev $(GLD)libx.dev $(GLD)libd.dev\
- $(GLD)iscale.dev $(GLD)no16bit.dev $(GLD)no12bit.dev $(GLD)noroplib.dev $(GLD)strdline.dev
+ $(GLD)iscale.dev $(GLD)noroplib.dev $(GLD)strdline.dev
$(SETMOD) $(GLD)libcore
$(ADDMOD) $(GLD)libcore -dev2 nullpage
$(ADDMOD) $(GLD)libcore -include $(GLD)libs $(GLD)libx $(GLD)libd
- $(ADDMOD) $(GLD)libcore -include $(GLD)iscale $(GLD)no16bit $(GLD)no12bit $(GLD)noroplib
+ $(ADDMOD) $(GLD)libcore -include $(GLD)iscale $(GLD)noroplib
$(ADDMOD) $(GLD)libcore -include $(GLD)strdline
# ---------------- Stream support ---------------- #
@@ -2250,16 +2266,7 @@
$(GLCC) $(GLO_)gspath1.$(OBJ) $(C_) $(GLSRC)gspath1.c
# --------------- Level 2 color space and color image support --------------- #
-# no12bit and n16bit are the default, psl2lib replaces no12bit and pdfread replaces no16bit
-no12bit_=$(GLOBJ)gxino12b.$(OBJ)
-$(GLD)no12bit.dev : $(LIB_MAK) $(ECHOGS_XE) $(no12bit_)
- $(SETMOD) $(GLD)no12bit $(no12bit_)
-
-$(GLOBJ)gxino12b.$(OBJ) : $(GLSRC)gxino12b.c $(std_h)\
- $(gstypes_h) $(gxsample_h)
- $(GLCC) $(GLO_)gxino12b.$(OBJ) $(C_) $(GLSRC)gxino12b.c
-
psl2cs_=$(GLOBJ)gscolor2.$(OBJ)
$(GLD)psl2cs.dev : $(LIB_MAK) $(ECHOGS_XE) $(psl2cs_)
$(SETMOD) $(GLD)psl2cs $(psl2cs_)
@@ -2269,38 +2276,13 @@
$(gxcolor2_h) $(gzstate_h) $(gxpcolor_h) $(stream_h)
$(GLCC) $(GLO_)gscolor2.$(OBJ) $(C_) $(GLSRC)gscolor2.c
-psl2lib_=$(GLOBJ)gxi12bit.$(OBJ) $(GLOBJ)gxiscale.$(OBJ)
+psl2lib_=$(GLOBJ)gxiscale.$(OBJ)
$(GLD)psl2lib.dev : $(LIB_MAK) $(ECHOGS_XE) $(psl2lib_)\
$(GLD)colimlib.dev $(GLD)psl2cs.dev
$(SETMOD) $(GLD)psl2lib $(psl2lib_)
$(ADDMOD) $(GLD)psl2lib -imageclass 0_interpolate 2_fracs
$(ADDMOD) $(GLD)psl2lib -include $(GLD)colimlib $(GLD)psl2cs
- $(ADDMOD) $(GLD)psl2lib -replace $(GLD)no12bit
-$(GLOBJ)gxi12bit.$(OBJ) : $(GLSRC)gxi12bit.c $(GXERR)\
- $(memory__h) $(gpcheck_h)\
- $(gsccolor_h) $(gspaint_h)\
- $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
- $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
- $(gxmatrix_h) $(vdtrace_h)
- $(GLCC) $(GLO_)gxi12bit.$(OBJ) $(C_) $(GLSRC)gxi12bit.c
-
-no16bit_=$(GLOBJ)gxino16b.$(OBJ)
-$(GLD)no16bit.dev : $(LIB_MAK) $(ECHOGS_XE) $(no16bit_)
- $(SETMOD) $(GLD)no16bit $(no16bit_)
-
-$(GLOBJ)gxino16b.$(OBJ) : $(GLSRC)gxino16b.c $(std_h)\
- $(gstypes_h) $(gxsample_h)
- $(GLCC) $(GLO_)gxino16b.$(OBJ) $(C_) $(GLSRC)gxino16b.c
-
-$(GLOBJ)gxi16bit.$(OBJ) : $(GLSRC)gxi16bit.c $(GXERR)\
- $(memory__h) $(gpcheck_h)\
- $(gsccolor_h) $(gspaint_h)\
- $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
- $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
- $(gxmatrix_h)
- $(GLCC) $(GLO_)gxi16bit.$(OBJ) $(C_) $(GLSRC)gxi16bit.c
-
$(GLOBJ)gxiscale.$(OBJ) : $(GLSRC)gxiscale.c $(GXERR)\
$(math__h) $(memory__h) $(gpcheck_h)\
$(gsccolor_h) $(gspaint_h)\
More information about the gs-cvs
mailing list