31 static const char *
const rates[] = {
58 static const char *
const color_names[] = {
95 printf(
"Testing av_parse_video_rate()\n");
101 printf(
"'%s' -> %d/%d %s\n",
102 rates[i], q.
num, q.
den, ret ?
"ERROR" :
"OK");
105 printf(
"\nTesting av_parse_color()\n");
111 printf(
"%s -> R(%d) G(%d) B(%d) A(%d)\n",
112 color_names[i], rgba[0], rgba[1], rgba[2], rgba[3]);
int av_parse_video_rate(AVRational *rate, const char *arg)
Parse str and store the detected values in *rate.
void av_log_set_level(int level)
Set the log level.
#define FF_ARRAY_ELEMS(a)
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx)
Put the RGBA values that correspond to color_string in rgba_color.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
rational number numerator/denominator
common internal and external API header