History

lavfi/sine: switch to an AVOptions-based system.

Clément Bœsch committed 13 years ago

Commit bca4caf1 parent 9ceb7bd3 files · +2 −8Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −5
  2. libavfilter/asrc_sine.c +0 −3
  3. libavfilter/avfilter.c +1 −0
doc/filters.texi+1−5
@@ -1688,11 +1688,7 @@ Generate an audio signal made of a sine wave with amplitude 1/8. · 1687 unmodified lines
16881688
16891689 The audio signal is bit-exact.
16901690
1691−It accepts a list of options in the form of @var{key}=@var{value} pairs
1692−separated by ":". If the option name is omitted, the first option is the
1693−frequency and the second option is the beep factor.
1694−
1695−The supported options are:
1691+The filter accepts the following options:
16961692
16971693 @table @option
16981694
libavfilter/asrc_sine.c+0−3
@@ -210,8 +210,6 @@ static const AVFilterPad sine_outputs[] = { · 209 unmodified lines
210210 { NULL }
211211 };
212212
213−static const char *const shorthand[] = { "frequency", "beep_factor", NULL };
214−
215213 AVFilter avfilter_asrc_sine = {
216214 .name = "sine",
217215 .description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."),
@@ -222,5 +220,4 @@ AVFilter avfilter_asrc_sine = { · 4 unmodified lines
222220 .inputs = NULL,
223221 .outputs = sine_outputs,
224222 .priv_class = &sine_class,
225− .shorthand = shorthand,
226223 };
libavfilter/avfilter.c+1−0
@@ -752,6 +752,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 751 unmodified lines
752752 !strcmp(filter->filter->name, "settb" ) ||
753753 !strcmp(filter->filter->name, "showspectrum") ||
754754 !strcmp(filter->filter->name, "silencedetect") ||
755+ !strcmp(filter->filter->name, "sine" ) ||
755756 !strcmp(filter->filter->name, "smartblur") ||
756757 !strcmp(filter->filter->name, "split" ) ||
757758 !strcmp(filter->filter->name, "stereo3d" ) ||

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