[Mplayer-cvslog] CVS: main/postproc cs_test.c,1.2,1.3
Alex Beregszaszi
alex at mplayerhq.hu
Fri May 23 22:21:56 CEST 2003
Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv6612
Modified Files:
cs_test.c
Log Message:
update
Index: cs_test.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/cs_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cs_test.c 29 Jun 2002 21:35:48 -0000 1.2
+++ cs_test.c 23 May 2003 20:21:31 -0000 1.3
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <inttypes.h>
+#include "swscale.h"
#include "rgb2rgb.h"
#include "../cpudetect.h"
@@ -27,6 +28,13 @@
#define srcByte 0x55
#define dstByte 0xBB
+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);
+}
+
main(int argc, char **argv)
{
int i, funcNum;
@@ -41,6 +49,8 @@
GetCpuCaps(&gCpuCaps);
printf("testing mmx\n");
}
+
+ sws_rgb2rgb_init(get_sws_cpuflags());
for(funcNum=0; funcNum<100; funcNum++){
int width;
More information about the MPlayer-cvslog
mailing list