~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/gscicach.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gscicach.c 8066 2007-06-19 07:16:20Z leonardo $ */
 
14
/* $Id: gscicach.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* A color index cache. */
16
16
#include "gx.h"
17
17
#include "gserrors.h"
107
107
    gs_free_object(pcic->memory, pcic, "gs_color_index_cache_create");
108
108
}
109
109
 
110
 
private inline int 
 
110
static inline int 
111
111
hash_paint_values(const gs_color_index_cache_t *this, const float *paint_values)
112
112
{
113
113
    int i;
123
123
    return k % COLOR_INDEX_CACHE_CHAINS;
124
124
}
125
125
 
126
 
private inline void
 
126
static inline void
127
127
exclude_from_chain(gs_color_index_cache_t *this, uint i)
128
128
{
129
129
    uint co = this->buf[i].chain;
135
135
        this->chains[co] = in;
136
136
}
137
137
 
138
 
private inline void
 
138
static inline void
139
139
include_into_chain(gs_color_index_cache_t *this, uint i, uint c)
140
140
{
141
141
    if (this->chains[c] != MYNULL) {
151
151
    this->buf[i].chain = c;
152
152
}
153
153
 
154
 
private inline void
 
154
static inline void
155
155
exclude_from_touch_list(gs_color_index_cache_t *this, uint i)
156
156
{
157
157
    uint ip = this->buf[i].touch_prev, in = this->buf[i].touch_next;
166
166
    }
167
167
}
168
168
 
169
 
private inline void
 
169
static inline void
170
170
include_into_touch_list(gs_color_index_cache_t *this, uint i)
171
171
{
172
172
    if (this->recent_touch != MYNULL) {
181
181
    this->recent_touch = i;
182
182
}
183
183
 
184
 
private int 
 
184
static int 
185
185
get_color_index_cache_elem(gs_color_index_cache_t *this, const float *paint_values, uint *pi)
186
186
{
187
187
    int client_num_components = this->client_num_components;
228
228
    return 0;
229
229
}
230
230
 
231
 
private inline void
 
231
static inline void
232
232
compute_frac_values(gs_color_index_cache_t *this, uint i)
233
233
{
234
234
    gx_color_index c = this->buf[i].cindex;