mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
videometa: Add docs to the region of interest meta functions
This commit is contained in:
parent
7d16f95730
commit
97fc9b5f86
1 changed files with 41 additions and 0 deletions
|
@ -624,6 +624,19 @@ gst_video_region_of_interest_meta_get_info (void)
|
||||||
return meta_info;
|
return meta_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_buffer_get_video_region_of_interest_meta_id:
|
||||||
|
* @buffer: a #GstBuffer
|
||||||
|
* @id: a metadata id
|
||||||
|
*
|
||||||
|
* Find the #GstVideoRegionOfInterestMeta on @buffer with the given @id.
|
||||||
|
*
|
||||||
|
* Buffers can contain multiple #GstVideoRegionOfInterestMeta metadata items if
|
||||||
|
* multiple regions of interests are marked on a frame.
|
||||||
|
*
|
||||||
|
* Returns: the #GstVideoeRegionOfInterestMeta with @id or %NULL when there is
|
||||||
|
* no such metadata on @buffer.
|
||||||
|
*/
|
||||||
GstVideoRegionOfInterestMeta *
|
GstVideoRegionOfInterestMeta *
|
||||||
gst_buffer_get_video_region_of_interest_meta_id (GstBuffer * buffer, gint id)
|
gst_buffer_get_video_region_of_interest_meta_id (GstBuffer * buffer, gint id)
|
||||||
{
|
{
|
||||||
|
@ -642,6 +655,20 @@ gst_buffer_get_video_region_of_interest_meta_id (GstBuffer * buffer, gint id)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_buffer_add_video_region_of_interest_meta:
|
||||||
|
* @buffer: a #GstBuffer
|
||||||
|
* @roi_type: Type of the region of interest (e.g. "face")
|
||||||
|
* @x: X position
|
||||||
|
* @y: Y position
|
||||||
|
* @w: width
|
||||||
|
* @h: height
|
||||||
|
*
|
||||||
|
* Attaches #GstVideoRegionOfInterestMeta metadata to @buffer with the given
|
||||||
|
* parameters.
|
||||||
|
*
|
||||||
|
* Returns: the #GstVideoRegionOfInterestMeta on @buffer.
|
||||||
|
*/
|
||||||
GstVideoRegionOfInterestMeta *
|
GstVideoRegionOfInterestMeta *
|
||||||
gst_buffer_add_video_region_of_interest_meta (GstBuffer * buffer,
|
gst_buffer_add_video_region_of_interest_meta (GstBuffer * buffer,
|
||||||
const gchar * roi_type, guint x, guint y, guint w, guint h)
|
const gchar * roi_type, guint x, guint y, guint w, guint h)
|
||||||
|
@ -650,6 +677,20 @@ gst_buffer_add_video_region_of_interest_meta (GstBuffer * buffer,
|
||||||
g_quark_from_string (roi_type), x, y, w, h);
|
g_quark_from_string (roi_type), x, y, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_buffer_add_video_region_of_interest_meta_id:
|
||||||
|
* @buffer: a #GstBuffer
|
||||||
|
* @roi_type: Type of the region of interest (e.g. "face")
|
||||||
|
* @x: X position
|
||||||
|
* @y: Y position
|
||||||
|
* @w: width
|
||||||
|
* @h: height
|
||||||
|
*
|
||||||
|
* Attaches #GstVideoRegionOfInterestMeta metadata to @buffer with the given
|
||||||
|
* parameters.
|
||||||
|
*
|
||||||
|
* Returns: the #GstVideoRegionOfInterestMeta on @buffer.
|
||||||
|
*/
|
||||||
GstVideoRegionOfInterestMeta *
|
GstVideoRegionOfInterestMeta *
|
||||||
gst_buffer_add_video_region_of_interest_meta_id (GstBuffer * buffer,
|
gst_buffer_add_video_region_of_interest_meta_id (GstBuffer * buffer,
|
||||||
GQuark roi_type, guint x, guint y, guint w, guint h)
|
GQuark roi_type, guint x, guint y, guint w, guint h)
|
||||||
|
|
Loading…
Reference in a new issue