Revision 2722dd6e libavfilter/parseutils.h

View differences:

libavfilter/parseutils.h
40 40
 * 0xff/1.0 completely opaque).
41 41
 * If the alpha component is not specified then 0xff is assumed.
42 42
 * The string "random" will result in a random color.
43
 * @param slen length of the initial part of color_string containing the
44
 * color. It can be set to -1 if color_string is a null terminated string
45
 * containing nothing else than the color.
43 46
 * @return >= 0 in case of success, a negative value in case of
44 47
 * failure (for example if color_string cannot be parsed).
45 48
 */
46
int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx);
49
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen,
50
                   void *log_ctx);
47 51

  
48 52
#endif  /* AVFILTER_PARSEUTILS_H */

Also available in: Unified diff