diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 8ad822c2c34..f18014a74c9 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -306,29 +306,61 @@ gst_videotestsrc_setup (GstVideotestsrc *v) } - static void random_chars(unsigned char *dest, int nbytes) { int i; + static unsigned int state; for(i=0;i>16); } } -static int u_colors[] = { 128, 0, 192, 0, 255, 64, 255 }; -static int v_colors[] = { 128, 192, 0, 0, 255, 255, 64 }; +static void +paint_rect_random (unsigned char *dest, int stride, int x, int y, int w, int h) +{ + unsigned char *d = dest + stride*y + x; + int i; + + for(i=0;i