Add support in av_parse_color() to a "random" color name, which will

result in a randomly choosen random color, as it is with the
"bikeshed" color.

Originally committed as revision 18828 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2009-05-14 18:58:06 +00:00
parent b69b622c22
commit 3d3bd64db8
2 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ char *av_get_token(const char **buf, const char *term);
*
* @param color_string a string specifying a color. It can be the name of
* a color (case insensitive match) or a 0xRRGGBB[AA] sequence.
* The string "random" will result in a random color.
* @return >= 0 in case of success, a negative value in case of
* failure (for example if color_string cannot be parsed).
*/