You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
lavfi: add priv class to filter definitions and flags to filter internal options
This allows the iteration callbacks to discover the internal class and options, and show them when required.
This commit is contained in:
@@ -68,11 +68,12 @@ typedef struct ChannelMapContext {
|
||||
|
||||
#define OFFSET(x) offsetof(ChannelMapContext, x)
|
||||
#define A AV_OPT_FLAG_AUDIO_PARAM
|
||||
#define F AV_OPT_FLAG_FILTERING_PARAM
|
||||
static const AVOption options[] = {
|
||||
{ "map", "A comma-separated list of input channel numbers in output order.",
|
||||
OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A },
|
||||
OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A|F },
|
||||
{ "channel_layout", "Output channel layout.",
|
||||
OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, .flags = A },
|
||||
OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, .flags = A|F },
|
||||
{ NULL },
|
||||
};
|
||||
|
||||
@@ -400,4 +401,5 @@ AVFilter avfilter_af_channelmap = {
|
||||
.outputs = (const AVFilterPad[]) {{ .name = "default",
|
||||
.type = AVMEDIA_TYPE_AUDIO },
|
||||
{ .name = NULL }},
|
||||
.priv_class = &channelmap_class,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user