diff mbox series

[FFmpeg-devel,v2] lavu/hwcontext_vaapi: Add vaapi_drm_format_map support for x2rgb10

Message ID 20230809124554.160462-2-nowrep@gmail.com
State New
Headers show
Series [FFmpeg-devel,v2] lavu/hwcontext_vaapi: Add vaapi_drm_format_map support for x2rgb10 | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

David Rosca Aug. 9, 2023, 12:45 p.m. UTC
Support for allocating frames with x2rgb10 format was added
in c00264f5013, this adds support for importing DMA-BUFs.

v2: Fix #ifdef -> #if
---
 libavutil/hwcontext_vaapi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Xiang, Haihao Aug. 10, 2023, 5:35 a.m. UTC | #1
On Wo, 2023-08-09 at 14:45 +0200, David Rosca wrote:
> Support for allocating frames with x2rgb10 format was added
> in c00264f5013, this adds support for importing DMA-BUFs.
> 
> v2: Fix #ifdef -> #if

Could you add the update history in annotate, not git commit log ?

Thanks
Haihao

> ---
>  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
>
diff mbox series

Patch

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