aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorLenny Wang <lwanghpc@gmail.com>2013-12-08 21:01:00 -0600
committerMichael Niedermayer <michaelni@gmx.at>2013-12-09 21:21:36 +0100
commit64f73acd1d3853e55a7cd7631987dfd83c4171e7 (patch)
treecdb797b8e3dbe005c675d6ebab4f45cc94b49efd /cmdutils.c
parent8e702bd3a8f5a4271590ab5aa38a41087ceaab1b (diff)
downloadffmpeg-64f73acd1d3853e55a7cd7631987dfd83c4171e7.tar.gz
cmdutils & opencl: add -opencl_bench option to test and show available OpenCL devices
Reviewed-by: Wei Gao <highgod0401@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 46ade3f83f..fc4b42440e 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -58,10 +58,6 @@
#include <sys/time.h>
#include <sys/resource.h>
#endif
-#if CONFIG_OPENCL
-#include "libavutil/opencl.h"
-#endif
-
static int init_report(const char *env);
@@ -985,26 +981,6 @@ int opt_timelimit(void *optctx, const char *opt, const char *arg)
return 0;
}
-#if CONFIG_OPENCL
-int opt_opencl(void *optctx, const char *opt, const char *arg)
-{
- char *key, *value;
- const char *opts = arg;
- int ret = 0;
- while (*opts) {
- ret = av_opt_get_key_value(&opts, "=", ":", 0, &key, &value);
- if (ret < 0)
- return ret;
- ret = av_opencl_set_option(key, value);
- if (ret < 0)
- return ret;
- if (*opts)
- opts++;
- }
- return ret;
-}
-#endif
-
void print_error(const char *filename, int err)
{
char errbuf[128];