#include <vlc_plugin.h>
#include <vlc_sout.h>
-#include "vlc_filter.h"
+#include <vlc_filter.h>
#include "filter_picture.h"
enum { GRADIENT, EDGE, HOUGH };
#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") };
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 )
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" )
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;
}