From 6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Tue, 23 Jul 2013 16:24:19 +0100 Subject: Commit of build_consolidation branch Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript. --- Resource/ColorSpace/DefaultCMYK | 40 ++++++++++++++++++++++++++++++++++++++++ Resource/ColorSpace/DefaultGray | 30 ++++++++++++++++++++++++++++++ Resource/ColorSpace/DefaultRGB | 36 ++++++++++++++++++++++++++++++++++++ Resource/ColorSpace/TrivialCMYK | 38 ++++++++++++++++++++++++++++++++++++++ Resource/ColorSpace/sGray | 37 +++++++++++++++++++++++++++++++++++++ Resource/ColorSpace/sRGB | 37 +++++++++++++++++++++++++++++++++++++ 6 files changed, 218 insertions(+) create mode 100644 Resource/ColorSpace/DefaultCMYK create mode 100644 Resource/ColorSpace/DefaultGray create mode 100644 Resource/ColorSpace/DefaultRGB create mode 100644 Resource/ColorSpace/TrivialCMYK create mode 100644 Resource/ColorSpace/sGray create mode 100644 Resource/ColorSpace/sRGB (limited to 'Resource/ColorSpace') diff --git a/Resource/ColorSpace/DefaultCMYK b/Resource/ColorSpace/DefaultCMYK new file mode 100644 index 000000000..8ae0dec24 --- /dev/null +++ b/Resource/ColorSpace/DefaultCMYK @@ -0,0 +1,40 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% DefaultCMYK color space resource. + +currentglobal true setglobal + +/DefaultCMYK +[ /CIEBasedDEFG + 4 dict begin + /WhitePoint [ 0.9505 1.0 1.089 ] def + /Table [ 2 2 2 2 + % AcrobatReader-compatible table : + [ + [ < FFFFFF 000000 FFFF00 000000> + < EA007F 000000 FC000F 000000> ] + + [ < 00A0C8 000000 008436 000000> + < 00007C 000000 000000 000000> ] + ] + ] def + /DecodeLMN [ { 1.8 exp } bind dup dup ] def + /MatrixLMN [ 0.4439 0.2522 0.0436 0.3341 0.6371 0.1387 0.1725 0.1107 0.9067 ] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal diff --git a/Resource/ColorSpace/DefaultGray b/Resource/ColorSpace/DefaultGray new file mode 100644 index 000000000..c79d58ce0 --- /dev/null +++ b/Resource/ColorSpace/DefaultGray @@ -0,0 +1,30 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% DefaultGray color space resource. + +currentglobal true setglobal + +/DefaultGray +[ /CIEBasedA + 3 dict begin + /WhitePoint [ 0.9505 1.0 1.089 ] def + /DecodeLMN [ { 1.8 exp } bind dup dup ] bind def + /MatrixLMN [ 0.4439 0.2522 0.0436 0.3341 0.6371 0.1387 0.1725 0.1107 0.9067 ] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal diff --git a/Resource/ColorSpace/DefaultRGB b/Resource/ColorSpace/DefaultRGB new file mode 100644 index 000000000..f0f8a6a69 --- /dev/null +++ b/Resource/ColorSpace/DefaultRGB @@ -0,0 +1,36 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% DefaultRGB color space resource. + +currentglobal true setglobal + +/DefaultRGB +[ /CIEBasedABC + 3 dict begin + /DecodeLMN [ { + dup 0.03928 le { 12.92321 div } { 0.055 add 1.055 div 2.4 exp } ifelse + } bind dup dup ] def + /MatrixLMN [ + 0.4360 0.2225 0.0139 + 0.3851 0.7169 0.09710 + 0.1431 0.0606 0.7139 + ] def + /WhitePoint [0.9642 1.0 0.8249] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal diff --git a/Resource/ColorSpace/TrivialCMYK b/Resource/ColorSpace/TrivialCMYK new file mode 100644 index 000000000..6ad93211f --- /dev/null +++ b/Resource/ColorSpace/TrivialCMYK @@ -0,0 +1,38 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% Color space that simulates appearance of the standard CMYK to RGB conversion. + +currentglobal true setglobal + +/TrivialCMYK +[ /CIEBasedDEFG + 4 dict begin + /WhitePoint [ 0.9505 1.0 1.089 ] def + /Table [ 2 2 2 2 + [ + [ < FFFFFF 000000 FFFF00 000000> + < FF00FF 000000 FF0000 000000> ] + [ < 00FFFF 000000 00FF00 000000> + < 0000FF 000000 000000 000000> ] + ] + ] def + /DecodeLMN [ { 1.8 exp } bind dup dup ] def + /MatrixLMN [ 0.4439 0.2522 0.0436 0.3341 0.6371 0.1387 0.1725 0.1107 0.9067 ] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal diff --git a/Resource/ColorSpace/sGray b/Resource/ColorSpace/sGray new file mode 100644 index 000000000..eb404f250 --- /dev/null +++ b/Resource/ColorSpace/sGray @@ -0,0 +1,37 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% One-component color space similar to sRGB color space. + +currentglobal true setglobal + +/sGray +[ /CIEBasedA + 3 dict begin + /WhitePoint [ 0.9505 1 1.0890 ] def % D65 + + /DecodeLMN [ % sRGB gamma transform + { dup 0.03928 le { 12.92321 div } { 0.055 add 1.055 div 2.4 exp } ifelse } + bind dup dup ] def + + /MatrixLMN [ % sRGB to XYZ (D65) matrix (ITU-R BT.709-2 Primaries) + 0.412457 0.212673 0.019334 + 0.357576 0.715152 0.119192 + 0.180437 0.072175 0.950301 ] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal diff --git a/Resource/ColorSpace/sRGB b/Resource/ColorSpace/sRGB new file mode 100644 index 000000000..c7c54a050 --- /dev/null +++ b/Resource/ColorSpace/sRGB @@ -0,0 +1,37 @@ +% Copyright (C) 2001-2012 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, +% CA 94903, U.S.A., +1(415)492-9861, for further information. +% + +% sRGB color space derived from the public domain HP sample. + +currentglobal true setglobal + +/sRGB +[ /CIEBasedABC + 3 dict begin + /WhitePoint [ 0.9505 1 1.0890 ] def % D65 + + /DecodeLMN [ % sRGB gamma transform + { dup 0.03928 le { 12.92321 div } { 0.055 add 1.055 div 2.4 exp } ifelse } + bind dup dup ] def + + /MatrixLMN [ % sRGB to XYZ (D65) matrix (ITU-R BT.709-2 Primaries) + 0.412457 0.212673 0.019334 + 0.357576 0.715152 0.119192 + 0.180437 0.072175 0.950301 ] def + currentdict end +] +/ColorSpace defineresource pop + +setglobal -- cgit v1.2.1