[FFmpeg-cvslog] lavc/vp9: Add RGB* formats for VAAPI hwaccel

Fei Wang git at videolan.org
Mon Mar 27 07:49:20 EEST 2023


ffmpeg | branch: master | Fei Wang <fei.w.wang-at-intel.com at ffmpeg.org> | Tue Feb 28 15:01:00 2023 +0800| [ee8fc4f355c0b0c419109085f1d47248570cf3cc] | committer: Haihao Xiang

lavc/vp9: Add RGB* formats for VAAPI hwaccel

Signed-off-by: Fei Wang <fei.w.wang at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee8fc4f355c0b0c419109085f1d47248570cf3cc
---

 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;
         }



More information about the ffmpeg-cvslog mailing list