diff options
author | Fei Wang <fei.w.wang-at-intel.com@ffmpeg.org> | 2023-02-28 15:01:00 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2023-03-27 11:53:37 +0800 |
commit | ee8fc4f355c0b0c419109085f1d47248570cf3cc (patch) | |
tree | 4cc16dcdf9e7c08199057e4ee5e9793acaf8dcc9 /libavcodec/vp9.c | |
parent | 174ca11d915c5258115b208285a232de94d6e14a (diff) | |
download | ffmpeg-ee8fc4f355c0b0c419109085f1d47248570cf3cc.tar.gz |
lavc/vp9: Add RGB* formats for VAAPI hwaccel
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7c0a246446..7ff387faf4 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -241,6 +241,13 @@ static int update_size(AVCodecContext *avctx, int w, int h) *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; } *fmtp++ = s->pix_fmt; |