summaryrefslogtreecommitdiff
path: root/libavfilter/parseutils.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-05 22:10:06 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-05 22:10:06 +0000
commita3015225c7d351a629cf0fca8662751afaf9055c (patch)
tree454d9be6cefcdd88e4d6ea8b8fb6a2e422bab948 /libavfilter/parseutils.h
parent9c24cd72363f14b303c6039413ed8eacc36c6653 (diff)
Implement av_parse_color().
Originally committed as revision 18748 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/parseutils.h')
-rw-r--r--libavfilter/parseutils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/parseutils.h b/libavfilter/parseutils.h
index 60092cc845..895c5067aa 100644
--- a/libavfilter/parseutils.h
+++ b/libavfilter/parseutils.h
@@ -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 */