From cbb3c5a3f84ce228ea4e32ba59dfc3d0b3fcddee Mon Sep 17 00:00:00 2001 From: Tim Walker Date: Mon, 12 Sep 2016 15:18:31 +0200 Subject: [PATCH] QSVdec: support more video input formats (not). --- libhb/decavcodec.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 5f3dce01d..0bfffc490 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1777,11 +1777,20 @@ static int decavcodecvInfo( hb_work_object_t *w, hb_work_info_t *info ) info->video_decode_support = HB_DECODE_SUPPORT_SW; -#ifdef USE_QSV +#ifdef USE_QSV // TODO: query QSV for resolution limits, 10-bit decoding support if (avcodec_find_decoder_by_name(hb_qsv_decode_get_codec_name(pv->context->codec_id))) { switch (pv->context->codec_id) { +// // decoder seems highly unreliable, further investigation required +// case AV_CODEC_ID_MPEG2VIDEO: +// if (pv->context->pix_fmt == AV_PIX_FMT_YUV420P || +// pv->context->pix_fmt == AV_PIX_FMT_YUVJ420P) +// { +// info->video_decode_support |= HB_DECODE_SUPPORT_QSV; +// } +// break; + case AV_CODEC_ID_H264: if (pv->context->pix_fmt == AV_PIX_FMT_YUV420P || pv->context->pix_fmt == AV_PIX_FMT_YUVJ420P) @@ -1790,6 +1799,15 @@ static int decavcodecvInfo( hb_work_object_t *w, hb_work_info_t *info ) } break; +// // seemingly doesn't work at all: :-( further investigation required +// case AV_CODEC_ID_HEVC: +// if (pv->context->pix_fmt == AV_PIX_FMT_YUV420P || +// pv->context->pix_fmt == AV_PIX_FMT_YUVJ420P) +// { +// info->video_decode_support |= HB_DECODE_SUPPORT_QSV; +// } +// break; + default: break; } -- 2.40.0