summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-11-08 21:21:02 +0000
committerRodeo <[email protected]>2013-11-08 21:21:02 +0000
commit43f0bc9d538c86ea75a5cd627a81452e9d76b825 (patch)
treea6bde5c2174543e4ea282ab26b6a2c76829105eb /libhb/stream.c
parentd0a2953efbce340e34a971b9481024a51ae52383 (diff)
OpenCL: use the new library loading architecture for all OpenCL code.
An OpenCL SDK is no longer needed to build OpenCL support. Note: as a result, the --enable-opencl configure option is removed. Also, libOpenCL is no longer needed to run the application (it is still necessary to use OpenCL features, of course). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5886 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index ac34cc550..5d6ec7f4c 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -1121,14 +1121,7 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title)
#else
title->hwd_support = 0;
#endif
-#ifdef USE_OPENCL
- if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1)
- title->opencl_support = 1;
- else
- title->opencl_support = 0;
-#else
- title->opencl_support = 0;
-#endif
+
// Height, width, rate and aspect ratio information is filled in
// when the previews are built
return title;
@@ -5687,14 +5680,6 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
#else
title->hwd_support = 0;
#endif
-#ifdef USE_OPENCL
- if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1)
- title->opencl_support = 1;
- else
- title->opencl_support = 0;
-#else
- title->opencl_support = 0;
-#endif
return title;
}