mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01: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:
parent
662be7e939
commit
daba8a0477
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user