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

« back to all changes in this revision

Viewing changes to src/gxhtbit.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: gxhtbit.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: gxhtbit.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Halftone bit updating for imaging library */
16
16
#include "memory_.h"
17
17
#include "gx.h"
29
29
/*
30
30
 * Construct a standard-representation order from a threshold array.
31
31
 */
32
 
private int
 
32
static int
33
33
construct_ht_order_default(gx_ht_order *porder, const byte *thresholds)
34
34
{
35
35
    gx_ht_bit *bits = (gx_ht_bit *)porder->bit_data;
46
46
 * Uses porder->width, num_levels, num_bits, levels, bit_data;
47
47
 * sets porder->levels[], bit_data[].
48
48
 */
49
 
private int
 
49
static int
50
50
construct_ht_order_short(gx_ht_order *porder, const byte *thresholds)
51
51
{
52
52
    uint size = porder->num_bits;
117
117
}
118
118
 
119
119
/* Return the bit coordinate using the standard representation. */
120
 
private int
 
120
static int
121
121
ht_bit_index_default(const gx_ht_order *porder, uint index, gs_int_point *ppt)
122
122
{
123
123
    const gx_ht_bit *phtb = &((const gx_ht_bit *)porder->bit_data)[index];
132
132
}
133
133
 
134
134
/* Return the bit coordinate using the short representation. */
135
 
private int
 
135
static int
136
136
ht_bit_index_short(const gx_ht_order *porder, uint index, gs_int_point *ppt)
137
137
{
138
138
    uint bit_index = ((const ushort *)porder->bit_data)[index];
144
144
}
145
145
 
146
146
/* Update a halftone tile using the default order representation. */
147
 
private int
 
147
static int
148
148
render_ht_default(gx_ht_tile *pbt, int level, const gx_ht_order *porder)
149
149
{
150
150
    int old_level = pbt->level;
206
206
}
207
207
 
208
208
/* Update a halftone tile using the short representation. */
209
 
private int
 
209
static int
210
210
render_ht_short(gx_ht_tile *pbt, int level, const gx_ht_order *porder)
211
211
{
212
212
    int old_level = pbt->level;