Searched refs:color_string (Results 1 - 6 of 6) sorted by relevance

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/ffmpeg/libavfilter/
H A Dparseutils.h46 * Puts the RGBA values that correspond to color_string in rgba_color.
48 * @param color_string a string specifying a color. It can be the name of
52 * failure (for example if color_string cannot be parsed).
54 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx);
H A Dparseutils.c218 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) argument
220 if (!strcasecmp(color_string, "random") || !strcasecmp(color_string, "bikeshed")) {
227 if (!strncmp(color_string, "0x", 2)) {
229 int len = strlen(color_string);
230 unsigned int rgba = strtoul(color_string, &tail, 16);
233 av_log(log_ctx, AV_LOG_ERROR, "Invalid 0xRRGGBB[AA] color string: '%s'\n", color_string);
244 const ColorEntry *entry = bsearch(color_string,
250 av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/ffmpeg/libavfilter/
H A Dparseutils.h46 * Puts the RGBA values that correspond to color_string in rgba_color.
48 * @param color_string a string specifying a color. It can be the name of
52 * failure (for example if color_string cannot be parsed).
54 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx);
H A Dparseutils.c218 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) argument
220 if (!strcasecmp(color_string, "random") || !strcasecmp(color_string, "bikeshed")) {
227 if (!strncmp(color_string, "0x", 2)) {
229 int len = strlen(color_string);
230 unsigned int rgba = strtoul(color_string, &tail, 16);
233 av_log(log_ctx, AV_LOG_ERROR, "Invalid 0xRRGGBB[AA] color string: '%s'\n", color_string);
244 const ColorEntry *entry = bsearch(color_string,
250 av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/ffmpeg/libavfilter/
H A Dparseutils.h46 * Puts the RGBA values that correspond to color_string in rgba_color.
48 * @param color_string a string specifying a color. It can be the name of
52 * failure (for example if color_string cannot be parsed).
54 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx);
H A Dparseutils.c218 int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) argument
220 if (!strcasecmp(color_string, "random") || !strcasecmp(color_string, "bikeshed")) {
227 if (!strncmp(color_string, "0x", 2)) {
229 int len = strlen(color_string);
230 unsigned int rgba = strtoul(color_string, &tail, 16);
233 av_log(log_ctx, AV_LOG_ERROR, "Invalid 0xRRGGBB[AA] color string: '%s'\n", color_string);
244 const ColorEntry *entry = bsearch(color_string,
250 av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string);

Completed in 118 milliseconds