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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4981>
This commit is contained in:
Víctor Manuel Jáquez Leal 2023-04-19 12:46:10 +02:00 committed by GStreamer Marge Bot
parent bc48588818
commit 8b38614173
2 changed files with 23 additions and 0 deletions

View file

@ -2812,6 +2812,13 @@ return to upstream/caller (indicating either GST_FLOW_ERROR or GST_FLOW_OK).</do
</parameter>
</parameters>
</function-macro>
<constant name="VIDEO_DMA_DRM_CAPS_MAKE" value="video/x-raw(memory:DMABuf), format = (string) DMA_DRM, width = " c:type="GST_VIDEO_DMA_DRM_CAPS_MAKE" version="1.24">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h">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.</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.h"/>
<type name="utf8" c:type="gchar*"/>
</constant>
<function-macro name="VIDEO_ENCODER" c:identifier="GST_VIDEO_ENCODER" introspectable="0">
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.h"/>
<parameters>

View file

@ -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;
/**