diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-24 10:03:26 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-24 10:03:26 -0400 |
commit | e66149e714006d099d1ebfcca3f22ca74fc7dcf4 (patch) | |
tree | 4be376903a92797c2c9f3c7e560a7c21247ace19 /libswscale/colorspace-test.c | |
parent | 75abcdb3915e3abb2dc6b5f7d101c177dcfdb626 (diff) | |
download | ffmpeg-e66149e714006d099d1ebfcca3f22ca74fc7dcf4.tar.gz |
swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*.
Diffstat (limited to 'libswscale/colorspace-test.c')
-rw-r--r-- | libswscale/colorspace-test.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/libswscale/colorspace-test.c b/libswscale/colorspace-test.c index 4e7116f5dc..4ed9164323 100644 --- a/libswscale/colorspace-test.c +++ b/libswscale/colorspace-test.c @@ -33,31 +33,6 @@ #define FUNC(s,d,n) {s,d,#n,n} -static int cpu_caps; - -static char *args_parse(int argc, char *argv[]) -{ - int o; - - while ((o = getopt(argc, argv, "m23")) != -1) { - switch (o) { - case 'm': - cpu_caps |= SWS_CPU_CAPS_MMX; - break; - case '2': - cpu_caps |= SWS_CPU_CAPS_MMX2; - break; - case '3': - cpu_caps |= SWS_CPU_CAPS_3DNOW; - break; - default: - av_log(NULL, AV_LOG_ERROR, "Unknown option %c\n", o); - } - } - - return argv[optind]; -} - int main(int argc, char **argv) { int i, funcNum; @@ -70,9 +45,7 @@ int main(int argc, char **argv) return -1; av_log(NULL, AV_LOG_INFO, "memory corruption test ...\n"); - args_parse(argc, argv); - av_log(NULL, AV_LOG_INFO, "CPU capabilities forced to %x\n", cpu_caps); - sws_rgb2rgb_init(cpu_caps); + sws_rgb2rgb_init(); for(funcNum=0; ; funcNum++) { struct func_info_s { |