Commit 8007e8fc authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_afir: fix minp/maxp range and change default value for maxp

parent c343e81f
...@@ -1232,12 +1232,12 @@ Set video stream frame rate. This option is used only when @var{response} is ena ...@@ -1232,12 +1232,12 @@ Set video stream frame rate. This option is used only when @var{response} is ena
@item minp @item minp
Set minimal partition size used for convolution. Default is @var{16}. Set minimal partition size used for convolution. Default is @var{16}.
Allowed range is from @var{16} to @var{65536}. Allowed range is from @var{16} to @var{32768}.
Lower values decreases latency at cost of higher CPU usage. Lower values decreases latency at cost of higher CPU usage.
@item maxp @item maxp
Set maximal partition size used for convolution. Default is @var{65536}. Set maximal partition size used for convolution. Default is @var{8192}.
Allowed range is from @var{16} to @var{65536}. Allowed range is from @var{16} to @var{32768}.
Lower values decreases latency at cost of higher CPU usage. Lower values decreases latency at cost of higher CPU usage.
@end table @end table
......
...@@ -735,8 +735,8 @@ static const AVOption afir_options[] = { ...@@ -735,8 +735,8 @@ static const AVOption afir_options[] = {
{ "channel", "set IR channel to display frequency response", OFFSET(ir_channel), AV_OPT_TYPE_INT, {.i64=0}, 0, 1024, VF }, { "channel", "set IR channel to display frequency response", OFFSET(ir_channel), AV_OPT_TYPE_INT, {.i64=0}, 0, 1024, VF },
{ "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "hd720"}, 0, 0, VF }, { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "hd720"}, 0, 0, VF },
{ "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT32_MAX, VF }, { "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT32_MAX, VF },
{ "minp", "set min partition size", OFFSET(minp), AV_OPT_TYPE_INT, {.i64=16}, 16, 65536, AF }, { "minp", "set min partition size", OFFSET(minp), AV_OPT_TYPE_INT, {.i64=16}, 16, 32768, AF },
{ "maxp", "set max partition size", OFFSET(maxp), AV_OPT_TYPE_INT, {.i64=65536}, 16, 65536, AF }, { "maxp", "set max partition size", OFFSET(maxp), AV_OPT_TYPE_INT, {.i64=8192}, 16, 32768, AF },
{ NULL } { NULL }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment