• Home
  • Raw
  • Download

Lines Matching refs:coords

71    void (*current_coords)(struct stroke_iterator *it, VGfloat *coords);
77 const VGfloat *coords; member
90 static void stroke_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_itr_coords() argument
92 itr->current_coords(itr, coords); in stroke_itr_coords()
95 static void stroke_fw_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_fw_itr_coords() argument
101 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
102 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_fw_itr_coords()
105 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
106 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_fw_itr_coords()
109 coords[0] = itr->coords[itr->coord_position]; in stroke_fw_itr_coords()
110 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_fw_itr_coords()
111 coords[2] = itr->coords[itr->coord_position + 2]; in stroke_fw_itr_coords()
112 coords[3] = itr->coords[itr->coord_position + 3]; in stroke_fw_itr_coords()
113 coords[4] = itr->coords[itr->coord_position + 4]; in stroke_fw_itr_coords()
114 coords[5] = itr->coords[itr->coord_position + 5]; in stroke_fw_itr_coords()
122 static void stroke_bw_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_bw_itr_coords() argument
128 coords[0] = itr->coords[itr->coord_position]; in stroke_bw_itr_coords()
129 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_bw_itr_coords()
132 coords[0] = itr->coords[itr->coord_position]; in stroke_bw_itr_coords()
133 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_bw_itr_coords()
136 coords[0] = itr->coords[itr->coord_position + 4]; in stroke_bw_itr_coords()
137 coords[1] = itr->coords[itr->coord_position + 5]; in stroke_bw_itr_coords()
138 coords[2] = itr->coords[itr->coord_position + 2]; in stroke_bw_itr_coords()
139 coords[3] = itr->coords[itr->coord_position + 3]; in stroke_bw_itr_coords()
140 coords[4] = itr->coords[itr->coord_position + 0]; in stroke_bw_itr_coords()
141 coords[5] = itr->coords[itr->coord_position + 1]; in stroke_bw_itr_coords()
198 struct array *coords) in stroke_itr_common_init() argument
203 itr->coords = (VGfloat*)coords->data; in stroke_itr_common_init()
204 itr->num_coords = coords->num_elements; in stroke_itr_common_init()
209 struct array *coords) in stroke_forward_iterator() argument
211 stroke_itr_common_init(itr, cmds, coords); in stroke_forward_iterator()
223 struct array *coords) in stroke_backward_iterator() argument
226 stroke_itr_common_init(itr, cmds, coords); in stroke_backward_iterator()
266 bez[0] = itr->coords[itr->coord_position - 2]; in stroke_flat_next()
267 bez[1] = itr->coords[itr->coord_position - 1]; in stroke_flat_next()
268 bez[2] = itr->coords[itr->coord_position]; in stroke_flat_next()
269 bez[3] = itr->coords[itr->coord_position + 1]; in stroke_flat_next()
270 bez[4] = itr->coords[itr->coord_position + 2]; in stroke_flat_next()
271 bez[5] = itr->coords[itr->coord_position + 3]; in stroke_flat_next()
272 bez[6] = itr->coords[itr->coord_position + 4]; in stroke_flat_next()
273 bez[7] = itr->coords[itr->coord_position + 5]; in stroke_flat_next()
305 static void stroke_flat_itr_coords(struct stroke_iterator *itr, VGfloat *coords) in stroke_flat_itr_coords() argument
312 coords); in stroke_flat_itr_coords()
318 coords[0] = itr->coords[itr->coord_position]; in stroke_flat_itr_coords()
319 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_flat_itr_coords()
322 coords[0] = itr->coords[itr->coord_position]; in stroke_flat_itr_coords()
323 coords[1] = itr->coords[itr->coord_position + 1]; in stroke_flat_itr_coords()
333 struct array *coords) in stroke_flat_iterator() argument
335 stroke_itr_common_init(itr, cmds, coords); in stroke_flat_iterator()
553 VGfloat coords[2] = {x, y}; in stroker_emit_move_to() local
564 &cmds, &coords); in stroker_emit_move_to()
570 VGfloat coords[2] = {x, y}; in stroker_emit_line_to() local
580 &cmds, &coords); in stroker_emit_line_to()
588 VGfloat coords[6] = {px1, py1, px2, py2, x, y}; in stroker_emit_curve_to() local
611 &cmds, &coords); in stroker_emit_curve_to()
752 const VGfloat *coords, in stroker_add_segment() argument
763 if (floatsEqual(coords[0], data[0]) && in stroker_add_segment()
764 floatsEqual(coords[1], data[1])) in stroker_add_segment()
768 if (floatsEqual(coords[0], data[0]) && in stroker_add_segment()
769 floatsEqual(coords[1], data[1])) in stroker_add_segment()
773 if (floatsEqual(coords[0], data[0]) && in stroker_add_segment()
774 floatsEqual(coords[1], data[1]) && in stroker_add_segment()
775 floatsEqual(coords[2], data[2]) && in stroker_add_segment()
776 floatsEqual(coords[3], data[3]) && in stroker_add_segment()
777 floatsEqual(coords[4], data[4]) && in stroker_add_segment()
778 floatsEqual(coords[5], data[5])) in stroker_add_segment()
789 if (floatsEqual(coords[0], data[0]) && in stroker_add_segment()
790 floatsEqual(coords[1], data[1])) in stroker_add_segment()
795 array_append_data(stroker->control_points, coords, num_coords); in stroker_add_segment()
800 VGfloat coords[2] = {x, y}; in stroker_move_to() local
811 stroker_add_segment(stroker, VG_MOVE_TO_ABS, coords, 2); in stroker_move_to()
816 VGfloat coords[] = {x, y}; in stroker_line_to() local
824 stroker_add_segment(stroker, VG_LINE_TO_ABS, coords, 2); in stroker_line_to()
831 VGfloat coords[] = {px1, py1, in stroker_curve_to() local
841 stroker_add_segment(stroker, VG_CUBIC_TO_ABS, coords, 6); in stroker_curve_to()
845 VGfloat *coords, in is_segment_null() argument
851 return floatsEqual(coords[0], res[0]) && in is_segment_null()
852 floatsEqual(coords[1], res[1]); in is_segment_null()
855 return floatsEqual(coords[0], res[0]) && in is_segment_null()
856 floatsEqual(coords[1], res[1]) && in is_segment_null()
857 floatsEqual(coords[2], res[0]) && in is_segment_null()
858 floatsEqual(coords[3], res[1]) && in is_segment_null()
859 floatsEqual(coords[4], res[0]) && in is_segment_null()
860 floatsEqual(coords[5], res[1]); in is_segment_null()
906 VGfloat coords[8]; in vg_stroke_outline() local
910 stroke_itr_coords(it, coords); in vg_stroke_outline()
913 VGfloat line[4] = {prev[0], prev[1], coords[0], coords[1]}; in vg_stroke_outline()
918 debug_printf("\n ---> (side) lineto [%.2f, %.2f]\n", coords[0], coords[1]); in vg_stroke_outline()
940 prev[0] = coords[0]; in vg_stroke_outline()
941 prev[1] = coords[1]; in vg_stroke_outline()
945 coords[4], in vg_stroke_outline()
946 coords[5]); in vg_stroke_outline()
952 prev[0], prev[1], coords[0], coords[1], in vg_stroke_outline()
953 coords[2], coords[3], coords[4], coords[5]); in vg_stroke_outline()
1000 prev[0] = coords[4]; in vg_stroke_outline()
1001 prev[1] = coords[5]; in vg_stroke_outline()
1048 fwit.coords[0], fwit.coords[1], fw_start_tangent, in stroker_process_subpath()
1056 VGfloat data[8], coords[8]; in stroker_process_subpath() local
1062 stroke_itr_coords(it, coords); in stroker_process_subpath()
1065 if (!is_segment_null(cmd, coords, data)) in stroker_process_subpath()
1068 data[0] = coords[0]; in stroker_process_subpath()
1069 data[1] = coords[1]; in stroker_process_subpath()
1074 stroke_itr_coords(it, coords); in stroker_process_subpath()
1075 if (!is_segment_null(cmd, coords, data)) in stroker_process_subpath()
1169 VGfloat coords[8]; in dash_stroker_process_subpath() local
1174 stroke_itr_coords(&it, coords); in dash_stroker_process_subpath()
1179 cline[2] = coords[0]; in dash_stroker_process_subpath()
1180 cline[3] = coords[1]; in dash_stroker_process_subpath()
1228 prev[0] = coords[0]; in dash_stroker_process_subpath()
1229 prev[1] = coords[1]; in dash_stroker_process_subpath()