# HG changeset patch # User alex # Date 1053721291 0 # Node ID 5c3a8881adc4c7ca01149a1031e4c87add9cb148 # Parent 3241b7ca2b2c5d38e38e0ff72504e07894fa7372 update diff -r 3241b7ca2b2c -r 5c3a8881adc4 postproc/cs_test.c --- a/postproc/cs_test.c Fri May 23 20:12:44 2003 +0000 +++ b/postproc/cs_test.c Fri May 23 20:21:31 2003 +0000 @@ -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 @@ printf("testing mmx\n"); } + sws_rgb2rgb_init(get_sws_cpuflags()); + for(funcNum=0; funcNum<100; funcNum++){ int width; int failed=0;