Lines Matching refs:pcis

54 ENUM_PTRS_WITH(gs_type1_state_enum_ptrs, gs_type1_state *pcis)  in ENUM_PTRS_WITH()  argument
57 if (index < pcis->ips_count * ST_GLYPH_DATA_NUM_PTRS) in ENUM_PTRS_WITH()
59 &pcis->ipstack[index / ST_GLYPH_DATA_NUM_PTRS].cs_data, in ENUM_PTRS_WITH()
60 sizeof(pcis->ipstack[0].cs_data), in ENUM_PTRS_WITH()
67 static RELOC_PTRS_WITH(gs_type1_state_reloc_ptrs, gs_type1_state *pcis) in RELOC_PTRS_WITH() argument
75 for (i = 0; i < pcis->ips_count; i++) { in RELOC_PTRS_WITH()
76 ip_state_t *ipsp = &pcis->ipstack[i]; in RELOC_PTRS_WITH()
98 gs_type1_interp_init(register gs_type1_state * pcis, gs_imager_state * pis, in gs_type1_interp_init() argument
110 pcis->pfont = pfont; in gs_type1_interp_init()
111 pcis->pis = pis; in gs_type1_interp_init()
112 pcis->path = ppath; in gs_type1_interp_init()
113 pcis->callback_data = pfont; /* default callback data */ in gs_type1_interp_init()
114 pcis->no_grid_fitting = no_grid_fitting; in gs_type1_interp_init()
115 pcis->paint_type = paint_type; in gs_type1_interp_init()
116 pcis->os_count = 0; in gs_type1_interp_init()
117 pcis->ips_count = 1; in gs_type1_interp_init()
118 pcis->ipstack[0].ip = 0; in gs_type1_interp_init()
119 gs_glyph_data_from_null(&pcis->ipstack[0].cs_data); in gs_type1_interp_init()
120 pcis->ignore_pops = 0; in gs_type1_interp_init()
121 pcis->init_done = -1; in gs_type1_interp_init()
122 pcis->sb_set = false; in gs_type1_interp_init()
123 pcis->width_set = false; in gs_type1_interp_init()
124 pcis->seac_flag = false; in gs_type1_interp_init()
125 pcis->num_hints = 0; in gs_type1_interp_init()
126 pcis->seac_accent = -1; in gs_type1_interp_init()
127 pcis->log2_subpixels = *plog2_subpixels; in gs_type1_interp_init()
128 pcis->origin_offset.x = pcis->origin_offset.y = 0; in gs_type1_interp_init()
131 set_pixel_scale(&pcis->scale.x, plog2_scale->x); in gs_type1_interp_init()
132 set_pixel_scale(&pcis->scale.y, plog2_scale->y); in gs_type1_interp_init()
139 gs_type1_set_callback_data(gs_type1_state *pcis, void *callback_data) in gs_type1_set_callback_data() argument
141 pcis->callback_data = callback_data; in gs_type1_set_callback_data()
147 gs_type1_set_lsb(gs_type1_state * pcis, const gs_point * psbpt) in gs_type1_set_lsb() argument
149 pcis->lsb.x = float2fixed(psbpt->x); in gs_type1_set_lsb()
150 pcis->lsb.y = float2fixed(psbpt->y); in gs_type1_set_lsb()
151 pcis->sb_set = true; in gs_type1_set_lsb()
154 gs_type1_set_width(gs_type1_state * pcis, const gs_point * pwpt) in gs_type1_set_width() argument
156 pcis->width.x = float2fixed(pwpt->x); in gs_type1_set_width()
157 pcis->width.y = float2fixed(pwpt->y); in gs_type1_set_width()
158 pcis->width_set = true; in gs_type1_set_width()
164 gs_type1_finish_init(gs_type1_state * pcis) in gs_type1_finish_init() argument
166 gs_imager_state *pis = pcis->pis; in gs_type1_finish_init()
170 gx_matrix_to_fixed_coeff(&ctm_only(pis), &pcis->fc, max_coeff_bits); in gs_type1_finish_init()
173 pcis->origin.x = pcis->path->position.x; in gs_type1_finish_init()
174 pcis->origin.y = pcis->path->position.y; in gs_type1_finish_init()
177 pcis->asb_diff = pcis->adxy.x = pcis->adxy.y = 0; in gs_type1_finish_init()
178 pcis->base_lsb = 0; in gs_type1_finish_init()
179 pcis->flex_count = flex_max; /* not in Flex */ in gs_type1_finish_init()
180 pcis->vs_offset.x = pcis->vs_offset.y = 0; in gs_type1_finish_init()
184 pcis->flatness = gs_char_flatness(pis, 0.001); in gs_type1_finish_init()
186 pcis->init_done = 1; in gs_type1_finish_init()
194 gs_type1_sbw(gs_type1_state * pcis, fixed lsbx, fixed lsby, fixed wx, fixed wy) in gs_type1_sbw() argument
196 if (!pcis->sb_set) in gs_type1_sbw()
197 pcis->lsb.x = lsbx, pcis->lsb.y = lsby, in gs_type1_sbw()
198 pcis->sb_set = true; /* needed for accented chars */ in gs_type1_sbw()
199 if (!pcis->width_set) in gs_type1_sbw()
200 pcis->width.x = wx, pcis->width.y = wy, in gs_type1_sbw()
201 pcis->width_set = true; in gs_type1_sbw()
203 fixed2float(pcis->lsb.x), fixed2float(pcis->lsb.y), in gs_type1_sbw()
204 fixed2float(pcis->width.x), fixed2float(pcis->width.y)); in gs_type1_sbw()
211 gs_type1_blend(gs_type1_state *pcis, fixed *csp, int num_results) in gs_type1_blend() argument
213 gs_type1_data *pdata = &pcis->pfont->data; in gs_type1_blend()
232 pcis->ignore_pops = num_results; in gs_type1_blend()
242 gs_type1_seac(gs_type1_state * pcis, const fixed * cstack, fixed asb, in gs_type1_seac() argument
245 gs_font_type1 *pfont = pcis->pfont; in gs_type1_seac()
251 pcis->seac_accent = fixed2int_var(cstack[3]); in gs_type1_seac()
252 pcis->asb = asb; in gs_type1_seac()
253 pcis->compound_lsb = pcis->lsb; in gs_type1_seac()
254 pcis->save_adxy.x = cstack[0]; in gs_type1_seac()
255 pcis->save_adxy.y = cstack[1]; in gs_type1_seac()
256 pcis->os_count = 0; /* clear */ in gs_type1_seac()
275 gs_type1_endchar(gs_type1_state * pcis) in gs_type1_endchar() argument
277 gs_imager_state *pis = pcis->pis; in gs_type1_endchar()
279 if (pcis->seac_accent >= 0) { /* We just finished the base character of a seac. */ in gs_type1_endchar()
281 gs_font_type1 *pfont = pcis->pfont; in gs_type1_endchar()
283 int achar = pcis->seac_accent; in gs_type1_endchar()
288 pcis->seac_accent = -1; in gs_type1_endchar()
290 pcis->asb_diff = pcis->asb - pcis->compound_lsb.x; in gs_type1_endchar()
291 pcis->adxy = pcis->save_adxy; in gs_type1_endchar()
292 pcis->os_count = 0; /* clear */ in gs_type1_endchar()
295 pcis->ips_count = 1; in gs_type1_endchar()
305 int l0 = min(pcis->pfont->font_name.size, sizeof(buf0) - 1); in gs_type1_endchar()
308 memcpy(buf0, pcis->pfont->font_name.chars, l0); in gs_type1_endchar()
318 pcis->ips_count = 1; in gs_type1_endchar()
319 pcis->ipstack[0].cs_data = agdata; in gs_type1_endchar()
322 if (pcis->pfont->PaintType == 0) in gs_type1_endchar()
325 if (!pcis->no_grid_fitting) in gs_type1_endchar()
326 gs_imager_setflat(pis, pcis->flatness); in gs_type1_endchar()
332 type1_cis_get_metrics(const gs_type1_state * pcis, double psbw[4]) in type1_cis_get_metrics() argument
334 psbw[0] = fixed2float(pcis->lsb.x); in type1_cis_get_metrics()
335 psbw[1] = fixed2float(pcis->lsb.y); in type1_cis_get_metrics()
336 psbw[2] = fixed2float(pcis->width.x); in type1_cis_get_metrics()
337 psbw[3] = fixed2float(pcis->width.y); in type1_cis_get_metrics()