Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a0dbb73f
Commit
a0dbb73f
authored
Aug 22, 2015
by
Kaarlo Räihä
Committed by
Jean-Baptiste Kempf
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit sigma range in gaussian blur
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4d36414a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/video_filter/gaussianblur.c
modules/video_filter/gaussianblur.c
+7
-3
No files found.
modules/video_filter/gaussianblur.c
View file @
a0dbb73f
...
...
@@ -44,6 +44,9 @@
static
int
Create
(
vlc_object_t
*
);
static
void
Destroy
(
vlc_object_t
*
);
#define SIGMA_MIN (0.01)
#define SIGMA_MAX (4096.0)
#define SIGMA_TEXT N_("Gaussian's std deviation")
#define SIGMA_LONGTEXT N_( \
"Gaussian's standard deviation. The blurring will take " \
...
...
@@ -61,8 +64,9 @@ vlc_module_begin ()
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VFILTER
)
add_float
(
FILTER_PREFIX
"sigma"
,
2
.,
SIGMA_TEXT
,
SIGMA_LONGTEXT
,
false
)
add_float_with_range
(
FILTER_PREFIX
"sigma"
,
2
.,
SIGMA_MIN
,
SIGMA_MAX
,
SIGMA_TEXT
,
SIGMA_LONGTEXT
,
false
)
set_callbacks
(
Create
,
Destroy
)
vlc_module_end
()
...
...
@@ -159,7 +163,7 @@ static int Create( vlc_object_t *p_this )
var_CreateGetFloat
(
p_filter
,
FILTER_PREFIX
"sigma"
);
if
(
p_filter
->
p_sys
->
f_sigma
<=
0
.
)
{
msg_Err
(
p_filter
,
"sigma must be
positive
"
);
msg_Err
(
p_filter
,
"sigma must be
greater than zero
"
);
return
VLC_EGENERIC
;
}
gaussianblur_InitDistribution
(
p_filter
->
p_sys
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment