History

lavfi/smartblur: switch to AVOption-based system

Stefano Sabatini committed 13 years ago

Commit 2ffee3e1 parent f42635a3 files · +21 −13Browse files

Unified · Split

3 files
  1. doc/filters.texi +20 −12
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vf_smartblur.c +0 −1
doc/filters.texi+20−12
@@ -5156,32 +5156,40 @@ expressed in the form "[@var{c0} @var{c1} @var{c2} @var{c3}]" · 5155 unmodified lines
5156 5156
5157Blur the input video without impacting the outlines.5157Blur the input video without impacting the outlines.
5158 5158
5159This filter accepts parameters as a list of @var{key}=@var{value} pairs,
5160separated by ":".
5161
5162If the key of the first options is omitted, the arguments are
5163interpreted according to the syntax:
5164@var{luma_radius}:@var{luma_strength}:@var{luma_threshold}[:@var{chroma_radius}:@var{chroma_strength}:@var{chroma_threshold}]
5165
5166A description of the accepted options follows.5159A description of the accepted options follows.
5167 5160
5168@table @option5161@table @option
5169@item luma_radius, lr5162@item luma_radius, lr
5170@item chroma_radius, cr5163Set the luma radius. The option value must be a float number in
5171Set the luma/chroma radius. The option value must be a float number in
5172the range [0.1,5.0] that specifies the variance of the gaussian filter5164the range [0.1,5.0] that specifies the variance of the gaussian filter
5173used to blur the image (slower if larger). Default value is 1.0.5165used to blur the image (slower if larger). Default value is 1.0.
5174 5166
5175@item luma_strength, ls5167@item luma_strength, ls
5176@item chroma_strength, cs5168Set the luma strength. The option value must be a float number
5177Set the luma/chroma strength. The option value must be a float number
5178in the range [-1.0,1.0] that configures the blurring. A value included5169in the range [-1.0,1.0] that configures the blurring. A value included
5179in [0.0,1.0] will blur the image whereas a value included in5170in [0.0,1.0] will blur the image whereas a value included in
5180[-1.0,0.0] will sharpen the image. Default value is 1.0.5171[-1.0,0.0] will sharpen the image. Default value is 1.0.
5181 5172
5182@item luma_threshold, lt5173@item luma_threshold, lt
5174Set the luma threshold used as a coefficient to determine
5175whether a pixel should be blurred or not. The option value must be an
5176integer in the range [-30,30]. A value of 0 will filter all the image,
5177a value included in [0,30] will filter flat areas and a value included
5178in [-30,0] will filter edges. Default value is 0.
5179
5180@item chroma_radius, cr
5181Set the chroma radius. The option value must be a float number in
5182the range [0.1,5.0] that specifies the variance of the gaussian filter
5183used to blur the image (slower if larger). Default value is 1.0.
5184
5185@item chroma_strength, cs
5186Set the chroma strength. The option value must be a float number
5187in the range [-1.0,1.0] that configures the blurring. A value included
5188in [0.0,1.0] will blur the image whereas a value included in
5189[-1.0,0.0] will sharpen the image. Default value is 1.0.
5190
5183@item chroma_threshold, ct5191@item chroma_threshold, ct
5184Set the luma/chroma threshold used as a coefficient to determine5192Set the chroma threshold used as a coefficient to determine
5185whether a pixel should be blurred or not. The option value must be an5193whether a pixel should be blurred or not. The option value must be an
5186integer in the range [-30,30]. A value of 0 will filter all the image,5194integer in the range [-30,30]. A value of 0 will filter all the image,
5187a value included in [0,30] will filter flat areas and a value included5195a value included in [0,30] will filter flat areas and a value included
libavfilter/avfilter.c+1−0
@@ -693,6 +693,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 692 unmodified lines
693 !strcmp(filter->filter->name, "setpts" ) ||693 !strcmp(filter->filter->name, "setpts" ) ||
694 !strcmp(filter->filter->name, "showspectrum") ||694 !strcmp(filter->filter->name, "showspectrum") ||
695 !strcmp(filter->filter->name, "silencedetect") ||695 !strcmp(filter->filter->name, "silencedetect") ||
696 !strcmp(filter->filter->name, "smartblur") ||
696 !strcmp(filter->filter->name, "subtitles") ||697 !strcmp(filter->filter->name, "subtitles") ||
697 !strcmp(filter->filter->name, "thumbnail") ||698 !strcmp(filter->filter->name, "thumbnail") ||
698// !strcmp(filter->filter->name, "scale" ) ||699// !strcmp(filter->filter->name, "scale" ) ||
libavfilter/vf_smartblur.c+0−1
@@ -307,5 +307,4 @@ AVFilter avfilter_vf_smartblur = { · 306 unmodified lines
307 .inputs = smartblur_inputs,307 .inputs = smartblur_inputs,
308 .outputs = smartblur_outputs,308 .outputs = smartblur_outputs,
309 .priv_class = &smartblur_class,309 .priv_class = &smartblur_class,
310 .shorthand = shorthand,
311};310};

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