From 8b38614173e09f9acea00a906882da169bfe9e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 19 Apr 2023 12:46:10 +0200 Subject: [PATCH] video: add GST_VIDEO_DMA_DRM_CAPS_MAKE It is requried this macro because it doesn't define format field, neither drm-format which is suppossed to be generated in run-time. Part-of: --- girs/GstVideo-1.0.gir | 7 +++++++ .../gst-libs/gst/video/video-info-dma.h | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/girs/GstVideo-1.0.gir b/girs/GstVideo-1.0.gir index 1c5603d56a..c2ce3231bd 100644 --- a/girs/GstVideo-1.0.gir +++ b/girs/GstVideo-1.0.gir @@ -2812,6 +2812,13 @@ return to upstream/caller (indicating either GST_FLOW_ERROR or GST_FLOW_OK). + + Generic caps string for video wit DMABuf(GST_CAPS_FEATURE_MEMORY_DMABUF) +feature, for use in pad templates. As drm-format is supposed to be defined +at run-time it's not predefined here. + + + diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h b/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h index 15e6a87c48..a0f9246dae 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h @@ -25,6 +25,22 @@ G_BEGIN_DECLS +/** + * GST_VIDEO_DMA_DRM_CAPS_MAKE: + * + * Generic caps string for video wit DMABuf(GST_CAPS_FEATURE_MEMORY_DMABUF) + * feature, for use in pad templates. As drm-format is supposed to be defined + * at run-time it's not predefined here. + * + * Since: 1.24 + */ +#define GST_VIDEO_DMA_DRM_CAPS_MAKE \ + "video/x-raw(memory:DMABuf), " \ + "format = (string) DMA_DRM, " \ + "width = " GST_VIDEO_SIZE_RANGE ", " \ + "height = " GST_VIDEO_SIZE_RANGE ", " \ + "framerate = " GST_VIDEO_FPS_RANGE + typedef struct _GstVideoInfoDmaDrm GstVideoInfoDmaDrm; /**