summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <ralph.giles@artifex.com>2008-02-09 00:55:38 +0000
committerRalph Giles <ralph.giles@artifex.com>2008-02-09 00:55:38 +0000
commit139f8401120ddc1f3ce9e0a1d8b16df7ba186ebc (patch)
tree2554532ce3ed22ac11b8b511422bd08bbd42a8ad
parent1c86b1ac73717e214885a8e9ee169015d0d4c55c (diff)
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. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8519 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/src/int.mak6
-rw-r--r--gs/src/lib.mak58
2 files changed, 22 insertions, 42 deletions
diff --git a/gs/src/int.mak b/gs/src/int.mak
index 07ee7a431..740612a89 100644
--- a/gs/src/int.mak
+++ b/gs/src/int.mak
@@ -1875,11 +1875,9 @@ $(PSD)pdf.dev : $(INT_MAK) $(ECHOGS_XE)\
$(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
diff --git a/gs/src/lib.mak b/gs/src/lib.mak
index 26f1dd581..e61289d03 100644
--- a/gs/src/lib.mak
+++ b/gs/src/lib.mak
@@ -675,6 +675,22 @@ $(GLOBJ)gxipixel.$(OBJ) : $(GLSRC)gxipixel.c $(GXERR) $(math__h) $(memory__h)\
$(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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(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,15 +2266,6 @@ $(GLOBJ)gspath1.$(OBJ) : $(GLSRC)gspath1.c $(GXERR) $(math__h)\
$(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_)
@@ -2269,37 +2276,12 @@ $(GLOBJ)gscolor2.$(OBJ) : $(GLSRC)gscolor2.c $(GXERR) $(memory__h)\
$(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)\