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
1688 1688
1689The audio signal is bit-exact.1689The audio signal is bit-exact.
1690 1690
1691It accepts a list of options in the form of @var{key}=@var{value} pairs1691The filter accepts the following options:
1692separated by ":". If the option name is omitted, the first option is the
1693frequency and the second option is the beep factor.
1694
1695The supported options are:
1696 1692
1697@table @option1693@table @option
1698 1694
libavfilter/asrc_sine.c+0−3
@@ -210,8 +210,6 @@ static const AVFilterPad sine_outputs[] = { · 209 unmodified lines
210 { NULL }210 { NULL }
211};211};
212 212
213static const char *const shorthand[] = { "frequency", "beep_factor", NULL };
214
215AVFilter avfilter_asrc_sine = {213AVFilter avfilter_asrc_sine = {
216 .name = "sine",214 .name = "sine",
217 .description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."),215 .description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."),
@@ -222,5 +220,4 @@ AVFilter avfilter_asrc_sine = { · 4 unmodified lines
222 .inputs = NULL,220 .inputs = NULL,
223 .outputs = sine_outputs,221 .outputs = sine_outputs,
224 .priv_class = &sine_class,222 .priv_class = &sine_class,
225 .shorthand = shorthand,
226};223};
libavfilter/avfilter.c+1−0
@@ -752,6 +752,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 751 unmodified lines
752 !strcmp(filter->filter->name, "settb" ) ||752 !strcmp(filter->filter->name, "settb" ) ||
753 !strcmp(filter->filter->name, "showspectrum") ||753 !strcmp(filter->filter->name, "showspectrum") ||
754 !strcmp(filter->filter->name, "silencedetect") ||754 !strcmp(filter->filter->name, "silencedetect") ||
755 !strcmp(filter->filter->name, "sine" ) ||
755 !strcmp(filter->filter->name, "smartblur") ||756 !strcmp(filter->filter->name, "smartblur") ||
756 !strcmp(filter->filter->name, "split" ) ||757 !strcmp(filter->filter->name, "split" ) ||
757 !strcmp(filter->filter->name, "stereo3d" ) ||758 !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