summaryrefslogtreecommitdiff
path: root/gs/src/gscolor1.c
AgeCommit message (Collapse)AuthorFilesLines
2008-08-29Split the source tree into two new directories.Ralph Giles1-202/+0
PSSRC files are now in 'gs/psi'. GLSRC files are now in 'gs/base'. This is to facilitate build modularization and merging in the ghostpdl tree. NOTE: msvc32.mak is now in psi, not src. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9048 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-06-05Update licence headers. Copyright has been transfered from artofcode LLCRalph Giles1-1/+1
to Artifex Software, Inc. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8022 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-03-05Non-backwards compatible change: use consistent reference count allocationRaph Levien1-3/+6
discipline for color spaces. Previously, color spaces were allocated on stack, on the heap, as sub-structures within other color space structures, and were very commonly copied. Reference counting was used for the "params" block of some, but not all, color spaces, but there were correctness problems with that logic. In addition, a number of "const" qualifiers have been removed, because the action of bumping the reference count on an object is not consistent with the C semantics of const. This change is required to resolve problems with enhancement 688924. It should also help with memory leaks. Other clients, such as the PCL interpreter, will require changes to be compatible. For simple device colorspaces, the change to gs_setcmykcolor() (gscolor1.c) is representative of the code change required. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7765 a1074d23-0009-0410-80fe-cf8c14f379e6
2006-03-13changed copyright headersStefan Kemper1-13/+10
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6651 a1074d23-0009-0410-80fe-cf8c14f379e6
2004-08-04Addition of a Library Context to start the process of removing globals.Stefan Kemper1-4/+4
DETAILS : The goals is to remove globals from the system, this includes static globals that would hinder multiple threads from running at once. gs_lib_ctx is intended to be used as the opaque "handle" object that a client would use to associate with a thread running through the library. Independent of a gs or a language switch build, this needs a new iapi2.h that allows the use of better job control from the client side. gs_lib_ctx is stashed under the gs_memory_t object and all memory objects used by a thread refer to the same gs_lib_ctx. This storage location was choosen as a convenence since a memory_t pointer is common throughout the system. Most of the turmoil is adding memory_t pointers to functions that used global variables but didn't have a memory pointer. FILE stdin, stdout, stderr are one per process by default. stdin and stdout may be changed but stderr may not. FILE stderr is one per process and shouldn't be changed. Note the stderr_fn is also one per process, changing this function pointer will not help as most users of stderr printing do not have a thread handle. Changing to a thread local storage mechanism can solve this. gs_id's are currently per thread with each thread starting over at 1. This can be moved to per process with mutexes if so desired. A library context has a pointer to the top_of_system the intent is that this a void handle avaliable to make top of the system calls without knowing the data type. In a postscript only build this would be gs_main_instance but in a language switched build this would be an object above that main_universe. Other members of gs_lib_ctx_t are nothing more than global objects relocated to this "bag". gs_name_table, dict_autoexpand are examples of this. There are a few more globals that will be moved. At the moment iapi is still constrained to one thread, since some of the globals haven't been removed yet. The display device's callback function setting is supported for now but this interface should be changed to a sDEVICE style call. gs_memory_t is the base type the abstract type gs_raw_memory_t is gone, this means that all memory types must derive from gs_memory_t. In addition to a pointer to the gs_lib_ctx there is a pointer to a non_gc_memory this will always point to a non garbage collected memory, it maybe the current object or an object below the current gargabe collected memory space. This can be used were the previous code used the global gs_malloc_memory. gs_malloc() now takes a memory pointer, it finds the non-gc memory from a valid memory pointer and allocates from it. The gdevbit device has an improved algorthym for converting from cmyk to rgb, this is never used by postscript but for pcl rops it puts the k plane into rgb. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5215 a1074d23-0009-0410-80fe-cf8c14f379e6
2003-11-07Restore the invariant: effective_transfer always points to the transferAlex Cherepanov1-1/+2
functions in the graphic state or halftone. Old code briefly left effective_transfer pointing to garbage, which caused relocation of garbage pointers and crash if GC happened at the right time. Fix bug 687101 git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4343 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-08-22DeviceN.Henry Stiles1-91/+31
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2925 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-06-16Removes all uses of the now-deprecated Pn macros from all remaining .cL Peter Deutsch1-2/+2
files. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2745 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Reverts to marking files with the single Id cvs tag instead of theRalph Giles1-1/+1
RCSfile and Revision pair. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2241 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Update banner to the new format common to all releases (AFPL, GPL andRay Johnston1-13/+11
Artifex Software's commercial release). References file LICENSE. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2234 a1074d23-0009-0410-80fe-cf8c14f379e6
2001-03-17Integrates ICC profile input support from Jan Stoeckenius. Also includesRaph Levien1-1/+7
slightly modified version of icclib (icc.h, icc.c, icc9809.h) by Graeme Gill. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1267 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-09-19Updates the license notices to reflect the name change from AladdinL Peter Deutsch1-16/+16
Ghostscript to AFPL Ghostscript, as well as some internal references to the program name. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@729 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-07-03Fix: [gs_]currentgray didn't return the correct value if the current colorL Peter Deutsch1-2/+4
space was a DeviceN space using the alternate space. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@542 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-03-09Populate repository with gs 6.0 files.ghostscript-6.0L Peter Deutsch1-3/+15
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-02-15Update to Aladdin 6.0 - Only license block formatting changed.Ray Johnston1-2/+3
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1089 06663e23-700e-0410-b217-a244a6096597
1999-12-12Imports Aladdin's 596.Henry Stiles1-16/+4
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1040 06663e23-700e-0410-b217-a244a6096597
1999-05-24initial gs5.84 checkin with pcl and xl compiling.Henry Stiles1-19/+8
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@857 06663e23-700e-0410-b217-a244a6096597
1998-08-22filters out the id string.Henry Stiles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@321 06663e23-700e-0410-b217-a244a6096597
1998-08-19gs 5.34 checkin.Henry Stiles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@318 06663e23-700e-0410-b217-a244a6096597
1998-08-08This commit was generated by cvs2svn to compensate for changes in r279,Henry Stiles1-38/+67
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@280 06663e23-700e-0410-b217-a244a6096597
1998-07-28This commit was generated by cvs2svn to compensate for changes in r257,Henry Stiles1-153/+160
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@258 06663e23-700e-0410-b217-a244a6096597
1998-07-26Initial revisionHenry Stiles1-0/+229
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@246 06663e23-700e-0410-b217-a244a6096597