Searched refs:subpixel_snap (Results 1 – 4 of 4) sorted by relevance
236 static inline int subpixel_snap( float a ) in subpixel_snap() function362 int tx = subpixel_snap(-dy * scale); in try_setup_line()363 int ty = subpixel_snap(+dx * scale); in try_setup_line()365 x[0] = subpixel_snap(v1[0][0] - pixel_offset) - tx; in try_setup_line()366 x[1] = subpixel_snap(v2[0][0] - pixel_offset) - tx; in try_setup_line()367 x[2] = subpixel_snap(v2[0][0] - pixel_offset) + tx; in try_setup_line()368 x[3] = subpixel_snap(v1[0][0] - pixel_offset) + tx; in try_setup_line()370 y[0] = subpixel_snap(v1[0][1] - pixel_offset) - ty; in try_setup_line()371 y[1] = subpixel_snap(v2[0][1] - pixel_offset) - ty; in try_setup_line()372 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() function266 int x0 = subpixel_snap(v0[0][0] - setup->pixel_offset); in try_rect_cw()267 int x1 = subpixel_snap(v1[0][0] - setup->pixel_offset); in try_rect_cw()268 int x2 = subpixel_snap(v2[0][0] - setup->pixel_offset); in try_rect_cw()269 int y0 = subpixel_snap(v0[0][1] - setup->pixel_offset); in try_rect_cw()270 int y1 = subpixel_snap(v1[0][1] - setup->pixel_offset); in try_rect_cw()271 int y2 = subpixel_snap(v2[0][1] - setup->pixel_offset); in try_rect_cw()
57 subpixel_snap(float a) in subpixel_snap() function1079 position->x[0] = subpixel_snap(v0[0][0] - pixel_offset); in calc_fixed_position()1080 position->x[1] = subpixel_snap(v1[0][0] - pixel_offset); in calc_fixed_position()1081 position->x[2] = subpixel_snap(v2[0][0] - pixel_offset); in calc_fixed_position()1084 position->y[0] = subpixel_snap(v0[0][1] - pixel_offset); in calc_fixed_position()1085 position->y[1] = subpixel_snap(v1[0][1] - pixel_offset); in calc_fixed_position()1086 position->y[2] = subpixel_snap(v2[0][1] - pixel_offset); in calc_fixed_position()