add filesrc to the pipeline (not quite working)
[opo.git] / gtk-app.h
blob869e1d3bff8dbc3148d5289582d471ce9eefcd50
1 #define QUOTE_(x) #x
2 #define QUOTE(x) QUOTE_(x)
4 static gint option_fake = 0;
5 static gboolean option_force_multiscreen = FALSE;
6 static gboolean option_fullscreen = FALSE;
7 static gint option_x_screens = 1;
8 static gint option_screens = 4;
9 static gint option_width = 160;
10 static gint option_height = 480;
11 static char *option_content = NULL;
13 #define MAX_SCREENS 8
14 #define MIN_SCREENS 1
15 #define MAX_X_SCREENS 8
16 #define MIN_X_SCREENS 1
17 #define MAX_PIXELS 999999
19 static GOptionEntry entries[] =
21 { "fake-source", 'F', 0, G_OPTION_ARG_INT, &option_fake,
22 "use videotestsrc (1, 2 ->different patterns)", NULL },
23 { "full-screen", 'f', 0, G_OPTION_ARG_NONE, &option_fullscreen, "run full screen", NULL },
24 { "force-multiscreen", 'm', 0, G_OPTION_ARG_NONE, &option_force_multiscreen,
25 "put windows on proper screens, or crash", NULL },
26 { "x-screens", 'x', 0, G_OPTION_ARG_INT, &option_x_screens,
27 "use this many X screens", NULL },
28 { "width", 'w', 0, G_OPTION_ARG_INT, &option_width, "width of each screen", NULL },
29 { "height", 'h', 0, G_OPTION_ARG_INT, &option_height, "height of screen", NULL },
30 { "screens", 's', 0, G_OPTION_ARG_INT, &option_screens, "Use this many screens, (max "
31 QUOTE(MAX_SCREENS) ")", "S" },
32 { "content", 'c', 0, G_OPTION_ARG_FILENAME, &option_content, "Content video file", NULL },
33 { NULL, 0, 0, 0, NULL, NULL, NULL }
36 typedef struct window_s {
37 GstElement *sink;
38 XID xid;
39 GtkWidget *widget;
40 int id;
41 } window_t;