# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_vout.h>
#include "vlc_filter.h"
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- set_description( _("Bluescreen video filter") );
- set_shortname( _("Bluescreen" ));
+ set_description( N_("Bluescreen video filter") );
+ set_shortname( N_("Bluescreen" ));
set_help( BLUESCREEN_HELP );
set_category( CAT_VIDEO );
set_subcategory( SUBCAT_VIDEO_VFILTER );
false );
vlc_module_end();
-static const char *ppsz_filter_options[] = {
+static const char *const ppsz_filter_options[] = {
"u", "v", "ut", "vt", NULL
};
/* Allocate structure */
p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
if( p_filter->p_sys == NULL )
- {
- msg_Err( p_filter, "out of memory" );
return VLC_ENOMEM;
- }
p_sys = p_filter->p_sys;
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
}
}
/* Gaussian convolution to make it look cleaner */
- p_filter->p_libvlc->pf_memset( p_a, 0, 2 * i_pitch );
+ vlc_memset( p_a, 0, 2 * i_pitch );
for( i = 2; i < i_lines - 2; i++ )
{
p_a[i*i_pitch] = 0x00;