From c56ae5803602026f2be8b2c2fb205362b2a7672a Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sat, 27 Jun 2015 22:13:35 +0000 Subject: QSV: check for Skylake hardware-accelerated HEVC encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7328 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/qsv_common.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index a34eb67d8..8d2edce1f 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -798,7 +798,16 @@ hb_list_t* hb_qsv_load_plugins(hb_qsv_info_t *info, mfxSession session, mfxVersi { if (info->codec_id == MFX_CODEC_HEVC) { - if (HB_CHECK_MFX_VERSION(version, 1, 15)) + if (HB_CHECK_MFX_VERSION(version, 1, 15) && + qsv_implementation_is_hardware(info->implementation)) + { + if (MFXVideoUSER_Load(session, &MFX_PLUGINID_HEVCE_HW, 0) < MFX_ERR_NONE) + { + goto fail; + } + hb_list_add(mfxPluginList, (void*)&MFX_PLUGINID_HEVCE_HW); + } + else if (HB_CHECK_MFX_VERSION(version, 1, 15)) { if (MFXVideoUSER_Load(session, &MFX_PLUGINID_HEVCE_SW, 0) < MFX_ERR_NONE) { -- cgit v1.2.3