aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinjie Fu <linjie.fu@intel.com>2020-01-15 15:02:21 +0800
committerMark Thompson <sw@jkqxz.net>2020-02-24 00:09:51 +0000
commit669428ac5d9b39f718e7d46f52410722dd20b94a (patch)
tree61389156f928b5799a6646281d91b81af4ffd10d
parentd2378645fbdd1da7acaa084ddcae90830f54589b (diff)
downloadffmpeg-669428ac5d9b39f718e7d46f52410722dd20b94a.tar.gz
lavc/hevcdec: add 4:2:2 8-bit/10-bit VAAPI decode support
Add decode support for 4:2:2 8-bt and 10-bit HEVC Range Extension clips. Signed-off-by: Linjie Fu <linjie.fu@intel.com>
-rw-r--r--libavcodec/hevcdec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index c74881e814..7448be482c 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -427,6 +427,12 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
*fmt++ = AV_PIX_FMT_CUDA;
#endif
break;
+ case AV_PIX_FMT_YUV422P:
+ case AV_PIX_FMT_YUV422P10LE:
+#if CONFIG_HEVC_VAAPI_HWACCEL
+ *fmt++ = AV_PIX_FMT_VAAPI;
+#endif
+ break;
case AV_PIX_FMT_YUV420P12:
case AV_PIX_FMT_YUV444P10:
case AV_PIX_FMT_YUV444P12: