diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-10-17 19:03:40 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-10-27 09:16:05 +0100 |
commit | d61617a52349f9e65903bffb801dba1388de01ac (patch) | |
tree | 8d5750fdc87510c44e59d0b16b16f251368a9b3c /libavutil/parseutils.h | |
parent | 1e5271a9fd6ddcceb083f2185a4bbd8d44c9a813 (diff) | |
download | ffmpeg-d61617a52349f9e65903bffb801dba1388de01ac.tar.gz |
lavu/parseutils: add av_get_known_color_name()
Diffstat (limited to 'libavutil/parseutils.h')
-rw-r--r-- | libavutil/parseutils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavutil/parseutils.h b/libavutil/parseutils.h index dcfb7056d6..c80f0de3de 100644 --- a/libavutil/parseutils.h +++ b/libavutil/parseutils.h @@ -99,6 +99,19 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx); /** + * Get the name of a color from the internal table of hard-coded named + * colors. + * + * This function is meant to enumerate the color names recognized by + * av_parse_color(). + * + * @param color_idx index of the requested color, starting from 0 + * @param rgbp if not NULL, will point to a 3-elements array with the color value in RGB + * @return the color name string or NULL if color_idx is not in the array + */ +const char *av_get_known_color_name(int color_idx, const uint8_t **rgb); + +/** * Parse timestr and return in *time a corresponding number of * microseconds. * |