[FFmpeg-cvslog] lavc/hevcdec: add 4:2:2 8-bit/10-bit VAAPI decode support

Linjie Fu git at videolan.org
Mon Feb 24 02:19:21 EET 2020


ffmpeg | branch: master | Linjie Fu <linjie.fu at intel.com> | Wed Jan 15 15:02:21 2020 +0800| [669428ac5d9b39f718e7d46f52410722dd20b94a] | committer: Mark Thompson

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 at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=669428ac5d9b39f718e7d46f52410722dd20b94a
---

 libavcodec/hevcdec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index c74881e814..7448be482c 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -425,6 +425,12 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
 #endif
 #if CONFIG_HEVC_NVDEC_HWACCEL
         *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:



More information about the ffmpeg-cvslog mailing list