From 97ee5abd49cf211b0f682a77c250b612d7dcdb4f Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 20 Aug 2015 17:23:40 +0100 Subject: [PATCH] opencv: dilate: 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 --- ext/opencv/gstcvdilate.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ext/opencv/gstcvdilate.c b/ext/opencv/gstcvdilate.c index da0713d528..da1de368e7 100644 --- a/ext/opencv/gstcvdilate.c +++ b/ext/opencv/gstcvdilate.c @@ -57,8 +57,6 @@ G_DEFINE_TYPE (GstCvDilate, gst_cv_dilate, GST_TYPE_CV_DILATE_ERODE); static GstFlowReturn gst_cv_dilate_transform_ip (GstOpencvVideoFilter * filter, GstBuffer * buf, IplImage * img); -static GstFlowReturn gst_cv_dilate_transform (GstOpencvVideoFilter * filter, - GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg); /* initialize the cvdilate's class */ static void @@ -70,7 +68,6 @@ gst_cv_dilate_class_init (GstCvDilateClass * klass) gstopencvbasefilter_class = (GstOpencvVideoFilterClass *) klass; gstopencvbasefilter_class->cv_trans_ip_func = gst_cv_dilate_transform_ip; - gstopencvbasefilter_class->cv_trans_func = gst_cv_dilate_transform; gst_element_class_set_static_metadata (element_class, "cvdilate", "Transform/Effect/Video", @@ -88,18 +85,6 @@ gst_cv_dilate_init (GstCvDilate * filter) { } -static GstFlowReturn -gst_cv_dilate_transform (GstOpencvVideoFilter * base, GstBuffer * buf, - IplImage * img, GstBuffer * outbuf, IplImage * outimg) -{ - GstCvDilateErode *filter = GST_CV_DILATE_ERODE (base); - - /* TODO support kernel as a parameter */ - cvDilate (img, outimg, NULL, filter->iterations); - - return GST_FLOW_OK; -} - static GstFlowReturn gst_cv_dilate_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, IplImage * img)