Home
last modified time | relevance | path

Searched refs:pixman_fixed_1 (Results 1 – 25 of 28) sorted by relevance

12

/third_party/pixman/test/
Dcover-test.c65 #define DST_WIDTH (MIN_SRC_WIDTH * pixman_fixed_1 / MAX_INC)
71 #define SRC_HEIGHT ((DST_HEIGHT * MAX_INC + pixman_fixed_1 - 1) / pixman_fixed_1)
173 ref_src = bilinear ? pixman_fixed_1 / 2 : pixman_fixed_e; in calc_translate()
174 ref_dst = pixman_fixed_1 / 2; in calc_translate()
179 bilinear * pixman_fixed_1 / 2; in calc_translate()
180 ref_dst = pixman_int_to_fixed (dst_size) - pixman_fixed_1 / 2; in calc_translate()
183 scaled_dst = ((uint64_t) ref_dst * scale + pixman_fixed_1 / 2) / in calc_translate()
184 pixman_fixed_1; in calc_translate()
205 offset += (pixman_fixed_1 >> BILINEAR_INTERPOLATION_BITS) - 16; in random_offset()
225 v1.vector[0] = pixman_fixed_1 / 2; in check_transform()
[all …]
Daffine-bench.c80 x1 = pixman_int_to_fixed (extents->x1) + pixman_fixed_1 / 2; in compute_transformed_extents()
81 y1 = pixman_int_to_fixed (extents->y1) + pixman_fixed_1 / 2; in compute_transformed_extents()
82 x2 = pixman_int_to_fixed (extents->x2) - pixman_fixed_1 / 2; in compute_transformed_extents()
83 y2 = pixman_int_to_fixed (extents->y2) - pixman_fixed_1 / 2; in compute_transformed_extents()
105 v.vector[2] = pixman_fixed_1; in compute_transformed_extents()
404 xmin = pixman_fixed_to_int (transformed.x1 - pixman_fixed_1 / 2); in main()
405 ymin = pixman_fixed_to_int (transformed.y1 - pixman_fixed_1 / 2); in main()
406 xmax = pixman_fixed_to_int (transformed.x2 + pixman_fixed_1 / 2); in main()
407 ymax = pixman_fixed_to_int (transformed.y2 + pixman_fixed_1 / 2); in main()
Drotate-test.c27 { { { v00, v01, WIDTH * pixman_fixed_1 / 2 }, \
28 { v10, v11, HEIGHT * pixman_fixed_1 / 2 }, \
29 { 0, 0, pixman_fixed_1 } } }
31 #define F1 pixman_fixed_1
Dmatrix-test.c165 ti.matrix[2][2] = pixman_fixed_1; in test_matrix()
171 vi.v[2] = pixman_fixed_1; in test_matrix()
175 ti.matrix[2][2] == pixman_fixed_1 && in test_matrix()
176 vi.v[2] == pixman_fixed_1); in test_matrix()
Dscaling-helpers-test.c31 if (vx + pixman_fixed_1 < 0) in bilinear_pad_repeat_get_scanline_bounds_ref()
36 else if (vx + pixman_fixed_1 >= pixman_int_to_fixed (source_image_width)) in bilinear_pad_repeat_get_scanline_bounds_ref()
Daffine-test.c139 s = pixman_fixed_1; in test_composite()
144 c = -pixman_fixed_1; in test_composite()
152 s = -pixman_fixed_1; in test_composite()
Dscaling-crash-test.c199 (((pixman_fixed_48_16_t)pixman_fixed_1) << 16) / (7 << 16); in main()
208 (((pixman_fixed_48_16_t)pixman_fixed_1) << 16) / (32767 << 16); in main()
Dstress-test.c567 xform.matrix[0][0] = pixman_fixed_1; in set_general_properties()
568 xform.matrix[1][1] = pixman_fixed_1; in set_general_properties()
569 xform.matrix[2][2] = pixman_fixed_1; in set_general_properties()
652 step = pixman_fixed_1 / *n_stops; in create_random_stops()
665 stops[*n_stops - 1].x = pixman_fixed_1; in create_random_stops()
Dfilter-reduction-test.c91 { 0, 0, pixman_fixed_1 } } in main()
/third_party/pixman/pixman/
Dpixman-linear-gradient.c64 v.vector[1] = pixman_fixed_1; in linear_gradient_is_horizontal()
65 v.vector[2] = pixman_fixed_1; in linear_gradient_is_horizontal()
80 inc = height * (double) pixman_fixed_1 * pixman_fixed_1 * in linear_gradient_is_horizontal()
115 v.vector[0] = pixman_int_to_fixed (x) + pixman_fixed_1 / 2; in linear_get_scanline()
116 v.vector[1] = pixman_int_to_fixed (y) + pixman_fixed_1 / 2; in linear_get_scanline()
117 v.vector[2] = pixman_fixed_1; in linear_get_scanline()
130 unit.vector[0] = pixman_fixed_1; in linear_get_scanline()
155 invden = pixman_fixed_1 * (double) pixman_fixed_1 / in linear_get_scanline()
157 v2 = v.vector[2] * (1. / pixman_fixed_1); in linear_get_scanline()
200 invden = pixman_fixed_1 * (double) pixman_fixed_1 / in linear_get_scanline()
[all …]
Dpixman-radial-gradient.c110 t = pixman_fixed_1 / 2 * c / b; in radial_write_color()
113 if (0 <= t && t <= pixman_fixed_1) in radial_write_color()
154 if (0 <= t0 && t0 <= pixman_fixed_1) in radial_write_color()
159 else if (0 <= t1 && t1 <= pixman_fixed_1) in radial_write_color()
284 v.vector[0] = pixman_int_to_fixed (x) + pixman_fixed_1 / 2; in radial_get_scanline()
285 v.vector[1] = pixman_int_to_fixed (y) + pixman_fixed_1 / 2; in radial_get_scanline()
286 v.vector[2] = pixman_fixed_1; in radial_get_scanline()
301 unit.vector[0] = pixman_fixed_1; in radial_get_scanline()
306 if (unit.vector[2] == 0 && v.vector[2] == pixman_fixed_1) in radial_get_scanline()
393 invv2 = 1. * pixman_fixed_1 / v.vector[2]; in radial_get_scanline()
[all …]
Dpixman-image.c56 begin->x = stops[n - 1].x - pixman_fixed_1; in gradient_property_changed()
58 end->x = stops[0].x + pixman_fixed_1; in gradient_property_changed()
284 image->common.transform->matrix[2][2] == pixman_fixed_1) in compute_image_info()
291 if (image->common.transform->matrix[0][0] == -pixman_fixed_1 && in compute_image_info()
292 image->common.transform->matrix[1][1] == -pixman_fixed_1) in compute_image_info()
304 if (m01 == -pixman_fixed_1 && m10 == pixman_fixed_1) in compute_image_info()
306 else if (m01 == pixman_fixed_1 && m10 == -pixman_fixed_1) in compute_image_info()
629 { { pixman_fixed_1, 0, 0 }, in pixman_image_set_transform()
630 { 0, pixman_fixed_1, 0 }, in pixman_image_set_transform()
631 { 0, 0, pixman_fixed_1 } } in pixman_image_set_transform()
Dpixman.c347 x1 = pixman_int_to_fixed (extents->x1) + pixman_fixed_1 / 2; in compute_transformed_extents()
348 y1 = pixman_int_to_fixed (extents->y1) + pixman_fixed_1 / 2; in compute_transformed_extents()
349 x2 = pixman_int_to_fixed (extents->x2) - pixman_fixed_1 / 2; in compute_transformed_extents()
350 y2 = pixman_int_to_fixed (extents->y2) - pixman_fixed_1 / 2; in compute_transformed_extents()
372 v.vector[2] = pixman_fixed_1; in compute_transformed_extents()
454 x_off = - pixman_fixed_e - ((params[0] - pixman_fixed_1) >> 1); in analyze_extent()
455 y_off = - pixman_fixed_e - ((params[1] - pixman_fixed_1) >> 1); in analyze_extent()
462 x_off = - pixman_fixed_e - ((params[0] - pixman_fixed_1) >> 1); in analyze_extent()
463 y_off = - pixman_fixed_e - ((params[1] - pixman_fixed_1) >> 1); in analyze_extent()
471 x_off = - pixman_fixed_1 / 2; in analyze_extent()
[all …]
Dpixman-conical-gradient.c84 v.vector[0] = pixman_int_to_fixed (x) + pixman_fixed_1 / 2; in conical_get_scanline()
85 v.vector[1] = pixman_int_to_fixed (y) + pixman_fixed_1 / 2; in conical_get_scanline()
86 v.vector[2] = pixman_fixed_1; in conical_get_scanline()
101 v.vector[2] == pixman_fixed_1; in conical_get_scanline()
Dpixman-ssse3.c279 v.vector[0] = pixman_int_to_fixed (iter->x) + pixman_fixed_1 / 2; in ssse3_bilinear_cover_iter_init()
280 v.vector[1] = pixman_int_to_fixed (iter->y) + pixman_fixed_1 / 2; in ssse3_bilinear_cover_iter_init()
281 v.vector[2] = pixman_fixed_1; in ssse3_bilinear_cover_iter_init()
290 info->x = v.vector[0] - pixman_fixed_1 / 2; in ssse3_bilinear_cover_iter_init()
291 info->y = v.vector[1] - pixman_fixed_1 / 2; in ssse3_bilinear_cover_iter_init()
Dpixman-bits-image.c111 x1 = x - pixman_fixed_1 / 2; in bits_image_fetch_pixel_bilinear_32()
112 y1 = y - pixman_fixed_1 / 2; in bits_image_fetch_pixel_bilinear_32()
160 x1 = x - pixman_fixed_1 / 2; in bits_image_fetch_pixel_bilinear_float()
161 y1 = y - pixman_fixed_1 / 2; in bits_image_fetch_pixel_bilinear_float()
267 int x_off = (params[0] - pixman_fixed_1) >> 1; in bits_image_fetch_pixel_convolution()
268 int y_off = (params[1] - pixman_fixed_1) >> 1; in bits_image_fetch_pixel_convolution()
341 int x_off = ((cwidth << 16) - pixman_fixed_1) >> 1; in bits_image_fetch_pixel_separable_convolution()
342 int y_off = ((cheight << 16) - pixman_fixed_1) >> 1; in bits_image_fetch_pixel_separable_convolution()
493 v.vector[0] = pixman_int_to_fixed (offset) + pixman_fixed_1 / 2; in __bits_image_fetch_affine_no_alpha()
494 v.vector[1] = pixman_int_to_fixed (line) + pixman_fixed_1 / 2; in __bits_image_fetch_affine_no_alpha()
[all …]
Dpixman-fast-path.c1479 v.vector[0] = pixman_int_to_fixed (src_x) + pixman_fixed_1 / 2; in fast_composite_scaled_nearest()
1480 v.vector[1] = pixman_int_to_fixed (src_y) + pixman_fixed_1 / 2; in fast_composite_scaled_nearest()
1481 v.vector[2] = pixman_fixed_1; in fast_composite_scaled_nearest()
1777 pixman_fixed_1 / 2 - pixman_fixed_e) - height;\
1780 pixman_fixed_1 / 2 - pixman_fixed_e); \
1801 pixman_fixed_1 / 2 - pixman_fixed_e); \
1804 pixman_fixed_1 / 2 - pixman_fixed_e) - width; \
2446 v.vector[0] = pixman_int_to_fixed (iter->x) + pixman_fixed_1 / 2; in fast_bilinear_cover_iter_init()
2447 v.vector[1] = pixman_int_to_fixed (iter->y) + pixman_fixed_1 / 2; in fast_bilinear_cover_iter_init()
2448 v.vector[2] = pixman_fixed_1; in fast_bilinear_cover_iter_init()
[all …]
Dpixman-inlines.h480 v.vector[0] = pixman_int_to_fixed (src_x) + pixman_fixed_1 / 2; \
481 v.vector[1] = pixman_int_to_fixed (src_y) + pixman_fixed_1 / 2; \
482 v.vector[2] = pixman_fixed_1; \
800 pad_repeat_get_scanline_bounds (source_image_width, vx + pixman_fixed_1, in bilinear_pad_repeat_get_scanline_bounds()
897 v.vector[0] = pixman_int_to_fixed (src_x) + pixman_fixed_1 / 2; \
898 v.vector[1] = pixman_int_to_fixed (src_y) + pixman_fixed_1 / 2; \
899 v.vector[2] = pixman_fixed_1; \
907 v.vector[0] -= pixman_fixed_1 / 2; \
908 v.vector[1] -= pixman_fixed_1 / 2; \
1180 num_pixels = ((src_width_fixed - pixman_fixed_1 - vx - pixman_fixed_e) \
Dpixman-private.h411 #define STEP_Y_SMALL(n) (pixman_fixed_1 / N_Y_FRAC (n))
412 #define STEP_Y_BIG(n) (pixman_fixed_1 - (N_Y_FRAC (n) - 1) * STEP_Y_SMALL (n))
417 #define STEP_X_SMALL(n) (pixman_fixed_1 / N_X_FRAC (n))
418 #define STEP_X_BIG(n) (pixman_fixed_1 - (N_X_FRAC (n) - 1) * STEP_X_SMALL (n))
Dpixman-matrix.c233 if (divint == pixman_fixed_1 && divfrac == 0) in pixman_transform_point_31_16()
240 result->v[2] = pixman_fixed_1; in pixman_transform_point_31_16()
302 result->v[2] = pixman_fixed_1; in pixman_transform_point_31_16()
334 result->v[2] = pixman_fixed_1; in pixman_transform_point_31_16_affine()
Dpixman-trap.c55 i += pixman_fixed_1; in pixman_sample_ceil_y()
84 i -= pixman_fixed_1; in pixman_sample_floor_y()
Dpixman.h126 #define pixman_fixed_1 (pixman_int_to_fixed(1)) macro
127 #define pixman_fixed_1_minus_e (pixman_fixed_1 - pixman_fixed_e)
131 #define pixman_fixed_to_double(f) (double) ((f) / (double) pixman_fixed_1)
/third_party/pixman/demos/
Dgradient-test.c32 { { pixman_fixed_1, 0, 0 }, in main()
33 { 0, pixman_fixed_1, 0 }, in main()
34 { 0, 0, pixman_fixed_1 } } in main()
Dalpha-test.c37 { { pixman_fixed_1, 0, 0 }, in main()
38 { 0, pixman_fixed_1, 0 }, in main()
39 { 0, 0, pixman_fixed_1 } } in main()
/third_party/weston/compositor/
Dscreen-share.c554 pixman_transform_rotate(transform, NULL, 0, -pixman_fixed_1); in output_compute_transform()
559 pixman_transform_rotate(transform, NULL, -pixman_fixed_1, 0); in output_compute_transform()
564 pixman_transform_rotate(transform, NULL, 0, pixman_fixed_1); in output_compute_transform()
570 pixman_fixed_1 * output->current_scale, in output_compute_transform()
571 pixman_fixed_1 * output->current_scale); in output_compute_transform()
895 pixman_fixed_1, in shared_output_repainted()

12