diff mbox series

[FFmpeg-devel,v2,3/3] lavu/hwcontext_vaapi: add vaapi_format_map support for x2rgb10

Message ID 1587532983-20287-3-git-send-email-fei.w.wang@intel.com
State New
Headers show
Series [FFmpeg-devel,v2,1/3] lavu/pix_fmt: add new pixel format x2rgb10
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Fei Wang April 22, 2020, 5:23 a.m. UTC
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
---
 libavutil/hwcontext_vaapi.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index b306965..50727fb 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -136,6 +136,9 @@  static const VAAPIFormatDescriptor vaapi_format_map[] = {
 #endif
     MAP(ARGB, RGB32,   ARGB, 0),
     MAP(XRGB, RGB32,   0RGB, 0),
+#ifdef VA_FOURCC_X2R10G10B10
+    MAP(X2R10G10B10, RGB32_10, X2RGB10, 0),
+#endif
 };
 #undef MAP