libs: filter: gst_vaapi_filter_get_memory_types()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/122>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-05-26 16:18:32 +02:00
parent 089ef59c37
commit 992d9e3a20
2 changed files with 21 additions and 0 deletions

View file

@ -1947,6 +1947,24 @@ gst_vaapi_filter_append_caps (GstVaapiFilter * filter, GstStructure * structure)
}
/**
* gst_vaapi_filter_get_memory_types:
* @filter: a #GstVaapiFilter
*
* Gets the surface's memory types available in @filter's context.
*
* Returns: surface's memory types available in @filter context.
**/
guint
gst_vaapi_filter_get_memory_types (GstVaapiFilter * filter)
{
g_return_val_if_fail (filter != NULL, FALSE);
if (!ensure_attributes (filter))
return 0;
return filter->attribs->mem_types;
}
/**
* gst_vaapi_filter_set_cropping_rectangle:
* @filter: a #GstVaapiFilter

View file

@ -219,6 +219,9 @@ gst_vaapi_filter_set_format (GstVaapiFilter * filter, GstVideoFormat format);
gboolean
gst_vaapi_filter_append_caps (GstVaapiFilter * filter, GstStructure * structure);
guint
gst_vaapi_filter_get_memory_types (GstVaapiFilter * filter);
gboolean
gst_vaapi_filter_set_cropping_rectangle (GstVaapiFilter * filter,
const GstVaapiRectangle * rect);