History

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

Stefano Sabatini committed 17 years ago

Commit 3d3bd641 parent b69b6222 files · +3 −1Browse files

Showing the changes to libavfilter/parseutils.h (1 of 2 files). Show all

Unified · Split

libavfilter/parseutils.h+1−0
@@ -45,6 +45,7 @@ char *av_get_token(const char **buf, const char *term); · 44 unmodified lines
4545 *
4646 * @param color_string a string specifying a color. It can be the name of
4747 * a color (case insensitive match) or a 0xRRGGBB[AA] sequence.
48+ * The string "random" will result in a random color.
4849 * @return >= 0 in case of success, a negative value in case of
4950 * failure (for example if color_string cannot be parsed).
5051 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t