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
51565156
51575157 Blur the input video without impacting the outlines.
51585158
5159−This filter accepts parameters as a list of @var{key}=@var{value} pairs,
5160−separated by ":".
5161−
5162−If the key of the first options is omitted, the arguments are
5163−interpreted according to the syntax:
5164−@var{luma_radius}:@var{luma_strength}:@var{luma_threshold}[:@var{chroma_radius}:@var{chroma_strength}:@var{chroma_threshold}]
5165−
51665159 A description of the accepted options follows.
51675160
51685161 @table @option
51695162 @item luma_radius, lr
5170−@item chroma_radius, cr
5171−Set the luma/chroma radius. The option value must be a float number in
5163+Set the luma radius. The option value must be a float number in
51725164 the range [0.1,5.0] that specifies the variance of the gaussian filter
51735165 used to blur the image (slower if larger). Default value is 1.0.
51745166
51755167 @item luma_strength, ls
5176−@item chroma_strength, cs
5177−Set the luma/chroma strength. The option value must be a float number
5168+Set the luma strength. The option value must be a float number
51785169 in the range [-1.0,1.0] that configures the blurring. A value included
51795170 in [0.0,1.0] will blur the image whereas a value included in
51805171 [-1.0,0.0] will sharpen the image. Default value is 1.0.
51815172
51825173 @item luma_threshold, lt
5174+Set the luma threshold used as a coefficient to determine
5175+whether a pixel should be blurred or not. The option value must be an
5176+integer in the range [-30,30]. A value of 0 will filter all the image,
5177+a value included in [0,30] will filter flat areas and a value included
5178+in [-30,0] will filter edges. Default value is 0.
5179+
5180+@item chroma_radius, cr
5181+Set the chroma radius. The option value must be a float number in
5182+the range [0.1,5.0] that specifies the variance of the gaussian filter
5183+used to blur the image (slower if larger). Default value is 1.0.
5184+
5185+@item chroma_strength, cs
5186+Set the chroma strength. The option value must be a float number
5187+in the range [-1.0,1.0] that configures the blurring. A value included
5188+in [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+
51835191 @item chroma_threshold, ct
5184−Set the luma/chroma threshold used as a coefficient to determine
5192+Set the chroma threshold used as a coefficient to determine
51855193 whether a pixel should be blurred or not. The option value must be an
51865194 integer in the range [-30,30]. A value of 0 will filter all the image,
51875195 a 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
693693 !strcmp(filter->filter->name, "setpts" ) ||
694694 !strcmp(filter->filter->name, "showspectrum") ||
695695 !strcmp(filter->filter->name, "silencedetect") ||
696+ !strcmp(filter->filter->name, "smartblur") ||
696697 !strcmp(filter->filter->name, "subtitles") ||
697698 !strcmp(filter->filter->name, "thumbnail") ||
698699 // !strcmp(filter->filter->name, "scale" ) ||
libavfilter/vf_smartblur.c+0−1
@@ -307,5 +307,4 @@ AVFilter avfilter_vf_smartblur = { · 306 unmodified lines
307307 .inputs = smartblur_inputs,
308308 .outputs = smartblur_outputs,
309309 .priv_class = &smartblur_class,
310− .shorthand = shorthand,
311310 };

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