Message ID | 20230228070100.1288363-1-fei.w.wang@intel.com |
---|---|
State | Accepted |
Commit | ee8fc4f355c0b0c419109085f1d47248570cf3cc |
Headers | show |
Series | [FFmpeg-devel,v1] lavc/vp9: Add RGB* formats for VAAPI hwaccel | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Di, 2023-02-28 at 15:01 +0800, Fei Wang wrote: > Signed-off-by: Fei Wang <fei.w.wang@intel.com> > --- > libavcodec/vp9.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c > index 7c0a246446..7ff387faf4 100644 > --- a/libavcodec/vp9.c > +++ b/libavcodec/vp9.c > @@ -239,6 +239,13 @@ static int update_size(AVCodecContext *avctx, int w, int > h) > case AV_PIX_FMT_YUV444P12: > #if CONFIG_VP9_VAAPI_HWACCEL > *fmtp++ = AV_PIX_FMT_VAAPI; > +#endif > + break; > + case AV_PIX_FMT_GBRP: > + case AV_PIX_FMT_GBRP10: > + case AV_PIX_FMT_GBRP12: > +#if CONFIG_VP9_VAAPI_HWACCEL > + *fmtp++ = AV_PIX_FMT_VAAPI; > #endif > break; > } LGTM, will apply Thanks Haihao
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7c0a246446..7ff387faf4 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -239,6 +239,13 @@ static int update_size(AVCodecContext *avctx, int w, int h) case AV_PIX_FMT_YUV444P12: #if CONFIG_VP9_VAAPI_HWACCEL *fmtp++ = AV_PIX_FMT_VAAPI; +#endif + break; + case AV_PIX_FMT_GBRP: + case AV_PIX_FMT_GBRP10: + case AV_PIX_FMT_GBRP12: +#if CONFIG_VP9_VAAPI_HWACCEL + *fmtp++ = AV_PIX_FMT_VAAPI; #endif break; }
Signed-off-by: Fei Wang <fei.w.wang@intel.com> --- libavcodec/vp9.c | 7 +++++++ 1 file changed, 7 insertions(+)