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:
Todd Agulnick 2013-04-05 09:41:26 +01:00 committed by Tim-Philipp Müller
parent a84e2ccbb8
commit 71743d13c4
2 changed files with 12 additions and 12 deletions

View file

@ -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 */

View file

@ -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,