Mercurial > mplayer.hg
diff libvo/vo_dga.c @ 2556:71934dc06490
Using new stuff of rgb15to16
author | nick |
---|---|
date | Tue, 30 Oct 2001 17:04:31 +0000 |
parents | d40f2b686846 |
children | 67202498298e |
line wrap: on
line diff
--- a/libvo/vo_dga.c Tue Oct 30 17:03:11 2001 +0000 +++ b/libvo/vo_dga.c Tue Oct 30 17:04:31 2001 +0000 @@ -23,8 +23,8 @@ * - works only on x86 architectures * * $Log$ - * Revision 1.30 2001/08/13 11:08:18 atlka - * changes according to -utf8 option, draw_osd() function added + * Revision 1.31 2001/10/30 17:04:31 nick + * Using new stuff of rgb15to16 * * Revision 1.29 2001/07/16 18:41:52 jkeil * vo_dga doesn't compile on non-x86 architecture due to x86 asm usage. @@ -151,11 +151,9 @@ #include "x11_common.h" - +#include "../postproc/rgb2rgb.h" #include "fastmemcpy.h" -extern void rgb15to16_mmx(char* s0,char* d0,int count); - static vo_info_t vo_info = { #ifdef HAVE_DGA2 @@ -479,18 +477,9 @@ int i; char *e; for(i=0; i< vo_dga_lines; i++){ -#ifdef HAVE_MMX - rgb15to16_mmx( s, d, vo_dga_bytes_per_line); + rgb15to16( s, d, vo_dga_bytes_per_line); d+=vo_dga_bytes_per_line; s+=vo_dga_bytes_per_line; -#else - e = s+vo_dga_bytes_per_line; - while( s< e ){ - register uint16_t x = *(((uint16_t *)s)++); - *(((uint16_t *)d)++)=( x&0x001F )|( ( x&0x7FE0 )<<1 ); - } - -#endif d+= vo_dga_vp_skip; } }