[FFmpeg-devel] [PATCH] lavc/vaapi_decode: Add 4:4:4 8/10 bit decode support for VP9

Linjie Fu linjie.fu at intel.com
Fri Sep 20 05:49:17 EEST 2019


Add decode support for VP9 4:4:4 8 bit and 10 bit.
Supported since ICL.

Signed-off-by: Linjie Fu <linjie.fu at intel.com>
---
 libavcodec/vaapi_decode.c | 2 ++
 libavcodec/vp9.c          | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 69512e1..1a48e3b 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -396,7 +396,9 @@ static const struct {
     MAP(VP9,         VP9_0,           VP9Profile0 ),
 #endif
 #if VA_CHECK_VERSION(0, 39, 0)
+    MAP(VP9,         VP9_1,           VP9Profile1 ),
     MAP(VP9,         VP9_2,           VP9Profile2 ),
+    MAP(VP9,         VP9_3,           VP9Profile3 ),
 #endif
 #undef MAP
 };
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index f16462b..d9003d8 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -211,6 +211,12 @@ static int update_size(AVCodecContext *avctx, int w, int h)
             *fmtp++ = AV_PIX_FMT_VAAPI;
 #endif
             break;
+        case AV_PIX_FMT_YUV444P:
+        case AV_PIX_FMT_YUV444P10:
+#if CONFIG_VP9_VAAPI_HWACCEL
+            *fmtp++ = AV_PIX_FMT_VAAPI;
+#endif
+            break;
         }
 
         *fmtp++ = s->pix_fmt;
-- 
2.7.4



More information about the ffmpeg-devel mailing list