-#define SOUT_CFG_PREFIX "sout-mosaic-bridge-"
-
-vlc_module_begin();
- set_shortname( _( "Mosaic bridge" ) );
- set_description(_("Mosaic bridge stream output") );
- set_capability( "sout stream", 0 );
- add_shortcut( "mosaic-bridge" );
-
- add_string( SOUT_CFG_PREFIX "id", "Id", NULL, ID_TEXT, ID_LONGTEXT,
- VLC_FALSE );
- add_integer( SOUT_CFG_PREFIX "width", 0, NULL, WIDTH_TEXT,
- WIDTH_LONGTEXT, VLC_TRUE );
- add_integer( SOUT_CFG_PREFIX "height", 0, NULL, HEIGHT_TEXT,
- HEIGHT_LONGTEXT, VLC_TRUE );
- add_string( SOUT_CFG_PREFIX "sar", "1:1", NULL, RATIO_TEXT,
- RATIO_LONGTEXT, VLC_FALSE );
-
- set_callbacks( Open, Close );
-
- var_Create( p_module->p_libvlc_global, "mosaic-lock", VLC_VAR_MUTEX );
-vlc_module_end();
-
-static const char *ppsz_sout_options[] = {
- "id", "width", "height", "sar", NULL
+#define VFILTER_TEXT N_("Video filter")
+#define VFILTER_LONGTEXT N_( \
+ "Video filters will be applied to the video stream." )
+
+#define CHROMA_TEXT N_("Image chroma")
+#define CHROMA_LONGTEXT N_( \
+ "Force the use of a specific chroma. Use YUVA if you're planning " \
+ "to use the Alphamask or Bluescreen video filter." )
+
+#define ALPHA_TEXT N_("Transparency")
+#define ALPHA_LONGTEXT N_( \
+ "Transparency of the mosaic picture." )
+
+#define X_TEXT N_("X offset")
+#define X_LONGTEXT N_( \
+ "X coordinate of the upper left corner in the mosaic if non negative." )
+
+#define Y_TEXT N_("Y offset")
+#define Y_LONGTEXT N_( \
+ "Y coordinate of the upper left corner in the mosaic if non negative." )
+
+#define CFG_PREFIX "sout-mosaic-bridge-"
+
+vlc_module_begin ()
+ set_shortname( N_( "Mosaic bridge" ) )
+ set_description(N_("Mosaic bridge stream output") )
+ set_capability( "sout stream", 0 )
+ add_shortcut( "mosaic-bridge" )
+
+ add_string( CFG_PREFIX "id", "Id", NULL, ID_TEXT, ID_LONGTEXT,
+ false )
+ add_integer( CFG_PREFIX "width", 0, NULL, WIDTH_TEXT,
+ WIDTH_LONGTEXT, true )
+ add_integer( CFG_PREFIX "height", 0, NULL, HEIGHT_TEXT,
+ HEIGHT_LONGTEXT, true )
+ add_string( CFG_PREFIX "sar", "1:1", NULL, RATIO_TEXT,
+ RATIO_LONGTEXT, false )
+ add_string( CFG_PREFIX "chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT,
+ false )
+
+ add_module_list( CFG_PREFIX "vfilter", "video filter2",
+ NULL, NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
+
+ add_integer_with_range( CFG_PREFIX "alpha", 255, 0, 255, NULL,
+ ALPHA_TEXT, ALPHA_LONGTEXT, false )
+ add_integer( CFG_PREFIX "x", -1, NULL, X_TEXT, X_LONGTEXT, false )
+ add_integer( CFG_PREFIX "y", -1, NULL, Y_TEXT, Y_LONGTEXT, false )
+
+ set_callbacks( Open, Close )
+vlc_module_end ()
+
+static const char *const ppsz_sout_options[] = {
+ "id", "width", "height", "sar", "vfilter", "chroma", "alpha", "x", "y", NULL