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