0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

added rgb24to32 instead of c converter

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4037 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-01-07 17:33:59 +00:00
parent 662be7e939
commit daba8a0477

View File

@ -27,7 +27,7 @@ LIBVO_EXTERN( x11 )
#include <X11/Xlib.h>
#include <X11/Xutil.h>
//#include <X11/extensions/XShm.h>
#ifdef HAVE_XF86VM
#include <X11/extensions/xf86vmode.h>
#endif
@ -540,6 +540,7 @@ static uint32_t draw_frame( uint8_t *src[] ){
memcpy( d,s,sbpp*image_width*image_height );
} else {
// sbpp!=dbpp
#if 0
char *e=s+sbpp*image_width*image_height;
//printf( "libvo: using C 24->32bpp conversion\n" );
while( s<e ){
@ -548,6 +549,9 @@ static uint32_t draw_frame( uint8_t *src[] ){
d[2]=s[2];
s+=sbpp;d+=dbpp;
}
#else
rgb24to32(s, d, sbpp*image_width*image_height);
#endif
}
}
return 0;