GNOME Bugzilla – Bug 624919
[videotestsrc] add solid color pattern
Last modified: 2010-08-09 08:02:07 UTC
Created attachment 166276 [details] [review] videotestsrc: add solid-color pattern ... which generalizes the current listing of black, white, etc Color is set as a big-endian xRGB provided guint32, which might be considered elegantly simply or hackish. Maybe it is already done otherwise elsewhere, or should deserve a type of its own (comparable to fourcc), or ...
Cool. I've wanted to do something like this for a while. Mostly, I wanted to replace white/black in most of the patterns with a foreground/background color, and then add properties for foreground and background color.
Same comment as in the other bug... why restrict yourself to xRGB. For ARGB/AYUV formats the alpha value would make sense too :)
Created attachment 166398 [details] [review] videotestsrc: add solid-color pattern As before, but allow for ARGB value as mentioned.
commit be6fb6e747dc10da111f15c2e897363c8a4051a9 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Wed Jul 21 14:20:03 2010 +0200 videotestsrc: add solid-color pattern ... which generalizes the current listing of white, black, etc. In particular, also allow specifying alpha channel, and modify some structures and pattern filling to cater for alpha value as well. Fixes #624919. API: GstVideoTestSrc:solid-color