cvsmooth: port to C++

Change the file extension to cpp and add it into Makefile for consistency
with other elements of opencv and because Opencv not support C language in
new API 2.4.11.

https://bugzilla.gnome.org/show_bug.cgi?id=754148
This commit is contained in:
Vanessa Chipirrás Navalón 2015-10-02 18:10:32 +01:00 committed by Luis de Bethencourt
parent 936665dfd6
commit ae55a537e6
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ libgstopencv_la_SOURCES = gstopencv.cpp \
gstcvequalizehist.c \ gstcvequalizehist.c \
gstcverode.c \ gstcverode.c \
gstcvlaplace.c \ gstcvlaplace.c \
gstcvsmooth.c \ gstcvsmooth.cpp \
gstcvsobel.c \ gstcvsobel.c \
gstedgedetect.cpp \ gstedgedetect.cpp \
gstfaceblur.cpp \ gstfaceblur.cpp \

View File

@ -143,21 +143,21 @@ gst_cv_smooth_class_init (GstCvSmoothClass * klass)
"type", "type",
"Smooth Type", "Smooth Type",
GST_TYPE_CV_SMOOTH_TYPE, GST_TYPE_CV_SMOOTH_TYPE,
DEFAULT_CV_SMOOTH_TYPE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS) DEFAULT_CV_SMOOTH_TYPE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))
); );
g_object_class_install_property (gobject_class, PROP_WIDTH, g_object_class_install_property (gobject_class, PROP_WIDTH,
g_param_spec_int ("width", "width (aperture width)", g_param_spec_int ("width", "width (aperture width)",
"The aperture width (Must be positive and odd)." "The aperture width (Must be positive and odd)."
"Check cvSmooth OpenCV docs: http://opencv.willowgarage.com" "Check cvSmooth OpenCV docs: http://opencv.willowgarage.com"
"/documentation/image_filtering.html#cvSmooth", 1, G_MAXINT, "/documentation/image_filtering.html#cvSmooth", 1, G_MAXINT,
DEFAULT_WIDTH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); DEFAULT_WIDTH, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (gobject_class, PROP_HEIGHT, g_object_class_install_property (gobject_class, PROP_HEIGHT,
g_param_spec_int ("height", "height (aperture height)", g_param_spec_int ("height", "height (aperture height)",
"The aperture height, if zero, the width is used." "The aperture height, if zero, the width is used."
"(Must be positive and odd or zero, unuset in median and bilateral " "(Must be positive and odd or zero, unuset in median and bilateral "
"types). Check cvSmooth OpenCV docs: http://opencv.willowgarage.com" "types). Check cvSmooth OpenCV docs: http://opencv.willowgarage.com"
"/documentation/image_filtering.html#cvSmooth", 0, G_MAXINT, "/documentation/image_filtering.html#cvSmooth", 0, G_MAXINT,
DEFAULT_HEIGHT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); DEFAULT_HEIGHT, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (gobject_class, PROP_COLORSIGMA, g_object_class_install_property (gobject_class, PROP_COLORSIGMA,
g_param_spec_double ("color", "color (gaussian standard deviation or " g_param_spec_double ("color", "color (gaussian standard deviation or "
"color sigma", "color sigma",
@ -167,14 +167,14 @@ gst_cv_smooth_class_init (GstCvSmoothClass * klass)
"Check cvSmooth OpenCV docs: http://opencv.willowgarage.com" "Check cvSmooth OpenCV docs: http://opencv.willowgarage.com"
"/documentation/image_filtering.html#cvSmooth", "/documentation/image_filtering.html#cvSmooth",
0, G_MAXDOUBLE, DEFAULT_COLORSIGMA, 0, G_MAXDOUBLE, DEFAULT_COLORSIGMA,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (gobject_class, PROP_SPATIALSIGMA, g_object_class_install_property (gobject_class, PROP_SPATIALSIGMA,
g_param_spec_double ("spatial", "spatial (spatial sigma, bilateral only)", g_param_spec_double ("spatial", "spatial (spatial sigma, bilateral only)",
"Only used in bilateral type, means the spatial-sigma." "Only used in bilateral type, means the spatial-sigma."
"Check cvSmooth OpenCV docs: http://opencv.willowgarage.com" "Check cvSmooth OpenCV docs: http://opencv.willowgarage.com"
"/documentation/image_filtering.html#cvSmooth", "/documentation/image_filtering.html#cvSmooth",
0, G_MAXDOUBLE, DEFAULT_SPATIALSIGMA, 0, G_MAXDOUBLE, DEFAULT_SPATIALSIGMA,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"cvsmooth", "cvsmooth",