Searched defs:n_stops (Results 1 - 6 of 6) sorted by relevance

/external/pixman/pixman/
H A Dpixman-conical-gradient.c187 int n_stops)
197 if (!_pixman_init_gradient (&conical->common, stops, n_stops))
184 pixman_image_create_conical_gradient(const pixman_point_fixed_t * center, pixman_fixed_t angle, const pixman_gradient_stop_t *stops, int n_stops) argument
H A Dpixman-linear-gradient.c262 int n_stops)
274 if (!_pixman_init_gradient (&linear->common, stops, n_stops))
259 pixman_image_create_linear_gradient(const pixman_point_fixed_t * p1, const pixman_point_fixed_t * p2, const pixman_gradient_stop_t *stops, int n_stops) argument
H A Dpixman-radial-gradient.c429 int n_stops)
441 if (!_pixman_init_gradient (&radial->common, stops, n_stops))
424 pixman_image_create_radial_gradient(const pixman_point_fixed_t * inner, const pixman_point_fixed_t * outer, pixman_fixed_t inner_radius, pixman_fixed_t outer_radius, const pixman_gradient_stop_t *stops, int n_stops) argument
H A Dpixman-image.c40 int n = gradient->n_stops;
81 int n_stops)
83 return_val_if_fail (n_stops > 0, FALSE);
96 pixman_malloc_ab (n_stops + 2, sizeof (pixman_gradient_stop_t));
101 memcpy (gradient->stops, stops, n_stops * sizeof (pixman_gradient_stop_t));
102 gradient->n_stops = n_stops;
489 for (i = 0; i < image->gradient.n_stops; ++i)
79 _pixman_init_gradient(gradient_t * gradient, const pixman_gradient_stop_t *stops, int n_stops) argument
H A Dpixman-private.h135 int n_stops; member in struct:gradient
296 int n_stops);
/external/pixman/test/
H A Dstress-test.c606 create_random_stops (int *n_stops) argument
613 *n_stops = prng_rand_n (50) + 1;
615 step = pixman_fixed_1 / *n_stops;
617 stops = malloc (*n_stops * sizeof (pixman_gradient_stop_t));
620 for (i = 0; i < (*n_stops) - 1; ++i)
628 stops[*n_stops - 1].x = pixman_fixed_1;
629 stops[*n_stops - 1].color = random_color();
648 int n_stops; local
653 stops = create_random_stops (&n_stops);
660 result = pixman_image_create_linear_gradient (&p1, &p2, stops, n_stops);
670 int n_stops; local
698 int n_stops; local
[all...]

Completed in 337 milliseconds