Message ID | 20201008061851.27736-1-mbonda@nvidia.com |
---|---|
State | Accepted |
Headers | show |
Series | [FFmpeg-devel] VP9 Profile 2 VDPAU support | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
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 --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; }