summaryrefslogtreecommitdiffstats
path: root/libhb/scan.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/scan.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/scan.c')
-rw-r--r--libhb/scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index 535baea39..f827245e1 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -8,6 +8,7 @@
*/
#include "hb.h"
+#include "opencl.h"
#include "hbffmpeg.h"
#include "a52dec/a52.h"
@@ -868,6 +869,9 @@ skip_preview:
title->video_decode_support = vid_info.video_decode_support;
+ // TODO: check video dimensions
+ title->opencl_support = !!hb_opencl_available();
+
// compute the aspect ratio based on the storage dimensions and the
// pixel aspect ratio (if supplied) or just storage dimensions if no PAR.
title->aspect = (double)title->width / (double)title->height;