diff mbox series

[FFmpeg-devel] VP9 Profile 2 VDPAU support

Message ID 20201008061851.27736-1-mbonda@nvidia.com
State Accepted
Headers show
Series [FFmpeg-devel] VP9 Profile 2 VDPAU support
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

ManojGuptaBonda Oct. 8, 2020, 6:18 a.m. UTC
Added VDPAU to list of supported formats for VP9 420 10 and 12 bit
formats. Add VP9 10/12 Bit support for VDPAU
---
 libavcodec/vp9.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Philip Langdale Oct. 8, 2020, 6:26 p.m. UTC | #1
On Thu, 8 Oct 2020 11:48:51 +0530
ManojGuptaBonda <mbonda@nvidia.com> wrote:

> Added VDPAU to list of supported formats for VP9 420 10 and 12 bit
> formats. Add VP9 10/12 Bit support for VDPAU
> ---
>  libavcodec/vp9.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
> index fd0bab14a2..8b89fd68e2 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;
>          }

Pushed. Thanks,


--phil
diff mbox series

Patch

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index fd0bab14a2..8b89fd68e2 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;
         }