| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
#ifdef HAVE_CONFIG_H |
|---|
| 31 |
# include "config.h" |
|---|
| 32 |
#endif |
|---|
| 33 |
|
|---|
| 34 |
#include <vlc_common.h> |
|---|
| 35 |
#include <vlc_plugin.h> |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
extern int Activate ( vlc_object_t * ); |
|---|
| 41 |
extern void Deactivate ( vlc_object_t * ); |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
#define ALT_FS_TEXT N_("Alternate fullscreen method") |
|---|
| 47 |
#define ALT_FS_LONGTEXT N_( \ |
|---|
| 48 |
"There are two ways to make a fullscreen window, unfortunately each one " \ |
|---|
| 49 |
"has its drawbacks.\n" \ |
|---|
| 50 |
"1) Let the window manager handle your fullscreen window (default), but " \ |
|---|
| 51 |
"things like taskbars will likely show on top of the video.\n" \ |
|---|
| 52 |
"2) Completely bypass the window manager, but then nothing will be able " \ |
|---|
| 53 |
"to show on top of the video.") |
|---|
| 54 |
|
|---|
| 55 |
#define DISPLAY_TEXT N_("X11 display") |
|---|
| 56 |
#define DISPLAY_LONGTEXT N_( \ |
|---|
| 57 |
"X11 hardware display to use. By default VLC will " \ |
|---|
| 58 |
"use the value of the DISPLAY environment variable.") |
|---|
| 59 |
|
|---|
| 60 |
#define SHM_TEXT N_("Use shared memory") |
|---|
| 61 |
#define SHM_LONGTEXT N_( \ |
|---|
| 62 |
"Use shared memory to communicate between VLC and the X server.") |
|---|
| 63 |
|
|---|
| 64 |
#define SCREEN_TEXT N_("Screen for fullscreen mode.") |
|---|
| 65 |
#define SCREEN_LONGTEXT N_( \ |
|---|
| 66 |
"Screen to use in fullscreen mode. For instance " \ |
|---|
| 67 |
"set it to 0 for first screen, 1 for the second.") |
|---|
| 68 |
|
|---|
| 69 |
vlc_module_begin(); |
|---|
| 70 |
set_shortname( "X11" ); |
|---|
| 71 |
set_category( CAT_VIDEO ); |
|---|
| 72 |
set_subcategory( SUBCAT_VIDEO_VOUT ); |
|---|
| 73 |
add_string( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, true ); |
|---|
| 74 |
add_bool( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, true ); |
|---|
| 75 |
#ifdef HAVE_SYS_SHM_H |
|---|
| 76 |
add_bool( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT, true ); |
|---|
| 77 |
#endif |
|---|
| 78 |
#ifdef HAVE_XINERAMA |
|---|
| 79 |
add_integer ( "x11-xineramascreen", 0, NULL, SCREEN_TEXT, SCREEN_LONGTEXT, true ); |
|---|
| 80 |
#endif |
|---|
| 81 |
set_description( N_("X11 video output") ); |
|---|
| 82 |
set_capability( "video output", 70 ); |
|---|
| 83 |
set_callbacks( Activate, Deactivate ); |
|---|
| 84 |
vlc_module_end(); |
|---|
| 85 |
|
|---|