mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
opencv: erode: remove non-ip transform func
Transform is set to be done in place in gstcvdilateerode.c, so the in-place transform function is always used and the other is redundant. Removing it. https://bugzilla.gnome.org/show_bug.cgi?id=753885
This commit is contained in:
parent
97ee5abd49
commit
28b2ac7e65
1 changed files with 0 additions and 15 deletions
|
@ -57,8 +57,6 @@ G_DEFINE_TYPE (GstCvErode, gst_cv_erode, GST_TYPE_CV_DILATE_ERODE);
|
||||||
|
|
||||||
static GstFlowReturn gst_cv_erode_transform_ip (GstOpencvVideoFilter *
|
static GstFlowReturn gst_cv_erode_transform_ip (GstOpencvVideoFilter *
|
||||||
filter, GstBuffer * buf, IplImage * img);
|
filter, GstBuffer * buf, IplImage * img);
|
||||||
static GstFlowReturn gst_cv_erode_transform (GstOpencvVideoFilter * filter,
|
|
||||||
GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg);
|
|
||||||
|
|
||||||
/* initialize the cverode's class */
|
/* initialize the cverode's class */
|
||||||
static void
|
static void
|
||||||
|
@ -70,7 +68,6 @@ gst_cv_erode_class_init (GstCvErodeClass * klass)
|
||||||
gstopencvbasefilter_class = (GstOpencvVideoFilterClass *) klass;
|
gstopencvbasefilter_class = (GstOpencvVideoFilterClass *) klass;
|
||||||
|
|
||||||
gstopencvbasefilter_class->cv_trans_ip_func = gst_cv_erode_transform_ip;
|
gstopencvbasefilter_class->cv_trans_ip_func = gst_cv_erode_transform_ip;
|
||||||
gstopencvbasefilter_class->cv_trans_func = gst_cv_erode_transform;
|
|
||||||
gst_element_class_set_static_metadata (element_class,
|
gst_element_class_set_static_metadata (element_class,
|
||||||
"cverode",
|
"cverode",
|
||||||
"Transform/Effect/Video",
|
"Transform/Effect/Video",
|
||||||
|
@ -88,18 +85,6 @@ gst_cv_erode_init (GstCvErode * filter)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
|
||||||
gst_cv_erode_transform (GstOpencvVideoFilter * base, GstBuffer * buf,
|
|
||||||
IplImage * img, GstBuffer * outbuf, IplImage * outimg)
|
|
||||||
{
|
|
||||||
GstCvDilateErode *filter = GST_CV_DILATE_ERODE (base);
|
|
||||||
|
|
||||||
/* TODO support kernel as a parameter */
|
|
||||||
cvErode (img, outimg, NULL, filter->iterations);
|
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_cv_erode_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
|
gst_cv_erode_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
|
||||||
IplImage * img)
|
IplImage * img)
|
||||||
|
|
Loading…
Reference in a new issue