Commit a900b500 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Patch from Cédric Cocquebert for sharpen filter.

parent 9631abef
......@@ -37,7 +37,7 @@ Brieuc Jeunhomme <bbp at via.ecp.fr> - bug fixes
Bruno Vella <allevb at tin.it> - Italian localization
Carlo Calabrò <murray at via.ecp.fr> - Italian localization
Carsten Gottbehüt <gottbehuet at active-elements dot de> - v4l hotplug fix
Cédric Cocquebert - Misc opengl effects for the OpenGL Video Output. "Panoramix" video filter for image walls with automatic attenuation
Cédric Cocquebert - Misc opengl effects for the OpenGL Video Output. "Panoramix" video filter for image walls with automatic attenuation. Fix on sharpen filter.
Chris Clepper - OpenGL fix
Christian Henz - libupnp service discovery plugin, CyberLink UPnP fixes
Christof Baumgaertner - dbox web intf
......
......@@ -51,6 +51,8 @@ static void Destroy ( vlc_object_t * );
static picture_t *Filter( filter_t *, picture_t * );
#define FILTER_PREFIX "sharpen-"
/*****************************************************************************
* Module descriptor
*****************************************************************************/
......@@ -66,6 +68,10 @@ vlc_module_begin();
set_callbacks( Create, Destroy );
vlc_module_end();
static const char *ppsz_filter_options[] = {
"sigma", NULL
};
/*****************************************************************************
* filter_sys_t: Sharpen video filter descriptor
*****************************************************************************
......@@ -105,7 +111,13 @@ static int Create( vlc_object_t *p_this )
p_filter->pf_video_filter = Filter;
p_filter->p_sys->f_sigma = var_GetFloat(p_this, "sharpen-sigma");
config_ChainParse( p_filter, FILTER_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
var_Create( p_filter, FILTER_PREFIX "sigma",
VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
p_filter->p_sys->f_sigma = var_GetFloat(p_this, FILTER_PREFIX "sigma");
return VLC_SUCCESS;
}
......
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