summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authormaxd <[email protected]>2017-02-03 20:32:14 +0100
committerBradley Sepos <[email protected]>2017-03-04 10:01:22 -0500
commitaa59dc68d74a62b469e0bf5ae39cd73d16d5c1b3 (patch)
tree46bbf9ca3eb3226967c4af91687c098b44e0d31d /libhb
parentdf8a5e76a3f834f9676e8b475bcf1d6216d7efc2 (diff)
qsv: adding hevc decode support
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decavcodec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 3515ba167..bed5d2cfb 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1495,6 +1495,13 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job )
av_dict_set( &av_opts, "flags", "output_corrupt", 0 );
}
+#ifdef USE_QSV
+ if (pv->qsv.decode && pv->context->codec_id == AV_CODEC_ID_HEVC)
+ {
+ av_dict_set( &av_opts, "load_plugin", "hevc_hw", 0 );
+ }
+#endif
+
if ( hb_avcodec_open( pv->context, codec, &av_opts, pv->threads ) )
{
av_dict_free( &av_opts );
@@ -1900,6 +1907,7 @@ static int decavcodecvInfo( hb_work_object_t *w, hb_work_info_t *info )
{
switch (pv->context->codec_id)
{
+ case AV_CODEC_ID_HEVC:
case AV_CODEC_ID_H264:
if (pv->context->pix_fmt == AV_PIX_FMT_YUV420P ||
pv->context->pix_fmt == AV_PIX_FMT_YUVJ420P)