Implement av_parse_color().

Originally committed as revision 18748 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2009-05-05 22:10:06 +00:00
parent 9c24cd7236
commit a3015225c7
2 changed files with 225 additions and 0 deletions

View File

@ -40,4 +40,14 @@
*/
char *av_get_token(const char **buf, const char *term);
/**
* Puts the RGBA values that correspond to color_string in rgba_color.
*
* @param color_string a string specifying a color. It can be the name of
* a color or a 0xRRGGBB[AA] sequence.
* @return >= 0 in case of success, a negative value in case of
* failure (for example if color_string cannot be parsed).
*/
int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx);
#endif /* AVFILTER_PARSEUTILS_H */