#define CFG_PREFIX "panoramix-"
+#define PANORAMIX_HELP N_("Split the video in multiple windows to " \
+ "display on a wall of screens")
+
static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
vlc_module_begin()
set_description( N_("Panoramix: wall with overlap video filter") )
set_shortname( N_("Panoramix" ))
+ set_help(PANORAMIX_HELP)
set_capability( "video splitter", 0 )
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
#define ATTENUATION_TEXT N_("Attenuation")
#define ATTENUATION_LONGTEXT N_("Check this option if you want attenuate blended zone by this plug-in (if option is unchecked, attenuate is made by opengl)")
- add_bool( CFG_PREFIX "attenuate", 1, NULL, ATTENUATION_TEXT, ATTENUATION_LONGTEXT, false )
+ add_bool( CFG_PREFIX "attenuate", true, NULL, ATTENUATION_TEXT, ATTENUATION_LONGTEXT, false )
#define BEGIN_TEXT N_("Attenuation, begin (in %)")
#define BEGIN_LONGTEXT N_("Select in percent the Lagrange coeff of the beginning blended zone")
add_integer_with_range( CFG_PREFIX "bz-whitelevel-green", 0, 0, 255, NULL, GGAMMA_WL_TEXT, GGAMMA_WL_LONGTEXT, true )
add_integer_with_range( CFG_PREFIX "bz-whitelevel-blue", 0, 0, 255, NULL, BGAMMA_WL_TEXT, BGAMMA_WL_LONGTEXT, true )
#ifndef WIN32
- add_deprecated_alias( CFG_PREFIX "xinerama" );
+ add_obsolete_bool( CFG_PREFIX "xinerama" );
#endif
- add_deprecated_alias( CFG_PREFIX "offset-x" )
+ add_obsolete_bool( CFG_PREFIX "offset-x" )
#endif
add_string( CFG_PREFIX "active", NULL, NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT, true )
#ifndef WIN32
/* Get the number of outputs */
-static unsigned CountMonitors (vlc_object_t *obj)
+static unsigned CountMonitors( vlc_object_t *obj )
{
char *psz_display = var_CreateGetNonEmptyString( obj, "x11-display" );
int snum;
xcb_connection_t *conn = xcb_connect( psz_display, &snum );
+ free( psz_display );
if( xcb_connection_has_error( conn ) )
return 0;
for( xcb_screen_iterator_t i = xcb_setup_roots_iterator( setup );
i.rem > 0; xcb_screen_next( &i ) )
{
- if (snum == 0)
+ if( snum == 0 )
{
scr = i.data;
break;