From 43f0bc9d538c86ea75a5cd627a81452e9d76b825 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Fri, 8 Nov 2013 21:21:02 +0000 Subject: 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 --- libhb/scan.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libhb/scan.c') 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; -- cgit v1.2.3