mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
vaapipluginutil: add support for DMABuf caps feature
https://bugzilla.gnome.org/show_bug.cgi?id=755072 Signed-off-by: Julien Isorce <j.isorce@samsung.com> Signed-off-by: Victor Jaquez <vjaquez@igalia.com> vaapipluginutil: add support for DMABuf caps feature
This commit is contained in:
parent
f578515988
commit
953afe9d17
2 changed files with 9 additions and 0 deletions
|
@ -540,6 +540,7 @@ gst_vaapi_find_preferred_caps_feature (GstPad * pad, GstCaps * allowed_caps,
|
||||||
guint i, j, num_structures;
|
guint i, j, num_structures;
|
||||||
GstCaps *out_caps, *caps = NULL;
|
GstCaps *out_caps, *caps = NULL;
|
||||||
static const guint feature_list[] = { GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE,
|
static const guint feature_list[] = { GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE,
|
||||||
|
GST_VAAPI_CAPS_FEATURE_DMABUF,
|
||||||
GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META,
|
GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META,
|
||||||
GST_VAAPI_CAPS_FEATURE_SYSTEM_MEMORY,
|
GST_VAAPI_CAPS_FEATURE_SYSTEM_MEMORY,
|
||||||
};
|
};
|
||||||
|
@ -627,6 +628,9 @@ gst_vaapi_caps_feature_to_string (GstVaapiCapsFeature feature)
|
||||||
case GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META:
|
case GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META:
|
||||||
str = GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META;
|
str = GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META;
|
||||||
break;
|
break;
|
||||||
|
case GST_VAAPI_CAPS_FEATURE_DMABUF:
|
||||||
|
str = GST_CAPS_FEATURE_MEMORY_DMABUF;
|
||||||
|
break;
|
||||||
case GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE:
|
case GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE:
|
||||||
str = GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE;
|
str = GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -66,6 +66,7 @@ typedef enum
|
||||||
GST_VAAPI_CAPS_FEATURE_NOT_NEGOTIATED,
|
GST_VAAPI_CAPS_FEATURE_NOT_NEGOTIATED,
|
||||||
GST_VAAPI_CAPS_FEATURE_SYSTEM_MEMORY,
|
GST_VAAPI_CAPS_FEATURE_SYSTEM_MEMORY,
|
||||||
GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META,
|
GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META,
|
||||||
|
GST_VAAPI_CAPS_FEATURE_DMABUF,
|
||||||
GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE,
|
GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE,
|
||||||
} GstVaapiCapsFeature;
|
} GstVaapiCapsFeature;
|
||||||
|
|
||||||
|
@ -110,6 +111,10 @@ gst_vaapi_caps_feature_contains (const GstCaps * caps,
|
||||||
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
|
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
|
||||||
GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }")
|
GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }")
|
||||||
|
|
||||||
|
#define GST_VAAPI_MAKE_DMABUF_CAPS \
|
||||||
|
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
|
||||||
|
GST_CAPS_FEATURE_MEMORY_DMABUF, "{ NV12, I420, YV12 }")
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_caps_set_interlaced (GstCaps * caps, GstVideoInfo * vip);
|
gst_caps_set_interlaced (GstCaps * caps, GstVideoInfo * vip);
|
||||||
|
|
Loading…
Reference in a new issue