Mercurial > mplayer.hg
annotate libvo/vo_gl.c @ 12128:69ee0a61da88
ability to disable mp3lib, liba52 and libmpeg2
author | alex |
---|---|
date | Mon, 05 Apr 2004 23:17:40 +0000 |
parents | ccb15c72f331 |
children | 9d96071652c4 |
rev | line source |
---|---|
1 | 1 #define TEXTUREFORMAT_32BPP |
2 | |
3 #include <stdio.h> | |
4 #include <stdlib.h> | |
5 #include <string.h> | |
6 #include <math.h> | |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4658
diff
changeset
|
7 #include <errno.h> |
1 | 8 |
11988 | 9 #include "mp_msg.h" |
1 | 10 #include "config.h" |
11 #include "video_out.h" | |
12 #include "video_out_internal.h" | |
13 | |
14 #include <X11/Xlib.h> | |
15 #include <X11/Xutil.h> | |
16 //#include <X11/keysym.h> | |
17 #include <GL/glx.h> | |
18 #include <errno.h> | |
19 | |
20 #include <GL/gl.h> | |
21 | |
31 | 22 #include "x11_common.h" |
2057 | 23 #include "aspect.h" |
31 | 24 |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7931
diff
changeset
|
25 static vo_info_t info = |
1 | 26 { |
27 "X11 (OpenGL)", | |
28 "gl", | |
29 "Arpad Gereoffy <arpi@esp-team.scene.hu>", | |
30 "" | |
31 }; | |
32 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7931
diff
changeset
|
33 LIBVO_EXTERN(gl) |
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7931
diff
changeset
|
34 |
1 | 35 /* local data */ |
36 static unsigned char *ImageData=NULL; | |
37 | |
38 static GLXContext wsGLXContext; | |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
39 static int wsGLXAttrib[] = { GLX_RGBA, |
1 | 40 GLX_RED_SIZE,1, |
41 GLX_GREEN_SIZE,1, | |
42 GLX_BLUE_SIZE,1, | |
43 GLX_DOUBLEBUFFER, | |
44 None }; | |
45 | |
46 | |
47 static uint32_t image_width; | |
48 static uint32_t image_height; | |
49 static uint32_t image_bytes; | |
50 | |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
51 static int int_pause; |
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
52 |
1 | 53 static uint32_t texture_width; |
54 static uint32_t texture_height; | |
55 | |
8654
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
56 static int slice_height=1; |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
57 |
612 | 58 static void resize(int x,int y){ |
11988 | 59 mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n",x,y); |
1 | 60 glViewport( 0, 0, x, y ); |
61 | |
62 glMatrixMode(GL_PROJECTION); | |
63 glLoadIdentity(); | |
64 glOrtho(0, image_width, image_height, 0, -1,1); | |
65 | |
66 glMatrixMode(GL_MODELVIEW); | |
67 glLoadIdentity(); | |
68 } | |
69 | |
70 /* connect to server, create and map window, | |
71 * allocate colors and (shared) memory | |
72 */ | |
73 static uint32_t | |
7124
eca7dbad0166
finally removed query_vaa, bes_da and vo_tune_info - the obsoleted libvo api
alex
parents:
7111
diff
changeset
|
74 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) |
1 | 75 { |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
76 // int screen; |
1 | 77 unsigned int fg, bg; |
78 XSizeHints hint; | |
79 XVisualInfo *vinfo; | |
80 XEvent xev; | |
81 | |
1109 | 82 // XGCValues xgcv; |
1 | 83 |
84 image_height = height; | |
85 image_width = width; | |
10919 | 86 vo_dwidth = d_width; |
87 vo_dheight = d_height; | |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
88 |
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
89 int_pause = 0; |
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
90 |
2249
48f0ac1e9d13
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
atmos4
parents:
2057
diff
changeset
|
91 aspect_save_orig(width,height); |
48f0ac1e9d13
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
atmos4
parents:
2057
diff
changeset
|
92 aspect_save_prescale(d_width,d_height); |
48f0ac1e9d13
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
atmos4
parents:
2057
diff
changeset
|
93 aspect_save_screenres(vo_screenwidth,vo_screenheight); |
48f0ac1e9d13
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
atmos4
parents:
2057
diff
changeset
|
94 |
48f0ac1e9d13
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
atmos4
parents:
2057
diff
changeset
|
95 aspect(&d_width,&d_height,A_NOZOOM); |
2040 | 96 #ifdef X11_FULLSCREEN |
6095 | 97 // if( flags&0x01 ){ // (-fs) |
98 // aspect(&d_width,&d_height,A_ZOOM); | |
99 // } | |
2040 | 100 #endif |
1 | 101 hint.x = 0; |
102 hint.y = 0; | |
103 hint.width = d_width; | |
104 hint.height = d_height; | |
105 hint.flags = PPosition | PSize; | |
106 | |
107 /* Get some colors */ | |
108 | |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
109 bg = WhitePixel(mDisplay, mScreen); |
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
110 fg = BlackPixel(mDisplay, mScreen); |
1 | 111 |
112 /* Make the window */ | |
113 | |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
114 vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib ); |
1290 | 115 if (vinfo == NULL) |
116 { | |
11988 | 117 mp_msg(MSGT_VO, MSGL_ERR, "[gl] no GLX support present\n"); |
1290 | 118 return -1; |
119 } | |
1 | 120 |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
121 |
1137
4c7b219e126c
patch: some X11 compliance fixed: set ClassHint and better fullscreen mode
arpi_esp
parents:
1109
diff
changeset
|
122 |
7777 | 123 if ( vo_window == None ) |
124 { | |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
125 vo_window = vo_x11_create_smooth_window(mDisplay, mRootWin, vinfo->visual, hint.x, hint.y, hint.width, hint.height, |
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
126 vinfo->depth, XCreateColormap(mDisplay, mRootWin, vinfo->visual, AllocNone)); |
1 | 127 |
7777 | 128 vo_x11_classhint( mDisplay,vo_window,"gl" ); |
129 vo_hidecursor(mDisplay,vo_window); | |
1 | 130 |
7777 | 131 // if ( flags&0x01 ) vo_x11_decoration( mDisplay,vo_window,0 ); |
132 XSelectInput(mDisplay, vo_window, StructureNotifyMask); | |
133 /* Tell other applications about this window */ | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
134 XSetStandardProperties(mDisplay, vo_window, title, title, None, NULL, 0, &hint); |
7777 | 135 /* Map window. */ |
136 XMapWindow(mDisplay, vo_window); | |
137 if ( flags&1 ) vo_x11_fullscreen(); | |
4017 | 138 #ifdef HAVE_XINERAMA |
7777 | 139 vo_x11_xinerama_move(mDisplay,vo_window); |
4017 | 140 #endif |
1 | 141 |
7777 | 142 /* Wait for map. */ |
143 do | |
144 { | |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
145 XNextEvent(mDisplay, &xev); |
7777 | 146 } |
147 while (xev.type != MapNotify || xev.xmap.event != vo_window); | |
1 | 148 |
7777 | 149 XSelectInput(mDisplay, vo_window, NoEventMask); |
150 } | |
1 | 151 |
7777 | 152 if ( vo_config_count ) glXDestroyContext( mDisplay,wsGLXContext ); |
153 wsGLXContext=glXCreateContext( mDisplay,vinfo,NULL,True ); | |
154 glXMakeCurrent( mDisplay,vo_window,wsGLXContext ); | |
1 | 155 |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
156 XFlush(mDisplay); |
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
157 XSync(mDisplay, False); |
1 | 158 |
6953
ce67cc1f0beb
ignore BadAccess error at XSelectInput() (grabbing mouse etc) with warning
arpi
parents:
6212
diff
changeset
|
159 vo_x11_selectinput_witherr(mDisplay, vo_window, StructureNotifyMask | KeyPressMask | PointerMotionMask |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
160 | ButtonPressMask | ButtonReleaseMask | ExposureMask |
4658 | 161 ); |
1 | 162 |
163 texture_width=32; | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
164 while(texture_width<image_width || texture_width<image_height) texture_width*=2; |
1 | 165 texture_height=texture_width; |
166 | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
167 image_bytes=(IMGFMT_RGB_DEPTH(format)+7)/8; |
1 | 168 |
7777 | 169 if ( ImageData ) free( ImageData ); |
1 | 170 ImageData=malloc(texture_width*texture_height*image_bytes); |
171 memset(ImageData,128,texture_width*texture_height*image_bytes); | |
172 | |
173 glDisable(GL_BLEND); | |
174 glDisable(GL_DEPTH_TEST); | |
175 glDepthMask(GL_FALSE); | |
176 glDisable(GL_CULL_FACE); | |
177 | |
178 glEnable(GL_TEXTURE_2D); | |
179 | |
11988 | 180 mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n",texture_width,texture_height); |
1 | 181 |
182 #if 1 | |
183 // glBindTexture(GL_TEXTURE_2D, texture_id); | |
184 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER, GL_LINEAR); | |
185 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER, GL_LINEAR); | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
186 /* Old OpenGL 1.0 used the third parameter (known as internalFormat) as an |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
187 integer, which indicated the bytes per pixel (bpp). Later in OpenGL 1.1 |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
188 they switched to constants, like GL_RGB8. GL_RGB8 means 8 bits for each |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
189 channel (R,G,B), so it's equal to RGB24. It should be safe to pass the |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
190 image_bytes to internalFormat with newer OpenGL versions. |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
191 Anyway, I'm leaving this so as it was, it doesn't hurt, as OpenGL 1.1 is |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
192 about 10 years old too. -- alex |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
193 */ |
1 | 194 #ifdef TEXTUREFORMAT_32BPP |
195 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, texture_width, texture_height, 0, | |
196 #else | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
197 glTexImage2D(GL_TEXTURE_2D, 0, image_bytes, texture_width, texture_height, 0, |
1 | 198 #endif |
199 (image_bytes==4)?GL_RGBA:GL_BGR, GL_UNSIGNED_BYTE, ImageData); | |
200 #endif | |
201 | |
202 resize(d_width,d_height); | |
203 | |
204 glClearColor( 1.0f,0.0f,1.0f,0.0f ); | |
205 glClear( GL_COLOR_BUFFER_BIT ); | |
206 | |
207 // printf("OpenGL setup OK!\n"); | |
208 | |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
209 saver_off(mDisplay); // turning off screen saver |
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
210 |
11542 | 211 if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); |
212 | |
1 | 213 return 0; |
214 } | |
215 | |
31 | 216 static void check_events(void) |
1 | 217 { |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
218 int e=vo_x11_check_events(mDisplay); |
31 | 219 if(e&VO_EVENT_RESIZE) resize(vo_dwidth,vo_dheight); |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
220 if(e&VO_EVENT_EXPOSE && int_pause) flip_page(); |
31 | 221 } |
1 | 222 |
1501
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1302
diff
changeset
|
223 static void draw_osd(void) |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1302
diff
changeset
|
224 { |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1302
diff
changeset
|
225 } |
31 | 226 |
227 static void | |
228 flip_page(void) | |
229 { | |
230 | |
1 | 231 // glEnable(GL_TEXTURE_2D); |
232 // glBindTexture(GL_TEXTURE_2D, texture_id); | |
233 | |
234 glColor3f(1,1,1); | |
235 glBegin(GL_QUADS); | |
236 glTexCoord2f(0,0);glVertex2i(0,0); | |
237 glTexCoord2f(0,1);glVertex2i(0,texture_height); | |
238 glTexCoord2f(1,1);glVertex2i(texture_width,texture_height); | |
239 glTexCoord2f(1,0);glVertex2i(texture_width,0); | |
240 glEnd(); | |
241 | |
242 // glFlush(); | |
243 glFinish(); | |
6095 | 244 glXSwapBuffers( mDisplay,vo_window ); |
245 | |
1 | 246 } |
247 | |
248 //static inline uint32_t draw_slice_x11(uint8_t *src[], uint32_t slice_num) | |
249 static uint32_t draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y) | |
250 { | |
251 return 0; | |
252 } | |
253 | |
254 | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
255 static uint32_t |
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
256 draw_frame(uint8_t *src[]) |
1 | 257 { |
258 int i; | |
259 uint8_t *ImageData=src[0]; | |
260 | |
8654
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
261 for(i=0;i<image_height;i+=slice_height){ |
1 | 262 glTexSubImage2D( GL_TEXTURE_2D, // target |
263 0, // level | |
264 0, // x offset | |
265 // image_height-1-i, // y offset | |
266 i, // y offset | |
267 image_width, // width | |
8654
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
268 (i+slice_height<=image_height)?slice_height:image_height-i, // height |
1 | 269 (image_bytes==4)?GL_RGBA:GL_RGB, // format |
270 GL_UNSIGNED_BYTE, // type | |
271 ImageData+i*image_bytes*image_width ); // *pixels | |
272 } | |
273 | |
274 return 0; | |
275 } | |
276 | |
277 static uint32_t | |
278 query_format(uint32_t format) | |
279 { | |
10138
5e286cc6ad21
Removed YUV (YV12) and BGR support, leaving the native RGB support. Also cleaned some other parts.
alex
parents:
8654
diff
changeset
|
280 if ((format == IMGFMT_RGB24) || (format == IMGFMT_RGB32)) |
6212 | 281 return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW; |
1 | 282 return 0; |
283 } | |
284 | |
285 | |
286 static void | |
287 uninit(void) | |
288 { | |
6095 | 289 if ( !vo_config_count ) return; |
2041
ba8a225d1a18
now using x11_common stuff for X11 opening and w/h/bpp query
arpi
parents:
2040
diff
changeset
|
290 saver_on(mDisplay); // screen saver back on |
6095 | 291 vo_x11_uninit(); |
1 | 292 } |
4352 | 293 |
294 static uint32_t preinit(const char *arg) | |
295 { | |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4658
diff
changeset
|
296 if(arg) |
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4658
diff
changeset
|
297 { |
8654
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
298 slice_height = atoi(arg); |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
299 if (slice_height <= 0) |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
300 slice_height = 65536; |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4658
diff
changeset
|
301 } |
8654
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
302 else |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
303 { |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
304 slice_height = 4; |
2c4cebb8637d
- optional slice height for -vo gl (example: -vo gl:32)
arpi
parents:
8148
diff
changeset
|
305 } |
11988 | 306 mp_msg(MSGT_VO, MSGL_INFO, "[vo_gl] Using %d as slice_height (0 means image_height).\n", slice_height); |
7777 | 307 |
7931 | 308 if( !vo_init() ) return -1; // Can't open X11 |
7777 | 309 |
4737
32e1f5042f65
I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
nick
parents:
4658
diff
changeset
|
310 return 0; |
4352 | 311 } |
312 | |
4596 | 313 static uint32_t control(uint32_t request, void *data, ...) |
4352 | 314 { |
4592
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4448
diff
changeset
|
315 switch (request) { |
10757
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
316 case VOCTRL_PAUSE: return (int_pause=1); |
3aea64e0d6d9
Avoid flickering during resizes. Keep video contents even when paused. Fix by Tomas Simonaitis <haden@homelan.lt>
mosu
parents:
10138
diff
changeset
|
317 case VOCTRL_RESUME: return (int_pause=0); |
4592
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4448
diff
changeset
|
318 case VOCTRL_QUERY_FORMAT: |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4448
diff
changeset
|
319 return query_format(*((uint32_t*)data)); |
11542 | 320 case VOCTRL_ONTOP: |
321 vo_x11_ontop(); | |
322 return VO_TRUE; | |
6095 | 323 case VOCTRL_FULLSCREEN: |
324 vo_x11_fullscreen(); | |
325 return VO_TRUE; | |
4592
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4448
diff
changeset
|
326 } |
5fbfd8545c3b
query_ stuff replaced by new control() - patch by David Holm
arpi
parents:
4448
diff
changeset
|
327 return VO_NOTIMPL; |
4352 | 328 } |