00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include <stdlib.h>
00030 #include <string.h>
00031
00032 #include <vlc/vlc.h>
00033
00034
00035
00036
00037 extern int E_(Activate) ( vlc_object_t * );
00038 extern void E_(Deactivate) ( vlc_object_t * );
00039
00040
00041
00042
00043 #define ALT_FS_TEXT N_("Alternate fullscreen method")
00044 #define ALT_FS_LONGTEXT N_( \
00045 "There are two ways to make a fullscreen window, unfortunately each one " \
00046 "has its drawbacks.\n" \
00047 "1) Let the window manager handle your fullscreen window (default), but " \
00048 "things like taskbars will likely show on top of the video.\n" \
00049 "2) Completely bypass the window manager, but then nothing will be able " \
00050 "to show on top of the video.")
00051
00052 #define DISPLAY_TEXT N_("X11 display name")
00053 #define DISPLAY_LONGTEXT N_( \
00054 "Specify the X11 hardware display you want to use. By default VLC will " \
00055 "use the value of the DISPLAY environment variable.")
00056
00057 #define SHM_TEXT N_("Use shared memory")
00058 #define SHM_LONGTEXT N_( \
00059 "Use shared memory to communicate between VLC and the X server.")
00060
00061 #define SCREEN_TEXT N_("choose the screen to be used for fullscreen mode.")
00062 #define SCREEN_LONGTEXT N_( \
00063 "Choose the screen you want to use in fullscreen mode. For instance " \
00064 "set it to 0 for first screen, 1 for the second.")
00065
00066 vlc_module_begin();
00067 set_shortname( "X11" );
00068 set_category( CAT_VIDEO );
00069 set_subcategory( SUBCAT_VIDEO_VOUT );
00070 add_string( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
00071 add_bool( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, VLC_TRUE );
00072 #ifdef HAVE_SYS_SHM_H
00073 add_bool( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT, VLC_TRUE );
00074 #endif
00075 #ifdef HAVE_XINERAMA
00076 add_integer ( "x11-xineramascreen", 0, NULL, SCREEN_TEXT, SCREEN_LONGTEXT, VLC_TRUE );
00077 #endif
00078 set_description( _("X11 video output") );
00079 set_capability( "video output", 70 );
00080 set_callbacks( E_(Activate), E_(Deactivate) );
00081 vlc_module_end();
00082