[vlc-commits] sharpen: use single precision
Rémi Denis-Courmont
git at videolan.org
Wed Aug 13 22:23:09 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 23:14:11 2014 +0300| [261a6537e7a31baa3118d4685b1ac05c29484d48] | committer: Rémi Denis-Courmont
sharpen: use single precision
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=261a6537e7a31baa3118d4685b1ac05c29484d48
---
modules/video_filter/gradfun.c | 2 +-
modules/video_filter/sharpen.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_filter/gradfun.c b/modules/video_filter/gradfun.c
index 4665fe9..ecb8f8b 100644
--- a/modules/video_filter/gradfun.c
+++ b/modules/video_filter/gradfun.c
@@ -49,7 +49,7 @@ static void Close(vlc_object_t *);
#define RADIUS_TEXT N_("Radius")
#define RADIUS_LONGTEXT N_("Radius in pixels")
-#define STRENGTH_MIN (0.51)
+#define STRENGTH_MIN (0.51f)
#define STRENGTH_MAX (255)
#define STRENGTH_TEXT N_("Strength")
#define STRENGTH_LONGTEXT N_("Strength used to modify the value of a pixel")
diff --git a/modules/video_filter/sharpen.c b/modules/video_filter/sharpen.c
index 8714673..499358e 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -243,7 +243,7 @@ static int SharpenCallback( vlc_object_t *p_this, char const *psz_var,
filter_sys_t *p_sys = (filter_sys_t *)p_data;
vlc_mutex_lock( &p_sys->lock );
- init_precalc_table( p_sys, VLC_CLIP( newval.f_float, 0., 2. ) );
+ init_precalc_table( p_sys, VLC_CLIP( newval.f_float, 0.f, 2.f ) );
vlc_mutex_unlock( &p_sys->lock );
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list