diff mbox

[FFmpeg-devel,v2] lavu/hwcontext_vaapi: add vaapi_format_map support for AYUV/Y210/Y410

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

Commit Message

Fu, Linjie Sept. 27, 2019, 5:46 a.m. UTC
VA_RT_FORMAT describes the desired sampling format for surface.

Add vaapi_format_map support for new pixel formats.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
---
This patch is part of the HEVC Rext support for
qsv and vaapi, refined and resent separately.

 libavutil/hwcontext_vaapi.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox

Patch

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index cf11764..d972b4e 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -116,6 +116,13 @@  static const VAAPIFormatDescriptor vaapi_format_map[] = {
 #endif
     MAP(UYVY, YUV422,  UYVY422, 0),
     MAP(YUY2, YUV422,  YUYV422, 0),
+#ifdef VA_FOURCC_Y210
+    MAP(Y210, YUV422_10,  Y210, 0),
+#endif
+    MAP(AYUV, YUV444,     AYUV, 0),
+#ifdef VA_FOURCC_Y410
+    MAP(Y410, YUV444_10,  Y410, 0),
+#endif
     MAP(411P, YUV411,  YUV411P, 0),
     MAP(422V, YUV422,  YUV440P, 0),
     MAP(444P, YUV444,  YUV444P, 0),