Lines Matching refs:ptile

151               const gx_color_tile * ptile,  in tile_by_steps()  argument
166 step_matrix = ptile->step_matrix; in tile_by_steps()
172 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps()
173 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps()
192 u0 = ibbox.p.x - max(ptile->bbox.p.x, 0) - 0.000001; in tile_by_steps()
193 v0 = ibbox.p.y - max(ptile->bbox.p.y, 0) - 0.000001; in tile_by_steps()
194 u1 = ibbox.q.x - min(ptile->bbox.q.x, 0) + 0.000001; in tile_by_steps()
195 v1 = ibbox.q.y - min(ptile->bbox.q.y, 0) + 0.000001; in tile_by_steps()
196 if (!ptile->is_simple) in tile_by_steps()
251 gx_color_tile *ptile = ptfs->pdevc->colors.pattern.p_tile; in tile_colored_fill() local
256 gx_strip_bitmap *bits = &ptile->tbits; in tile_colored_fill()
267 x, y, w, h, ptile->tbits.rep_height); in tile_colored_fill()
284 data_tile.size.x = data_tile.rep_width = ptile->tbits.size.x; in tile_colored_fill()
285 data_tile.size.y = data_tile.rep_height = ptile->tbits.size.y; in tile_colored_fill()
325 gx_color_tile *ptile = ptfs->pdevc->colors.pattern.p_tile; in tile_pattern_clist() local
326 gx_device_clist *cdev = ptile->cdev; in tile_pattern_clist()
366 gx_color_tile *ptile = pdevc->colors.pattern.p_tile; in gx_dc_pattern_fill_rectangle() local
373 if (ptile == 0) /* null pattern */ in gx_dc_pattern_fill_rectangle()
377 bits = &ptile->tbits; in gx_dc_pattern_fill_rectangle()
382 if (ptile->is_simple && ptile->cdev == NULL) { in gx_dc_pattern_fill_rectangle()
384 imod(-(int)fastfloor(ptile->step_matrix.tx - state.phase.x + 0.5), in gx_dc_pattern_fill_rectangle()
387 imod(-(int)fastfloor(ptile->step_matrix.ty - state.phase.y + 0.5), in gx_dc_pattern_fill_rectangle()
415 if (ptile->cdev == NULL) { in gx_dc_pattern_fill_rectangle()
416 code = tile_by_steps(&state, x, y, w, h, ptile, in gx_dc_pattern_fill_rectangle()
417 &ptile->tbits, tile_colored_fill); in gx_dc_pattern_fill_rectangle()
419 gx_device_clist *cdev = ptile->cdev; in gx_dc_pattern_fill_rectangle()
429 tbits = ptile->tbits; in gx_dc_pattern_fill_rectangle()
432 code = tile_by_steps(&state, x, y, w, h, ptile, in gx_dc_pattern_fill_rectangle()
475 gx_color_tile *ptile = pdevc->mask.m_tile; in gx_dc_pure_masked_fill_rect() local
486 if (state.pcdev == dev || ptile->is_simple) in gx_dc_pure_masked_fill_rect()
493 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_pure_masked_fill_rect()
509 gx_color_tile *ptile = pdevc->mask.m_tile; in gx_dc_devn_masked_fill_rect() local
520 if (state.pcdev == dev || ptile->is_simple) { in gx_dc_devn_masked_fill_rect()
523 if (ptile == NULL) { in gx_dc_devn_masked_fill_rect()
538 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_devn_masked_fill_rect()
554 gx_color_tile *ptile = pdevc->mask.m_tile; in gx_dc_binary_masked_fill_rect() local
561 if (state.pcdev == dev || ptile->is_simple) in gx_dc_binary_masked_fill_rect()
568 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_binary_masked_fill_rect()
584 gx_color_tile *ptile = pdevc->mask.m_tile; in gx_dc_colored_masked_fill_rect() local
591 if (state.pcdev == dev || ptile->is_simple) in gx_dc_colored_masked_fill_rect()
598 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_colored_masked_fill_rect()
615 gx_pattern_trans_t *fill_trans_buffer, const gx_color_tile * ptile, in tile_by_steps_trans() argument
621 gx_pattern_trans_t *ptrans_pat = ptile->ttrans; in tile_by_steps_trans()
623 const gs_memory_t *mem = ptile->ttrans->mem; in tile_by_steps_trans()
629 step_matrix = ptile->step_matrix; in tile_by_steps_trans()
635 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps_trans()
636 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps_trans()
655 u0 = ibbox.p.x - max(ptile->bbox.p.x, 0) - 0.000001; in tile_by_steps_trans()
656 v0 = ibbox.p.y - max(ptile->bbox.p.y, 0) - 0.000001; in tile_by_steps_trans()
657 u1 = ibbox.q.x - min(ptile->bbox.q.x, 0) + 0.000001; in tile_by_steps_trans()
658 v1 = ibbox.q.y - min(ptile->bbox.q.y, 0) + 0.000001; in tile_by_steps_trans()
659 if (!ptile->is_simple) in tile_by_steps_trans()
695 px = imod(xoff - x, ptile->ttrans->width); in tile_by_steps_trans()
696 py = imod(yoff - y, ptile->ttrans->height); in tile_by_steps_trans()
708 ptile->ttrans->pat_trans_fill(x, y, x+w, y+h, px, py, ptile, in tile_by_steps_trans()
735 int px, int py, const gx_color_tile *ptile, in tile_rect_trans_simple() argument
748 int tile_width = ptile->ttrans->width; in tile_rect_trans_simple()
749 int tile_height = ptile->ttrans->height; in tile_rect_trans_simple()
771 buff_in = ptile->ttrans->transbytes; in tile_rect_trans_simple()
791 left_copy_start = max(dx,ptile->ttrans->rect.p.x); in tile_rect_trans_simple()
792 left_copy_rem_end = min(dx+w,ptile->ttrans->rect.q.x); in tile_rect_trans_simple()
796 left_copy_offset = (left_copy_start-ptile->ttrans->rect.p.x)<<deep; in tile_rect_trans_simple()
800 mid_copy_width = ptile->ttrans->rect.q.x - ptile->ttrans->rect.p.x; in tile_rect_trans_simple()
804 right_copy_width = right_tile_width - ptile->ttrans->rect.p.x; in tile_rect_trans_simple()
805 if (right_copy_width > ptile->ttrans->rect.q.x) in tile_rect_trans_simple()
806 right_copy_width = ptile->ttrans->rect.q.x; in tile_rect_trans_simple()
807 right_copy_width -= ptile->ttrans->rect.p.x; in tile_rect_trans_simple()
817 ptr_in = buff_in + kk * ptile->ttrans->planestride; in tile_rect_trans_simple()
823 in_row_offset = ((jj + dy) % ptile->ttrans->height); in tile_rect_trans_simple()
824 if (in_row_offset >= ptile->ttrans->rect.q.y) in tile_rect_trans_simple()
826 in_row_offset -= ptile->ttrans->rect.p.y; in tile_rect_trans_simple()
829 row_ptr = ptr_in + in_row_offset * ptile->ttrans->rowstride; in tile_rect_trans_simple()
853 ptr_in = buff_in + kk * ptile->ttrans->planestride; in tile_rect_trans_simple()
859 in_row_offset = ((jj + dy) % ptile->ttrans->height); in tile_rect_trans_simple()
860 if (in_row_offset >= ptile->ttrans->rect.q.y) in tile_rect_trans_simple()
862 in_row_offset -= ptile->ttrans->rect.p.y; in tile_rect_trans_simple()
865 row_ptr = ptr_in + in_row_offset * ptile->ttrans->rowstride; in tile_rect_trans_simple()
903 int px, int py, const gx_color_tile *ptile, in do_tile_rect_trans_blend() argument
915 int tile_width = ptile->ttrans->width; in do_tile_rect_trans_blend()
916 int tile_height = ptile->ttrans->height; in do_tile_rect_trans_blend()
917 int num_chan = ptile->ttrans->n_chan; /* Includes alpha */ in do_tile_rect_trans_blend()
940 buff_in = ptile->ttrans->transbytes; in do_tile_rect_trans_blend()
944 in_row_offset = (jj + dy) % ptile->ttrans->height; in do_tile_rect_trans_blend()
945 if (in_row_offset >= ptile->ttrans->rect.q.y) in do_tile_rect_trans_blend()
947 in_row_offset -= ptile->ttrans->rect.p.y; in do_tile_rect_trans_blend()
950 row_ptr_in = buff_in + in_row_offset * ptile->ttrans->rowstride; in do_tile_rect_trans_blend()
955 int x_in_offset = (dx + ii) % ptile->ttrans->width; in do_tile_rect_trans_blend()
957 if (x_in_offset >= ptile->ttrans->rect.q.x) in do_tile_rect_trans_blend()
959 x_in_offset -= ptile->ttrans->rect.p.x; in do_tile_rect_trans_blend()
972 src[kk] = *(tile_ptr + kk * ptile->ttrans->planestride); in do_tile_rect_trans_blend()
976 art_pdf_composite_pixel_alpha_8(dst, src, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend()
977 ptile->blending_mode, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend()
978 ptile->ttrans->blending_procs, p14dev); in do_tile_rect_trans_blend()
986 int src_tag = *(tile_ptr + num_chan * ptile->ttrans->planestride); in do_tile_rect_trans_blend()
1011 int px, int py, const gx_color_tile *ptile, in do_tile_rect_trans_blend_16() argument
1023 int tile_width = ptile->ttrans->width; in do_tile_rect_trans_blend_16()
1024 int tile_height = ptile->ttrans->height; in do_tile_rect_trans_blend_16()
1025 int num_chan = ptile->ttrans->n_chan; /* Includes alpha */ in do_tile_rect_trans_blend_16()
1048 buff_in = (uint16_t *)(void *)ptile->ttrans->transbytes; in do_tile_rect_trans_blend_16()
1052 in_row_offset = (jj + dy) % ptile->ttrans->height; in do_tile_rect_trans_blend_16()
1053 if (in_row_offset >= ptile->ttrans->rect.q.y) in do_tile_rect_trans_blend_16()
1055 in_row_offset -= ptile->ttrans->rect.p.y; in do_tile_rect_trans_blend_16()
1058 row_ptr_in = buff_in + in_row_offset * (ptile->ttrans->rowstride>>1); in do_tile_rect_trans_blend_16()
1063 int x_in_offset = (dx + ii) % ptile->ttrans->width; in do_tile_rect_trans_blend_16()
1065 if (x_in_offset >= ptile->ttrans->rect.q.x) in do_tile_rect_trans_blend_16()
1067 x_in_offset -= ptile->ttrans->rect.p.x; in do_tile_rect_trans_blend_16()
1084 src[kk] = GET16_BE2NATIVE(tile_ptr + kk * (ptile->ttrans->planestride>>1)); in do_tile_rect_trans_blend_16()
1088 art_pdf_composite_pixel_alpha_16(dst, src, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend_16()
1089 ptile->blending_mode, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend_16()
1090 ptile->ttrans->blending_procs, p14dev); in do_tile_rect_trans_blend_16()
1098 … int src_tag = GET16_BE2NATIVE(tile_ptr + (num_chan * ptile->ttrans->planestride>>1)); in do_tile_rect_trans_blend_16()
1124 int px, int py, const gx_color_tile *ptile, in do_tile_rect_trans_blend_16be() argument
1136 int tile_width = ptile->ttrans->width; in do_tile_rect_trans_blend_16be()
1137 int tile_height = ptile->ttrans->height; in do_tile_rect_trans_blend_16be()
1138 int num_chan = ptile->ttrans->n_chan; /* Includes alpha */ in do_tile_rect_trans_blend_16be()
1161 buff_in = (uint16_t *)(void *)ptile->ttrans->transbytes; in do_tile_rect_trans_blend_16be()
1165 in_row_offset = (jj + dy) % ptile->ttrans->height; in do_tile_rect_trans_blend_16be()
1166 if (in_row_offset >= ptile->ttrans->rect.q.y) in do_tile_rect_trans_blend_16be()
1168 in_row_offset -= ptile->ttrans->rect.p.y; in do_tile_rect_trans_blend_16be()
1171 row_ptr_in = buff_in + in_row_offset * (ptile->ttrans->rowstride>>1); in do_tile_rect_trans_blend_16be()
1176 int x_in_offset = (dx + ii) % ptile->ttrans->width; in do_tile_rect_trans_blend_16be()
1178 if (x_in_offset >= ptile->ttrans->rect.q.x) in do_tile_rect_trans_blend_16be()
1180 x_in_offset -= ptile->ttrans->rect.p.x; in do_tile_rect_trans_blend_16be()
1199 src[kk] = GET16_BE2NATIVE(tile_ptr + kk * (ptile->ttrans->planestride>>1)); in do_tile_rect_trans_blend_16be()
1203 art_pdf_composite_pixel_alpha_16(dst, src, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend_16be()
1204 ptile->blending_mode, ptile->ttrans->n_chan-1, in do_tile_rect_trans_blend_16be()
1205 ptile->ttrans->blending_procs, p14dev); in do_tile_rect_trans_blend_16be()
1213 … int src_tag = GET16_BE2NATIVE(tile_ptr + (num_chan * ptile->ttrans->planestride>>1)); in do_tile_rect_trans_blend_16be()
1237 int px, int py, const gx_color_tile *ptile, in tile_rect_trans_blend() argument
1254 if (!ptile->ttrans->deep) in tile_rect_trans_blend()
1256 px, py, ptile, fill_trans_buffer); in tile_rect_trans_blend()
1259 px, py, ptile, fill_trans_buffer); in tile_rect_trans_blend()
1262 px, py, ptile, fill_trans_buffer); in tile_rect_trans_blend()
1272 gx_color_tile *ptile = pdevc->colors.pattern.p_tile; in gx_dc_pat_trans_fill_rectangle() local
1278 if (ptile == 0) /* null pattern */ in gx_dc_pat_trans_fill_rectangle()
1287 if_debug8m('v', ptile->ttrans->mem, in gx_dc_pat_trans_fill_rectangle()
1289 x, y, w, h, ptile->ttrans->fill_trans_buffer->rect.p.x, in gx_dc_pat_trans_fill_rectangle()
1290 ptile->ttrans->fill_trans_buffer->rect.p.y, in gx_dc_pat_trans_fill_rectangle()
1291 ptile->ttrans->fill_trans_buffer->rect.q.x - in gx_dc_pat_trans_fill_rectangle()
1292 ptile->ttrans->fill_trans_buffer->rect.p.x, in gx_dc_pat_trans_fill_rectangle()
1293 ptile->ttrans->fill_trans_buffer->rect.q.y - in gx_dc_pat_trans_fill_rectangle()
1294 ptile->ttrans->fill_trans_buffer->rect.p.y); in gx_dc_pat_trans_fill_rectangle()
1296 code = gx_trans_pattern_fill_rect(x, y, x+w, y+h, ptile, in gx_dc_pat_trans_fill_rectangle()
1297 ptile->ttrans->fill_trans_buffer, phase, in gx_dc_pat_trans_fill_rectangle()
1306 gx_color_tile *ptile, in gx_trans_pattern_fill_rect() argument
1318 if (ptile == 0) /* null pattern */ in gx_trans_pattern_fill_rect()
1331 if (ptile->is_simple && ptile->cdev == NULL) { in gx_trans_pattern_fill_rect()
1334 imod(-(int)fastfloor(ptile->step_matrix.tx - phase.x + 0.5), in gx_trans_pattern_fill_rect()
1335 ptile->ttrans->width); in gx_trans_pattern_fill_rect()
1337 imod(-(int)fastfloor(ptile->step_matrix.ty - phase.y + 0.5), in gx_trans_pattern_fill_rect()
1338 ptile->ttrans->height); in gx_trans_pattern_fill_rect()
1340 tile_rect_trans_simple(xmin, ymin, xmax, ymax, px, py, ptile, in gx_trans_pattern_fill_rect()
1343 if (ptile->cdev == NULL) { in gx_trans_pattern_fill_rect()
1349 ymax-ymin, fill_trans_buffer, ptile, in gx_trans_pattern_fill_rect()
1359 gx_device_clist *cdev = ptile->cdev; in gx_trans_pattern_fill_rect()
1374 tbits = ptile->tbits; in gx_trans_pattern_fill_rect()
1379 ymax-ymin, ptile, &tbits, tile_pattern_clist); in gx_trans_pattern_fill_rect()