videotestsrc: Add foreground/background-color properties
authorDavid Schleef <ds@schleef.org>
Mon, 6 Sep 2010 03:35:13 +0000 (20:35 -0700)
committerDavid Schleef <ds@schleef.org>
Mon, 6 Sep 2010 03:59:34 +0000 (20:59 -0700)
commit131d6197373b1c67575404d8c43d9ce3a019de62
tree7f35c703d95dc5a36ea4ec07f236d278bd6ad245
parentcdb5981bca9471ae751bb01aea5bdfcb7d812da7
videotestsrc: Add foreground/background-color properties

Replace solid-color property with foreground-color and add
background-color.  Pull some common code out of each of the
pattern generating functions.  Fix many of the patterns to
use foreground-color/background-color instead of white/black.
Generated images are indentical to previously if foreground-color
and background-color are left as default.

API: GstVideoTestSrc::foreground-color
API: GstVideoTestSrc::background-color
gst/videotestsrc/gstvideotestsrc.c
gst/videotestsrc/gstvideotestsrc.h
gst/videotestsrc/videotestsrc.c
gst/videotestsrc/videotestsrc.h