Mercurial > mplayer.hg
comparison libvo/vo_dga.c @ 10495:81e99e4c6640
10l & warning fixes
author | alex |
---|---|
date | Mon, 28 Jul 2003 14:54:19 +0000 |
parents | e89a7e9410b4 |
children | 6e35326c742f |
comparison
equal
deleted
inserted
replaced
10494:db0bc96da95f | 10495:81e99e4c6640 |
---|---|
78 // these entries describe HW modes | 78 // these entries describe HW modes |
79 // however, we use the same entries to tell mplayer what we support | 79 // however, we use the same entries to tell mplayer what we support |
80 // so the last two values describe, which HW mode to use and which conversion | 80 // so the last two values describe, which HW mode to use and which conversion |
81 // function to use for a mode that is not supported by HW | 81 // function to use for a mode that is not supported by HW |
82 | 82 |
83 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | 83 { 0, 0, 0, 0, 0, 0, 0, 0, 0, }, |
84 { 15, 0, 15, 16, 2, 0x7c00, 0x03e0, 0x001f, 2, }, | 84 { 15, 0, 15, 16, 2, 0x7c00, 0x03e0, 0x001f, 2, }, |
85 { 16, 0, 16, 16, 2, 0xf800, 0x07e0, 0x001f, 2, }, | 85 { 16, 0, 16, 16, 2, 0xf800, 0x07e0, 0x001f, 2, }, |
86 { 24, 0, 24, 24, 3, 0xff0000, 0x00ff00, 0x0000ff, 4}, | 86 { 24, 0, 24, 24, 3, 0xff0000, 0x00ff00, 0x0000ff, 4}, |
87 { 32, 0, 24, 32, 4, 0x00ff0000, 0x0000ff00, 0x000000ff, 4} | 87 { 32, 0, 24, 32, 4, 0x00ff0000, 0x0000ff00, 0x000000ff, 4} |
88 }; | 88 }; |
163 return stringbuf; | 163 return stringbuf; |
164 } | 164 } |
165 | 165 |
166 //----------------------------------------------------------------- | 166 //----------------------------------------------------------------- |
167 | 167 |
168 #ifdef HAVE_XF86VM | 168 #if defined(HAVE_XF86VM) && !defined(HAVE_DGA2) |
169 static XF86VidModeModeInfo **vo_dga_vidmodes=NULL; | 169 static XF86VidModeModeInfo **vo_dga_vidmodes=NULL; |
170 #endif | 170 #endif |
171 | 171 |
172 | 172 |
173 static int vo_dga_src_format; | 173 static int vo_dga_src_format; |
248 | 248 |
249 | 249 |
250 | 250 |
251 | 251 |
252 // quick & dirty - for debugging only | 252 // quick & dirty - for debugging only |
253 | 253 #if 0 |
254 static void fillblock(char *strt, int yoff, int lines, int val){ | 254 static void fillblock(char *strt, int yoff, int lines, int val){ |
255 char *i; | 255 char *i; |
256 for(i = strt + yoff * vo_dga_width *HW_MODE.vdm_bytespp; | 256 for(i = strt + yoff * vo_dga_width *HW_MODE.vdm_bytespp; |
257 i< strt + (lines+yoff) * vo_dga_width *HW_MODE.vdm_bytespp; ){ | 257 i< strt + (lines+yoff) * vo_dga_width *HW_MODE.vdm_bytespp; ){ |
258 *i++ = val; | 258 *i++ = val; |
259 } | 259 } |
260 } | 260 } |
261 | 261 #endif |
262 | 262 |
263 //--------------------------------------------------------- | 263 //--------------------------------------------------------- |
264 | 264 |
265 static uint32_t draw_frame( uint8_t *src[] ){ | 265 static uint32_t draw_frame( uint8_t *src[] ){ |
266 | 266 |