diff mbox

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

Message ID 1568947757-18175-1-git-send-email-linjie.fu@intel.com
State New
Headers show

Commit Message

Fu, Linjie Sept. 20, 2019, 2:49 a.m. UTC
Add decode support for VP9 4:4:4 8 bit and 10 bit.
Supported since ICL.

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

Patch

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;