From b76ee469c75a79a0648bee7208f75544f3add171 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 23 May 2003 20:21:31 +0000 Subject: update Originally committed as revision 10174 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/cs_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'postproc') diff --git a/postproc/cs_test.c b/postproc/cs_test.c index 337d9cb750..9059dac9c9 100644 --- a/postproc/cs_test.c +++ b/postproc/cs_test.c @@ -20,6 +20,7 @@ #include #include +#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; @@ -42,6 +50,8 @@ main(int argc, char **argv) printf("testing mmx\n"); } + sws_rgb2rgb_init(get_sws_cpuflags()); + for(funcNum=0; funcNum<100; funcNum++){ int width; int failed=0; -- cgit v1.2.3