va: caps: added gst_caps_is_raw()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1667>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-10-08 14:10:41 +02:00
parent 6a8fa67f42
commit 482e93b4d8
2 changed files with 7 additions and 0 deletions

View file

@ -504,3 +504,9 @@ gst_caps_is_vamemory (GstCaps * caps)
{
return _caps_is (caps, "memory:VAMemory");
}
gboolean
gst_caps_is_raw (GstCaps * caps)
{
return _caps_is (caps, GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY);
}

View file

@ -42,6 +42,7 @@ gboolean gst_caps_set_format_array (GstCaps * caps,
gboolean gst_caps_is_dmabuf (GstCaps * caps);
gboolean gst_caps_is_vamemory (GstCaps * caps);
gboolean gst_caps_is_raw (GstCaps * caps);
G_END_DECLS