diff options
author | John Stebbins <[email protected]> | 2016-05-17 08:12:33 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-17 08:12:33 -0700 |
commit | 141579c628e4d74fd6c7d00da0de388bdca7eabd (patch) | |
tree | 5c6d365cb58945bba799c5c891487541d739f3b5 /libhb/cropscale.c | |
parent | 17433d4f622a561f1cc4fdef71ced517f9b997b5 (diff) |
remove dxva hw decode (#189)
* remove dxva hw decode
It provides practically no speed increase even on a slow CPU and results
in a speed decrease on fast CPUs. And the code is exceptionally fugly.
* cli: remove USE_HWD
Diffstat (limited to 'libhb/cropscale.c')
-rw-r--r-- | libhb/cropscale.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/libhb/cropscale.c b/libhb/cropscale.c index 63475990e..33fc156f7 100644 --- a/libhb/cropscale.c +++ b/libhb/cropscale.c @@ -23,10 +23,7 @@ struct hb_filter_private_s int height_out; int crop[4]; - /* OpenCL/DXVA2 */ - int use_dxva; - int use_decomb; - int use_detelecine; + /* OpenCL */ hb_oclscale_t *os; //ocl scaler handler struct SwsContext * context; @@ -75,11 +72,7 @@ static int hb_crop_scale_init( hb_filter_object_t * filter, pv->width_out = init->geometry.width - (init->crop[2] + init->crop[3]); pv->height_out = init->geometry.height - (init->crop[0] + init->crop[1]); - /* OpenCL/DXVA2 */ - pv->use_dxva = hb_hwd_enabled(init->job->h); - pv->use_decomb = init->job->use_decomb; - pv->use_detelecine = init->job->use_detelecine; - + /* OpenCL */ if (pv->job->use_opencl && pv->job->title->opencl_support) { pv->os = ( hb_oclscale_t * )malloc( sizeof( hb_oclscale_t ) ); @@ -253,13 +246,9 @@ static int hb_crop_scale_work( hb_filter_object_t * filter, pv->height_out = in->f.height - (pv->crop[0] + pv->crop[1]); } - /* OpenCL/DXVA2 */ - if ((!pv->use_dxva && - !pv->crop[0] && !pv->crop[1] && !pv->crop[2] && !pv->crop[3] && - in->f.fmt == pv->pix_fmt_out && in->f.width == pv->width_out && - in->f.height == pv->height_out) || - (pv->use_dxva && !pv->use_decomb && !pv->use_detelecine && - in->f.width == pv->width_out && in->f.height == pv->height_out)) + if (!pv->crop[0] && !pv->crop[1] && !pv->crop[2] && !pv->crop[3] && + in->f.fmt == pv->pix_fmt_out && in->f.width == pv->width_out && + in->f.height == pv->height_out) { *buf_out = in; *buf_in = NULL; |