This could be a 10l, but the codes check later if the wsConvFunc is valid, so no sig11 if it's NULL, but at least no XShape support on PPC :) After all, finally the GUI works on my PPC!%#^^

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10171 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-05-23 17:39:33 +00:00
parent f6213644aa
commit 8b1d077bf4
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#include "../../libvo/x11_common.h"
#include "ws.h"
#include "wsxdnd.h"
#include "../../cpudetect.h"
#include "../../postproc/swscale.h"
#include "../../postproc/rgb2rgb.h"
#include "../../mp_msg.h"
#include "../../mplayer.h"
@ -81,6 +83,13 @@ inline int wsSearch( Window win );
// ---
static int get_sws_cpuflags()
{
return (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) |
(gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) |
(gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0);
}
#define PACK_RGB16(r,g,b,pixel) pixel=(b>>3);\
pixel<<=6;\
pixel|=(g>>2);\
@ -281,6 +290,7 @@ wsXDNDInitialize();
wsConvFunc=rgb32tobgr15;
break;
}
sws_rgb2rgb_init(get_sws_cpuflags());
XSetErrorHandler( wsErrorHandler );
}