mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
handdetect: fix build on OS/X
gsthanddetect.h:84: error: expected specifier-qualifier-list before 'uint' https://bugzilla.gnome.org/show_bug.cgi?id=697305
This commit is contained in:
parent
a84e2ccbb8
commit
71743d13c4
2 changed files with 12 additions and 12 deletions
|
@ -465,11 +465,11 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
|
|||
s = gst_structure_new ("hand-gesture",
|
||||
"gesture", G_TYPE_STRING, "fist",
|
||||
"x", G_TYPE_UINT,
|
||||
(uint) (filter->best_r->x + filter->best_r->width * 0.5), "y",
|
||||
(guint) (filter->best_r->x + filter->best_r->width * 0.5), "y",
|
||||
G_TYPE_UINT,
|
||||
(uint) (filter->best_r->y + filter->best_r->height * 0.5), "width",
|
||||
G_TYPE_UINT, (uint) filter->best_r->width, "height", G_TYPE_UINT,
|
||||
(uint) filter->best_r->height, NULL);
|
||||
(guint) (filter->best_r->y + filter->best_r->height * 0.5), "width",
|
||||
G_TYPE_UINT, (guint) filter->best_r->width, "height", G_TYPE_UINT,
|
||||
(guint) filter->best_r->height, NULL);
|
||||
/* Init message element */
|
||||
m = gst_message_new_element (GST_OBJECT (filter), s);
|
||||
/* Send message */
|
||||
|
@ -559,11 +559,11 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
|
|||
s = gst_structure_new ("hand-gesture",
|
||||
"gesture", G_TYPE_STRING, "palm",
|
||||
"x", G_TYPE_UINT,
|
||||
(uint) (filter->best_r->x + filter->best_r->width * 0.5), "y",
|
||||
(guint) (filter->best_r->x + filter->best_r->width * 0.5), "y",
|
||||
G_TYPE_UINT,
|
||||
(uint) (filter->best_r->y + filter->best_r->height * 0.5), "width",
|
||||
G_TYPE_UINT, (uint) filter->best_r->width, "height", G_TYPE_UINT,
|
||||
(uint) filter->best_r->height, NULL);
|
||||
(guint) (filter->best_r->y + filter->best_r->height * 0.5), "width",
|
||||
G_TYPE_UINT, (guint) filter->best_r->width, "height", G_TYPE_UINT,
|
||||
(guint) filter->best_r->height, NULL);
|
||||
/* Init message element */
|
||||
m = gst_message_new_element (GST_OBJECT (filter), s);
|
||||
/* Send message */
|
||||
|
|
|
@ -81,10 +81,10 @@ struct _GstHanddetect
|
|||
gchar *profile_fist;
|
||||
gchar *profile_palm;
|
||||
/* region of interest */
|
||||
uint roi_x;
|
||||
uint roi_y;
|
||||
uint roi_width;
|
||||
uint roi_height;
|
||||
guint roi_x;
|
||||
guint roi_y;
|
||||
guint roi_width;
|
||||
guint roi_height;
|
||||
|
||||
/* opencv
|
||||
* cvImage - image from video cam,
|
||||
|
|
Loading…
Reference in a new issue