[Bug 704070] video: Add Region Of Interest (roi) meta
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jul 15 07:47:48 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=704070
GStreamer | gst-plugins-base | 1.x
--- Comment #7 from Miguel (elmiguelao) Casas-Sanchez <miguelecasassanchez at gmail.com> 2013-07-15 14:47:44 UTC ---
(In reply to comment #6)
> Review of attachment 249190 [details]:
>
> Almost ready :)
>
> ::: gst-libs/gst/video/gstvideometa.c
> @@ +532,3 @@
> +/* Region of Interest Meta implementation
> *******************************************/
> +GQuark
> +gst_video_region_of_interest_meta_bounding_box_get_quark (void)
>
> I don't think that's what was meant :) Just mention in the documentation of
> this GstMeta that it only describes a bounding box for the ROI, and not the
> exact shape
>
Ok, I added the documentation but left the GQuark part :)
> @@ +562,3 @@
> +{
> + GstVideoRegionOfInterestMeta *dmeta, *smeta;
> +
>
> Need to copy the parent_id and id here too
Done.
>
> @@ +647,3 @@
> +GstVideoRegionOfInterestMeta *
> +gst_buffer_add_video_region_of_interest_meta_by_name (GstBuffer * buffer,
> + gchar * roi_type,
>
> const gchar *
>
Done.
> @@ +657,3 @@
> + meta = (GstVideoRegionOfInterestMeta *) gst_buffer_add_meta (buffer,
> + GST_VIDEO_REGION_OF_INTEREST_META_INFO, NULL);
> + meta->roi_type = g_quark_from_string (roi_type);
>
> Just let this function call the other one that takes the GQuark
>
> @@ +682,3 @@
> + meta->y = y;
> + meta->w = w;
> + meta->h = h;
>
> Initialize the parent_id and id here
>
Both to 0.
> ::: gst-libs/gst/video/gstvideometa.h
> @@ +39,3 @@
> +#define GST_VIDEO_REGION_OF_INTEREST_META_API_TYPE
> (gst_video_region_of_interest_meta_api_get_type())
> +#define GST_VIDEO_REGION_OF_INTEREST_META_INFO
> (gst_video_region_of_interest_meta_get_info())
> +typedef struct _GstVideoRegionOfInterestMeta GstVideoRegionOfInterestMeta;
>
> Remove this
I moved it together with the rest GstVideoRegionOfInterestMeta since I use them
in the manipulators, and the other metas have them too :S
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list