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

« back to all changes in this revision

Viewing changes to src/gsht1.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: gsht1.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/*$Id: gsht1.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Extended halftone operators for Ghostscript library */
16
16
#include "memory_.h"
17
17
#include "string_.h"
30
30
void load_transfer_map(gs_state *, gx_transfer_map *, floatp);
31
31
 
32
32
/* Forward declarations */
33
 
private int process_spot(gx_ht_order *, gs_state *,
 
33
static int process_spot(gx_ht_order *, gs_state *,
34
34
                         gs_spot_halftone *, gs_memory_t *);
35
 
private int process_threshold(gx_ht_order *, gs_state *,
 
35
static int process_threshold(gx_ht_order *, gs_state *,
36
36
                              gs_threshold_halftone *, gs_memory_t *);
37
 
private int process_threshold2(gx_ht_order *, gs_state *,
 
37
static int process_threshold2(gx_ht_order *, gs_state *,
38
38
                               gs_threshold2_halftone *, gs_memory_t *);
39
 
private int process_client_order(gx_ht_order *, gs_state *,
 
39
static int process_client_order(gx_ht_order *, gs_state *,
40
40
                                 gs_client_order_halftone *, gs_memory_t *);
41
 
private int
 
41
static int
42
42
gs_sethalftone_try_wts(gs_halftone *pht, gs_state *pgs,
43
43
                       gx_device_halftone *pdht);
44
44
 
48
48
 
49
49
/* GC procedures */
50
50
 
51
 
private 
 
51
static 
52
52
ENUM_PTRS_WITH(halftone_component_enum_ptrs, gs_halftone_component *hptr) return 0;
53
53
case 0:
54
54
switch (hptr->type)
81
81
        return 0;
82
82
}
83
83
ENUM_PTRS_END
84
 
private RELOC_PTRS_WITH(halftone_component_reloc_ptrs, gs_halftone_component *hptr)
 
84
static RELOC_PTRS_WITH(halftone_component_reloc_ptrs, gs_halftone_component *hptr)
85
85
{
86
86
    switch (hptr->type) {
87
87
        case ht_type_spot:
325
325
/* ------ Internal routines ------ */
326
326
 
327
327
/* Process a transfer function override, if any. */
328
 
private int
 
328
static int
329
329
process_transfer(gx_ht_order * porder, gs_state * pgs,
330
330
                 gs_mapping_proc proc, gs_mapping_closure_t * pmc,
331
331
                 gs_memory_t * mem)
350
350
}
351
351
 
352
352
/* Process a spot plane. */
353
 
private int
 
353
static int
354
354
process_spot(gx_ht_order * porder, gs_state * pgs,
355
355
             gs_spot_halftone * phsp, gs_memory_t * mem)
356
356
{
399
399
}
400
400
 
401
401
/* Process a threshold plane. */
402
 
private int
 
402
static int
403
403
process_threshold(gx_ht_order * porder, gs_state * pgs,
404
404
                  gs_threshold_halftone * phtp, gs_memory_t * mem)
405
405
{
419
419
}
420
420
 
421
421
/* Process an extended threshold plane. */
422
 
private int
 
422
static int
423
423
process_threshold2(gx_ht_order * porder, gs_state * pgs,
424
424
                   gs_threshold2_halftone * phtp, gs_memory_t * mem)
425
425
{
535
535
}
536
536
 
537
537
/* Process a client-order plane. */
538
 
private int
 
538
static int
539
539
process_client_order(gx_ht_order * porder, gs_state * pgs,
540
540
                     gs_client_order_halftone * phcop, gs_memory_t * mem)
541
541
{
547
547
                            &phcop->transfer_closure, mem);
548
548
}
549
549
 
550
 
private const gx_ht_order_procs_t wts_order_procs = { 0
 
550
static const gx_ht_order_procs_t wts_order_procs = { 0
551
551
};
552
552
 
553
553
/**
561
561
 * was not done, and that the legacy initialization code path should
562
562
 * be used.
563
563
 **/
564
 
private int
 
564
static int
565
565
gs_sethalftone_try_wts(gs_halftone *pht, gs_state *pgs,
566
566
                       gx_device_halftone *pdht)
567
567
{