/third_party/pixman/test/ |
D | cover-test.c | 65 #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 …]
|
D | affine-bench.c | 80 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()
|
D | rotate-test.c | 27 { { { 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
|
D | matrix-test.c | 165 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()
|
D | scaling-helpers-test.c | 31 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()
|
D | affine-test.c | 139 s = pixman_fixed_1; in test_composite() 144 c = -pixman_fixed_1; in test_composite() 152 s = -pixman_fixed_1; in test_composite()
|
D | scaling-crash-test.c | 199 (((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()
|
D | stress-test.c | 567 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()
|
D | filter-reduction-test.c | 91 { 0, 0, pixman_fixed_1 } } in main()
|
/third_party/pixman/pixman/ |
D | pixman-linear-gradient.c | 64 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 …]
|
D | pixman-radial-gradient.c | 110 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 …]
|
D | pixman-image.c | 56 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()
|
D | pixman.c | 347 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 …]
|
D | pixman-conical-gradient.c | 84 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()
|
D | pixman-ssse3.c | 279 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()
|
D | pixman-bits-image.c | 111 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 …]
|
D | pixman-fast-path.c | 1479 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 …]
|
D | pixman-inlines.h | 480 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) \
|
D | pixman-private.h | 411 #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))
|
D | pixman-matrix.c | 233 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()
|
D | pixman-trap.c | 55 i += pixman_fixed_1; in pixman_sample_ceil_y() 84 i -= pixman_fixed_1; in pixman_sample_floor_y()
|
D | pixman.h | 126 #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/ |
D | gradient-test.c | 32 { { pixman_fixed_1, 0, 0 }, in main() 33 { 0, pixman_fixed_1, 0 }, in main() 34 { 0, 0, pixman_fixed_1 } } in main()
|
D | alpha-test.c | 37 { { 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/ |
D | screen-share.c | 554 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()
|