Lines Matching refs:prng_rand_n

29 	switch (prng_rand_n (4))
85 src_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
86 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
87 switch (prng_rand_n (3))
100 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
101 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
103 if (prng_rand_n (2))
105 mask_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
106 mask_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
113 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1;
114 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1;
115 src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp;
116 mask_stride = mask_width * mask_bpp + prng_rand_n (MAX_STRIDE) * mask_bpp;
117 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp;
130 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2);
131 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2);
132 mask_x = -(mask_width / 4) + prng_rand_n (mask_width * 3 / 2);
133 mask_y = -(mask_height / 4) + prng_rand_n (mask_height * 3 / 2);
134 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2);
135 dst_y = -(dst_height / 4) + prng_rand_n (dst_height * 3 / 2);
136 w = prng_rand_n (dst_width * 3 / 2 - dst_x);
137 h = prng_rand_n (dst_height * 3 / 2 - dst_y);
151 if (prng_rand_n (2))
157 if (prng_rand_n (2))
163 if (prng_rand_n (2))
181 if (prng_rand_n (4) > 0)
183 scale_x = -32768 * 3 + prng_rand_n (65536 * 5);
184 scale_y = -32768 * 3 + prng_rand_n (65536 * 5);
185 translate_x = prng_rand_n (65536);
186 translate_y = prng_rand_n (65536);
192 if (prng_rand_n (2) > 0)
194 mask_scale_x = -32768 * 3 + prng_rand_n (65536 * 5);
195 mask_scale_y = -32768 * 3 + prng_rand_n (65536 * 5);
196 mask_translate_x = prng_rand_n (65536);
197 mask_translate_y = prng_rand_n (65536);
203 switch (prng_rand_n (4))
226 switch (prng_rand_n (4))
249 if (prng_rand_n (2))
254 if (prng_rand_n (2))
259 if (prng_rand_n (8) == 0)
262 int n = prng_rand_n (2) + 1;
266 clip_boxes[i].x1 = prng_rand_n (src_width);
267 clip_boxes[i].y1 = prng_rand_n (src_height);
269 clip_boxes[i].x1 + prng_rand_n (src_width - clip_boxes[i].x1);
271 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1);
287 if (prng_rand_n (8) == 0)
290 int n = prng_rand_n (2) + 1;
294 clip_boxes[i].x1 = prng_rand_n (mask_width);
295 clip_boxes[i].y1 = prng_rand_n (mask_height);
297 clip_boxes[i].x1 + prng_rand_n (mask_width - clip_boxes[i].x1);
299 clip_boxes[i].y1 + prng_rand_n (mask_height - clip_boxes[i].y1);
315 if (prng_rand_n (8) == 0)
318 int n = prng_rand_n (2) + 1;
321 clip_boxes[i].x1 = prng_rand_n (dst_width);
322 clip_boxes[i].y1 = prng_rand_n (dst_height);
324 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1);
326 clip_boxes[i].y1 + prng_rand_n (dst_height - clip_boxes[i].y1);
340 if (prng_rand_n (2) == 0)