Searched refs:subpixel_snap (Results 1 – 4 of 4) sorted by relevance
236 static inline int subpixel_snap( float a ) in subpixel_snap() function346 int tx = subpixel_snap(-dy * scale); in try_setup_line()347 int ty = subpixel_snap(+dx * scale); in try_setup_line()349 x[0] = subpixel_snap(v1[0][0] - pixel_offset) - tx; in try_setup_line()350 x[1] = subpixel_snap(v2[0][0] - pixel_offset) - tx; in try_setup_line()351 x[2] = subpixel_snap(v2[0][0] - pixel_offset) + tx; in try_setup_line()352 x[3] = subpixel_snap(v1[0][0] - pixel_offset) + tx; in try_setup_line()354 y[0] = subpixel_snap(v1[0][1] - pixel_offset) - ty; in try_setup_line()355 y[1] = subpixel_snap(v2[0][1] - pixel_offset) - ty; in try_setup_line()356 y[2] = subpixel_snap(v2[0][1] - pixel_offset) + ty; in try_setup_line()[all …]
308 subpixel_snap(float a) in subpixel_snap() function383 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()385 x0 = subpixel_snap(v0[0][0] - pixel_offset) - fixed_width/2; in try_setup_point()386 y0 = subpixel_snap(v0[0][1] - pixel_offset) - fixed_width/2; in try_setup_point()411 const int x0 = subpixel_snap(v0[0][0]); in try_setup_point()412 const int y0 = subpixel_snap(v0[0][1]) - adj; in try_setup_point()419 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
47 subpixel_snap(float a) in subpixel_snap() function255 int x0 = subpixel_snap(v0[0][0] - setup->pixel_offset); in try_rect_cw()256 int x1 = subpixel_snap(v1[0][0] - setup->pixel_offset); in try_rect_cw()257 int x2 = subpixel_snap(v2[0][0] - setup->pixel_offset); in try_rect_cw()258 int y0 = subpixel_snap(v0[0][1] - setup->pixel_offset); in try_rect_cw()259 int y1 = subpixel_snap(v1[0][1] - setup->pixel_offset); in try_rect_cw()260 int y2 = subpixel_snap(v2[0][1] - setup->pixel_offset); in try_rect_cw()
56 subpixel_snap(float a) in subpixel_snap() function1059 position->x[0] = subpixel_snap(v0[0][0] - pixel_offset); in calc_fixed_position()1060 position->x[1] = subpixel_snap(v1[0][0] - pixel_offset); in calc_fixed_position()1061 position->x[2] = subpixel_snap(v2[0][0] - pixel_offset); in calc_fixed_position()1064 position->y[0] = subpixel_snap(v0[0][1] - pixel_offset); in calc_fixed_position()1065 position->y[1] = subpixel_snap(v1[0][1] - pixel_offset); in calc_fixed_position()1066 position->y[2] = subpixel_snap(v2[0][1] - pixel_offset); in calc_fixed_position()