From: David Schleef Date: Sun, 28 Jul 2002 04:23:07 +0000 (+0000) Subject: Added reasonable values for primaries in YUV space. Added second reverse blue patter... X-Git-Tag: CAPS~249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=768253dc3826f992040030299659c41b49033128;p=platform%2Fupstream%2Fgst-plugins-base.git Added reasonable values for primaries in YUV space. Added second reverse blue pattern. Added a crummy but very fast... Original commit message from CVS: Added reasonable values for primaries in YUV space. Added second reverse blue pattern. Added a crummy but very fast RNG to replace calls to random(). --- diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 8ad822c..f18014a 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