38 #define OFFSET(x) offsetof(TestContext, x) 40 #define TEST_FLAG_COOL 01 41 #define TEST_FLAG_LAME 02 42 #define TEST_FLAG_MU 04 71 static const char *
options[] = {
87 "flags=+mu-lame : num=42: toggle=0",
88 "num=42 : string=blahblah",
89 "rational=0 : rational=1/2 : rational=1/-1",
93 printf(
"\nTesting av_set_options_string()\n");
memory handling functions
void av_log_set_level(int level)
Set the log level.
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
int av_set_options_string(void *ctx, const char *opts, const char *key_val_sep, const char *pairs_sep)
Parse the key/value pairs list in opts.
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
#define FF_ARRAY_ELEMS(a)
const OptionDef options[]
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static const AVClass test_class
char * av_strdup(const char *s)
Duplicate the string s.
static const AVOption test_options[]
Describe the class of an AVClass context structure.
rational number numerator/denominator
static const char * test_get_name(void *ctx)
common internal and external API header