History

avfilter/af_acrossover: document roll-off of each filter order

Paul B Mahol committed 5 years ago

Commit 0a5ff191 parent ba6e2a22 files · +24 −12Browse files

Unified · Split

2 files
  1. doc/filters.texi +13 −1
  2. libavfilter/af_acrossover.c +11 −11
doc/filters.texi+13−1
@@ -523,19 +523,31 @@ The filter accepts the following options: · 522 unmodified lines
523Set split frequencies. Those must be positive and increasing.523Set split frequencies. Those must be positive and increasing.
524 524
525@item order525@item order
526Set filter order. Available values are:526Set filter order for each band split. This controls filter roll-off or steepness
527of filter transfer function.
528Available values are:
527 529
528@table @samp530@table @samp
529@item 2nd531@item 2nd
53212 dB per octave.
530@item 4th533@item 4th
53424 dB per octave.
531@item 6th535@item 6th
53636 dB per octave.
532@item 8th537@item 8th
53848 dB per octave.
533@item 10th539@item 10th
54060 dB per octave.
534@item 12th541@item 12th
54272 dB per octave.
535@item 14th543@item 14th
54484 dB per octave.
536@item 16th545@item 16th
54696 dB per octave.
537@item 18th547@item 18th
548108 dB per octave.
538@item 20th549@item 20th
550120 dB per octave.
539@end table551@end table
540 552
541Default is @var{4th}.553Default is @var{4th}.
libavfilter/af_acrossover.c+11−11
@@ -83,17 +83,17 @@ typedef struct AudioCrossoverContext { · 82 unmodified lines
83 83
84static const AVOption acrossover_options[] = {84static const AVOption acrossover_options[] = {
85 { "split", "set split frequencies", OFFSET(splits_str), AV_OPT_TYPE_STRING, {.str="500"}, 0, 0, AF },85 { "split", "set split frequencies", OFFSET(splits_str), AV_OPT_TYPE_STRING, {.str="500"}, 0, 0, AF },
86 { "order", "set order", OFFSET(order_opt), AV_OPT_TYPE_INT, {.i64=1}, 0, 9, AF, "m" },86 { "order", "set filter order", OFFSET(order_opt), AV_OPT_TYPE_INT, {.i64=1}, 0, 9, AF, "m" },
87 { "2nd", "2nd order", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, AF, "m" },87 { "2nd", "2nd order (12 dB/8ve)", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, AF, "m" },
88 { "4th", "4th order", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, AF, "m" },88 { "4th", "4th order (24 dB/8ve)", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, AF, "m" },
89 { "6th", "6th order", 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, AF, "m" },89 { "6th", "6th order (36 dB/8ve)", 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, AF, "m" },
90 { "8th", "8th order", 0, AV_OPT_TYPE_CONST, {.i64=3}, 0, 0, AF, "m" },90 { "8th", "8th order (48 dB/8ve)", 0, AV_OPT_TYPE_CONST, {.i64=3}, 0, 0, AF, "m" },
91 { "10th", "10th order", 0, AV_OPT_TYPE_CONST, {.i64=4}, 0, 0, AF, "m" },91 { "10th", "10th order (60 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=4}, 0, 0, AF, "m" },
92 { "12th", "12th order", 0, AV_OPT_TYPE_CONST, {.i64=5}, 0, 0, AF, "m" },92 { "12th", "12th order (72 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=5}, 0, 0, AF, "m" },
93 { "14th", "14th order", 0, AV_OPT_TYPE_CONST, {.i64=6}, 0, 0, AF, "m" },93 { "14th", "14th order (84 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=6}, 0, 0, AF, "m" },
94 { "16th", "16th order", 0, AV_OPT_TYPE_CONST, {.i64=7}, 0, 0, AF, "m" },94 { "16th", "16th order (96 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=7}, 0, 0, AF, "m" },
95 { "18th", "18th order", 0, AV_OPT_TYPE_CONST, {.i64=8}, 0, 0, AF, "m" },95 { "18th", "18th order (108 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=8}, 0, 0, AF, "m" },
96 { "20th", "20th order", 0, AV_OPT_TYPE_CONST, {.i64=9}, 0, 0, AF, "m" },96 { "20th", "20th order (120 dB/8ve)",0, AV_OPT_TYPE_CONST, {.i64=9}, 0, 0, AF, "m" },
97 { "level", "set input gain", OFFSET(level_in), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AF },97 { "level", "set input gain", OFFSET(level_in), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AF },
98 { NULL }98 { NULL }
99};99};

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