mirror of
https://github.com/videolan/vlc.git
synced 2025-01-10 09:48:21 +08:00
Patch from Cédric Cocquebert for sharpen filter.
This commit is contained in:
parent
9631abef89
commit
a900b500ae
2
THANKS
2
THANKS
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user