diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-23 20:21:31 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-23 20:21:31 +0000 |
commit | 990c6b74db592cf8db1ebfe5e7b84c19d220f5b4 (patch) | |
tree | 6606d9a89fd4444ae5908f2fd115fd915178ede3 /postproc/cs_test.c | |
parent | 71cf90c5e44a7f753dd0ab9a2842b362c863893d (diff) | |
download | mpv-990c6b74db592cf8db1ebfe5e7b84c19d220f5b4.tar.bz2 mpv-990c6b74db592cf8db1ebfe5e7b84c19d220f5b4.tar.xz |
update
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10174 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/cs_test.c')
-rw-r--r-- | postproc/cs_test.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <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; @@ -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; |