Home | History | Annotate | Download | only in test

Lines Matching refs:prng_rand_n

53     src_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
54 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
55 op = (prng_rand_n (2) == 0) ? PIXMAN_OP_SRC : PIXMAN_OP_OVER;
57 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
58 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
59 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1;
60 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1;
61 src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp;
62 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp;
70 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2);
71 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2);
72 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2);
73 dst_y = -(dst_height / 4) + prng_rand_n (dst_height * 3 / 2);
74 w = prng_rand_n (dst_width * 3 / 2 - dst_x);
75 h = prng_rand_n (dst_height * 3 / 2 - dst_y);
83 src_fmt = src_bpp == 4 ? (prng_rand_n (2) == 0 ?
86 dst_fmt = dst_bpp == 4 ? (prng_rand_n (2) == 0 ?
100 if (prng_rand_n (3) > 0)
102 scale_x = -65536 * 3 + prng_rand_n (65536 * 6);
103 if (prng_rand_n (2))
104 scale_y = -65536 * 3 + prng_rand_n (65536 * 6);
109 if (prng_rand_n (3) > 0)
111 translate_x = -65536 * 3 + prng_rand_n (6 * 65536);
112 if (prng_rand_n (2))
113 translate_y = -65536 * 3 + prng_rand_n (6 * 65536);
119 if (prng_rand_n (4) > 0)
122 switch (prng_rand_n (4))
145 c = prng_rand_n (2 * 65536) - 65536;
146 s = prng_rand_n (2 * 65536) - 65536;
153 if (prng_rand_n (8) == 0)
159 int i = prng_rand_n (2);
160 int j = prng_rand_n (3);
161 int bitnum = prng_rand_n (32);
163 if (prng_rand_n (2))
170 switch (prng_rand_n (4))
193 if (prng_rand_n (2))
220 if (prng_rand_n (8) == 0)
223 int n = prng_rand_n (2) + 1;
227 clip_boxes[i].x1 = prng_rand_n (src_width);
228 clip_boxes[i].y1 = prng_rand_n (src_height);
230 clip_boxes[i].x1 + prng_rand_n (src_width - clip_boxes[i].x1);
232 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1);
248 if (prng_rand_n (8) == 0)
251 int n = prng_rand_n (2) + 1;
254 clip_boxes[i].x1 = prng_rand_n (dst_width);
255 clip_boxes[i].y1 = prng_rand_n (dst_height);
257 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1);
259 clip_boxes[i].y1 + prng_rand_n (dst_height - clip_boxes[i].y1);