summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-06-12 10:21:46 -0700
committerGitHub <[email protected]>2017-06-12 10:21:46 -0700
commite8e6af1ec69651c540fd04ae5417c77a8dc1c9ae (patch)
treea1cbcad17a6b9742dd208b38a2d5295550cba9cd /libhb/hb.c
parentc72396f91d2b9535f3873d8dd5dc8b7ea1b4c28e (diff)
opencl: removit it (#777)
It was only used for scaling, it fails far too often and is only faster on a limited selectoin of hardware.
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index a680df91f..3df3ec3ac 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -8,7 +8,6 @@
*/
#include "hb.h"
-#include "opencl.h"
#include "hbffmpeg.h"
#include "encx264.h"
#include "libavfilter/avfilter.h"
@@ -65,8 +64,6 @@ struct hb_handle_s
// power management opaque pointer
void * system_sleep_opaque;
-
- int enable_opencl;
};
hb_work_object_t * hb_objects = NULL;
@@ -143,11 +140,6 @@ int hb_avcodec_open(AVCodecContext *avctx, AVCodec *codec,
return ret;
}
-int hb_get_opencl_enabled(hb_handle_t *h)
-{
- return h->enable_opencl;
-}
-
int hb_avcodec_close(AVCodecContext *avctx)
{
int ret;
@@ -416,14 +408,6 @@ void hb_log_level_set(hb_handle_t *h, int level)
global_verbosity_level = level;
}
-/*
- * Enable or disable support for OpenCL detection.
- */
-void hb_opencl_set_enable(hb_handle_t *h, int enable_opencl)
-{
- h->enable_opencl = enable_opencl;
-}
-
/**
* libhb initialization routine.
* @param verbose HB_DEBUG_NONE or HB_DEBUG_ALL.
@@ -642,12 +626,6 @@ void hb_scan( hb_handle_t * h, const char * path, int title_index,
}
hb_log(" - logical processor count: %d", hb_get_cpu_count());
- /* Print OpenCL info here so that it's in all scan and encode logs */
- if (hb_get_opencl_enabled(h))
- {
- hb_opencl_info_print();
- }
-
#ifdef USE_QSV
/* Print QSV info here so that it's in all scan and encode logs */
hb_qsv_info_print();
@@ -1947,9 +1925,6 @@ void hb_global_close()
hb_presets_free();
- /* OpenCL library (dynamically loaded) */
- hb_ocl_close();
-
/* Find and remove temp folder */
memset( dirname, 0, 1024 );
hb_get_temporary_directory( dirname );