~ubuntu-branches/debian/squeeze/ghostscript/squeeze

« back to all changes in this revision

Viewing changes to src/gstparam.h

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2009-01-04 12:09:59 UTC
  • mfrom: (16.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090104120959-m9lbagj775ucg0h3
Tags: 8.63.dfsg.1-2
libgs-dev: put versioned dependency on libgs8 - closes: #510691

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: gstparam.h 8505 2008-01-26 13:21:27Z leonardo $ */
 
14
/* $Id: gstparam.h 8814 2008-07-01 10:22:25Z leonardo $ */
15
15
/* Transparency parameter definitions */
16
16
 
17
17
#ifndef gstparam_INCLUDED
84
84
    bool Knockout;
85
85
    bool image_with_SMask;
86
86
    bool idle;
 
87
    uint mask_id;
87
88
} gs_transparency_group_params_t;
88
89
 
89
90
/* Define the parameter structure for a transparency mask. */
118
119
    bool function_is_identity;
119
120
    bool idle;
120
121
    bool replacing;
 
122
    uint mask_id;
121
123
    byte transfer_fn[MASK_TRANSFER_FUNCTION_SIZE];
122
124
} gx_transparency_mask_params_t;
123
125
 
124
 
#define MAX_CLIST_COMPOSITOR_SIZE (sizeof( gx_transparency_mask_params_t ) + 1)
 
126
/*
 
127
   The longest compositor command includes transparency mask parameters
 
128
   (see gdevp14.c c_pdf14trans_write() the "case PDF14_BEGIN_TRANS_MASK").
 
129
   Note that 'idle' is not written because it is generated by the clist interpreter.
 
130
*/
 
131
#define MAX_CLIST_TRANSPARENCY_BUFFER_SIZE ( \
 
132
             4 /* the clist cmd prefix byte cmd_opv_extend + extended function + 2 bytes for band_id */ + \
 
133
             1 + sizeof(float) * 6 /* See sput_matrix. */ + \
 
134
             sizeof(((gs_pdf14trans_params_t *)0)->subtype) + \
 
135
             3 /* replacing, function_is_identity, Background_components */ + \
 
136
             sizeof(((gs_pdf14trans_params_t *)0)->bbox) + \
 
137
             sizeof(((gs_pdf14trans_params_t *)0)->mask_id) + \
 
138
             sizeof(((gs_pdf14trans_params_t *)0)->Background) + \
 
139
             sizeof(((gs_pdf14trans_params_t *)0)->GrayBackground))          
 
140
#define MAX_CLIST_TRANSPARENCY_COMPOSITOR_SIZE (MAX_CLIST_TRANSPARENCY_BUFFER_SIZE + \
 
141
             sizeof(((gs_pdf14trans_params_t *)0)->transfer_fn))
 
142
#define MAX_CLIST_COMPOSITOR_SIZE MAX_CLIST_TRANSPARENCY_COMPOSITOR_SIZE
125
143
 
126
144
/* Select the opacity or shape parameters. */
127
145
typedef enum {