mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
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:
parent
089ef59c37
commit
992d9e3a20
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue