mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
opencv: cast paramspec flags to fix the build for c++
All the other elements in this plugin do this already.
This commit is contained in:
parent
508451005d
commit
af27ee3aa7
1 changed files with 7 additions and 7 deletions
|
@ -191,21 +191,21 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
|
|||
g_param_spec_boolean ("display",
|
||||
"Display",
|
||||
"Whether the detected hands are highlighted in output frame",
|
||||
TRUE, G_PARAM_READWRITE)
|
||||
TRUE, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PROFILE_FIST,
|
||||
g_param_spec_string ("profile_fist",
|
||||
"Profile_fist",
|
||||
"Location of HAAR cascade file (fist gesture)",
|
||||
HAAR_FILE_FIST, G_PARAM_READWRITE)
|
||||
HAAR_FILE_FIST, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PROFILE_PALM,
|
||||
g_param_spec_string ("profile_palm",
|
||||
"Profile_palm",
|
||||
"Location of HAAR cascade file (palm gesture)",
|
||||
HAAR_FILE_PALM, G_PARAM_READWRITE)
|
||||
HAAR_FILE_PALM, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
/* FIXME: property name needs fixing */
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
@ -213,7 +213,7 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
|
|||
g_param_spec_int ("ROI_X",
|
||||
"ROI_X",
|
||||
"X of left-top pointer in region of interest \nGestures in the defined region of interest will emit messages",
|
||||
0, INT_MAX, 0, G_PARAM_READWRITE)
|
||||
0, INT_MAX, 0, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
/* FIXME: property name needs fixing */
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
@ -221,7 +221,7 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
|
|||
g_param_spec_int ("ROI_Y",
|
||||
"ROI_Y",
|
||||
"Y of left-top pointer in region of interest \nGestures in the defined region of interest will emit messages",
|
||||
0, INT_MAX, 0, G_PARAM_READWRITE)
|
||||
0, INT_MAX, 0, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
/* FIXME: property name needs fixing */
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
@ -229,7 +229,7 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
|
|||
g_param_spec_int ("ROI_WIDTH",
|
||||
"ROI_WIDTH",
|
||||
"WIDTH of left-top pointer in region of interest \nGestures in the defined region of interest will emit messages",
|
||||
0, INT_MAX, 0, G_PARAM_READWRITE)
|
||||
0, INT_MAX, 0, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
/* FIXME: property name needs fixing */
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
@ -237,7 +237,7 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
|
|||
g_param_spec_int ("ROI_HEIGHT",
|
||||
"ROI_HEIGHT",
|
||||
"HEIGHT of left-top pointer in region of interest \nGestures in the defined region of interest will emit messages",
|
||||
0, INT_MAX, 0, G_PARAM_READWRITE)
|
||||
0, INT_MAX, 0, (GParamFlags)G_PARAM_READWRITE)
|
||||
);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
|
|
Loading…
Reference in a new issue