Go to the documentation of this file.
48 #define OFFSET(x) offsetof(AFormatContext, x)
49 #define A AV_OPT_FLAG_AUDIO_PARAM
50 #define F AV_OPT_FLAG_FILTERING_PARAM
56 {
"channel_layouts",
"A '|'-separated list of channel layouts.",
OFFSET(channel_layouts_str),
AV_OPT_TYPE_STRING, .flags =
A|
F },
63 #define PARSE_FORMATS(str, type, list, add_to_list, get_fmt, none, desc) \
65 char *next, *cur = str, sep; \
68 if (str && strchr(str, ',')) { \
69 av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use '|' to "\
70 "separate %s.\n", desc); \
77 next = strchr(cur, sep); \
81 if ((fmt = get_fmt(cur)) == none) { \
82 av_log(ctx, AV_LOG_ERROR, "Error parsing " desc ": %s.\n", cur);\
83 return AVERROR(EINVAL); \
85 if ((ret = add_to_list(&list, fmt)) < 0) { \
95 int ret = strtol(samplerate,
NULL, 0);
135 s->sample_rates =
NULL;
140 s->channel_layouts =
NULL;
160 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input audio to one of the specified formats."),
164 .priv_class = &aformat_class,
A list of supported channel layouts.
#define FILTER_QUERY_FUNC(func)
AVFilterChannelLayouts * channel_layouts
uint64_t av_get_channel_layout(const char *name)
Return a channel layout id that matches name, or 0 if no match is found.
const char * name
Filter name.
A filter pad used for either input or output.
#define FILTER_INPUTS(array)
char * channel_layouts_str
Describe the class of an AVClass context structure.
AVFilterFormats * sample_rates
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
enum AVSampleFormat av_get_sample_fmt(const char *name)
Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error.
AVSampleFormat
Audio sample formats.
const char * name
Pad name.
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
#define FILTER_OUTPUTS(array)
#define flags(name, subs,...)
AVFilterFormats * formats