aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2020-04-22 13:23:03 +0800
committerLynne <dev@lynne.ee>2020-06-12 17:56:15 +0100
commitc00264f50132b51ecfe521603acdc4bb3172aa08 (patch)
treeb0ae32bf253dd10df689673cdcf3ebaaf34c2b77
parentc721b450141d6bbe1e977212a0bcb70118965c34 (diff)
downloadffmpeg-c00264f50132b51ecfe521603acdc4bb3172aa08.tar.gz
lavu/hwcontext_vaapi: add vaapi_format_map support for x2rgb10
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
-rw-r--r--libavutil/hwcontext_vaapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 5c4f5de04e..b31cf95850 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