History

Merge commit '7cdd737ba81b5c2c9521c4509edf0ac315fabc65'

* commit '7cdd737ba81b5c2c9521c4509edf0ac315fabc65': lavfi: mark filters with dynamic number of inputs or outputs with special flags

Michael Niedermayer committed 13 years ago

Commit 16fc24b2 parents 46de9ba 7cdd7376 files · +29 −0Browse files

Unified · Split

6 files
  1. doc/APIchanges +1 −0
  2. libavfilter/af_amix.c +2 −0
  3. libavfilter/af_channelsplit.c +2 −0
  4. libavfilter/af_join.c +2 −0
  5. libavfilter/avfilter.h +18 −0
  6. libavfilter/split.c +4 −0
doc/APIchanges+1−0
@@ -169,6 +169,7 @@ API changes, most recent first: · 168 unmodified lines
169169 filter.
170170 Add avfilter_init_str(), deprecate avfilter_init_filter().
171171 Add avfilter_init_dict().
172+ Add AVFilter.flags field and AVFILTER_FLAG_DYNAMIC_{INPUTS,OUTPUTS} flags.
172173
173174 2013-xx-xx - lavfi 3.7.0 - avfilter.h
174175 Add AVFilter.priv_class for exporting filter options through the AVOptions API
libavfilter/af_amix.c+2−0
@@ -557,4 +557,6 @@ AVFilter avfilter_af_amix = { · 556 unmodified lines
557557
558558 .inputs = NULL,
559559 .outputs = avfilter_af_amix_outputs,
560+
561+ .flags = AVFILTER_FLAG_DYNAMIC_INPUTS,
560562 };
libavfilter/af_channelsplit.c+2−0
@@ -146,4 +146,6 @@ AVFilter avfilter_af_channelsplit = { · 145 unmodified lines
146146
147147 .inputs = avfilter_af_channelsplit_inputs,
148148 .outputs = NULL,
149+
150+ .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS,
149151 };
libavfilter/af_join.c+2−0
@@ -525,4 +525,6 @@ AVFilter avfilter_af_join = { · 524 unmodified lines
525525
526526 .inputs = NULL,
527527 .outputs = avfilter_af_join_outputs,
528+
529+ .flags = AVFILTER_FLAG_DYNAMIC_INPUTS,
528530 };
libavfilter/avfilter.h+18−0
@@ -410,6 +410,19 @@ const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx); · 409 unmodified lines
410410 */
411411 enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx);
412412
413+/**
414+ * The number of the filter inputs is not determined just by AVFilter.inputs.
415+ * The filter might add additional inputs during initialization depending on the
416+ * options supplied to it.
417+ */
418+#define AVFILTER_FLAG_DYNAMIC_INPUTS (1 << 0)
419+/**
420+ * The number of the filter outputs is not determined just by AVFilter.outputs.
421+ * The filter might add additional outputs during initialization depending on
422+ * the options supplied to it.
423+ */
424+#define AVFILTER_FLAG_DYNAMIC_OUTPUTS (1 << 1)
425+
413426 /**
414427 * Filter definition. This defines the pads a filter contains, and all the
415428 * callback functions used to interact with the filter.
@@ -432,6 +445,11 @@ typedef struct AVFilter { · 16 unmodified lines
432445 */
433446 const AVClass *priv_class;
434447
448+ /**
449+ * A combination of AVFILTER_FLAG_*
450+ */
451+ int flags;
452+
435453 /*****************************************************************
436454 * All fields below this line are not part of the public API. They
437455 * may not be used outside of libavfilter and can be changed and
libavfilter/split.c+4−0
@@ -133,6 +133,8 @@ AVFilter avfilter_vf_split = { · 132 unmodified lines
133133
134134 .inputs = avfilter_vf_split_inputs,
135135 .outputs = NULL,
136+
137+ .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS,
136138 };
137139
138140 static const AVFilterPad avfilter_af_asplit_inputs[] = {
@@ -157,4 +159,6 @@ AVFilter avfilter_af_asplit = { · 18 unmodified lines
157159
158160 .inputs = avfilter_af_asplit_inputs,
159161 .outputs = NULL,
162+
163+ .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS,
160164 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t