[FFmpeg-cvslog] lavu/hwcontext_vaapi: Add vaapi_drm_format_map support for x2rgb10
David Rosca
git at videolan.org
Thu Aug 17 08:04:22 EEST 2023
ffmpeg | branch: master | David Rosca <nowrep at gmail.com> | Thu Aug 10 08:32:15 2023 +0200| [2ec58055f5c52535154c1f959acce878df22e18d] | committer: Haihao Xiang
lavu/hwcontext_vaapi: Add vaapi_drm_format_map support for x2rgb10
Support for allocating frames with x2rgb10 format was added
in c00264f5013, this adds support for importing DMA-BUFs.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ec58055f5c52535154c1f959acce878df22e18d
---
libavutil/hwcontext_vaapi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 6c3a227ddd..558fed94c6 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -1048,6 +1048,9 @@ static const struct {
#if defined(VA_FOURCC_Y412) && defined(DRM_FORMAT_XVYU12_16161616)
DRM_MAP(Y412, 1, DRM_FORMAT_XVYU12_16161616),
#endif
+#if defined(VA_FOURCC_X2R10G10B10) && defined(DRM_FORMAT_XRGB2101010)
+ DRM_MAP(X2R10G10B10, 1, DRM_FORMAT_XRGB2101010),
+#endif
};
#undef DRM_MAP
More information about the ffmpeg-cvslog
mailing list