You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
From ccca62ef991f0a47dfa30c3e822d91294b8afe4c Mon Sep 17 00:00:00 2001
|
|
From: ManojGuptaBonda <mbonda@nvidia.com>
|
|
Date: Thu, 8 Oct 2020 11:48:51 +0530
|
|
Subject: [PATCH] VP9 Profile 2 VDPAU support
|
|
|
|
Added VDPAU to list of supported formats for VP9 420 10 and 12 bit
|
|
formats. Add VP9 10/12 Bit support for VDPAU
|
|
|
|
Signed-off-by: Philip Langdale <philipl@overt.org>
|
|
---
|
|
libavcodec/vp9.c | 6 ++++++
|
|
3 files changed, 8 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
|
|
index fd0bab14a239..8b89fd68e246 100644
|
|
--- a/libavcodec/vp9.c
|
|
+++ b/libavcodec/vp9.c
|
|
@@ -223,6 +223,9 @@ static int update_size(AVCodecContext *avctx, int w, int h)
|
|
#endif
|
|
#if CONFIG_VP9_VAAPI_HWACCEL
|
|
*fmtp++ = AV_PIX_FMT_VAAPI;
|
|
+#endif
|
|
+#if CONFIG_VP9_VDPAU_HWACCEL
|
|
+ *fmtp++ = AV_PIX_FMT_VDPAU;
|
|
#endif
|
|
break;
|
|
case AV_PIX_FMT_YUV420P12:
|
|
@@ -231,6 +234,9 @@ static int update_size(AVCodecContext *avctx, int w, int h)
|
|
#endif
|
|
#if CONFIG_VP9_VAAPI_HWACCEL
|
|
*fmtp++ = AV_PIX_FMT_VAAPI;
|
|
+#endif
|
|
+#if CONFIG_VP9_VDPAU_HWACCEL
|
|
+ *fmtp++ = AV_PIX_FMT_VDPAU;
|
|
#endif
|
|
break;
|
|
}
|