summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-17 08:12:33 -0700
committerJohn Stebbins <[email protected]>2016-05-17 08:12:33 -0700
commit141579c628e4d74fd6c7d00da0de388bdca7eabd (patch)
tree5c6d365cb58945bba799c5c891487541d739f3b5 /libhb/work.c
parent17433d4f622a561f1cc4fdef71ced517f9b997b5 (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/work.c')
-rw-r--r--libhb/work.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 4b09144b2..e3e41cdb2 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -359,13 +359,6 @@ void hb_display_job_info(hb_job_t *job)
}
else
#endif
-#ifdef USE_HWD
- if (hb_hwd_enabled(job->h))
- {
- hb_log(" + decoder: %s (dxva2)", title->video_codec_name);
- }
- else
-#endif
{
hb_log(" + decoder: %s", title->video_codec_name);
}
@@ -1421,23 +1414,6 @@ static void do_job(hb_job_t *job)
goto cleanup;
}
-#ifdef USE_HWD
- /*
- * Check support for and enable DXVA2-accelerated when applicable; we need:
- * - a compatible input bitstream (HB_DECODE_SUPPORT_DXVA2)
- * - DXVA2-accelerated decoding enabled (job->use_hwd)
- * - an AVFormatContext (title->opaque_priv) for now
- */
- if (title->video_decode_support & HB_DECODE_SUPPORT_DXVA2)
- {
- hb_hwd_set_enable(job->h, job->use_hwd && title->opaque_priv != NULL);
- }
- else
-#endif
- {
- hb_hwd_set_enable(job->h, 0);
- }
-
// Filters have an effect on settings.
// So initialize the filters and update the job.
if (job->list_filter && hb_list_count(job->list_filter))