X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fgradient.c;h=b0585dcdb2a39a5b81f2fe29b116ce55787c8d4b;hb=8fa5fb96f4d878f807ccddb39ff5388689b1a2a3;hp=fd3baa0551a1d22e23f12d2d13212e983fc1ff86;hpb=c5c06b64c806052086e5772d64e540a8db7e4a9b;p=vlc diff --git a/modules/video_filter/gradient.c b/modules/video_filter/gradient.c index fd3baa0551..b0585dcdb2 100644 --- a/modules/video_filter/gradient.c +++ b/modules/video_filter/gradient.c @@ -36,7 +36,7 @@ #include #include -#include "vlc_filter.h" +#include #include "filter_picture.h" enum { GRADIENT, EDGE, HOUGH }; @@ -70,6 +70,8 @@ static void FilterHough ( filter_t *, picture_t *, picture_t * ); #define CARTOON_LONGTEXT N_("Apply cartoon effect. It is only used by " \ "\"gradient\" and \"edge\".") +#define GRADIENT_HELP N_("Apply color gradient or edge detection effects") + static const char *const mode_list[] = { "gradient", "edge", "hough" }; static const char *const mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Hough") }; @@ -78,6 +80,7 @@ static const char *const mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Ho vlc_module_begin () set_description( N_("Gradient video filter") ) set_shortname( N_( "Gradient" )) + set_help(GRADIENT_HELP) set_capability( "video filter2", 0 ) set_category( CAT_VIDEO ) set_subcategory( SUBCAT_VIDEO_VFILTER ) @@ -88,7 +91,7 @@ vlc_module_begin () add_integer_with_range( FILTER_PREFIX "type", 0, 0, 1, NULL, GRADIENT_TEXT, GRADIENT_LONGTEXT, false ) - add_bool( FILTER_PREFIX "cartoon", 1, NULL, + add_bool( FILTER_PREFIX "cartoon", true, NULL, CARTOON_TEXT, CARTOON_LONGTEXT, false ) add_shortcut( "gradient" ) @@ -138,7 +141,7 @@ static int Create( vlc_object_t *p_this ) break; default: - msg_Err( p_filter, "Unsupported input chroma (%4s)", + msg_Err( p_filter, "Unsupported input chroma (%4.4s)", (char*)&(p_filter->fmt_in.video.i_chroma) ); return VLC_EGENERIC; }