aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gstreamer-plugins-bad
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-05-09 01:10:11 +0000
committerSteve Wills <swills@FreeBSD.org>2018-05-09 01:10:11 +0000
commit532105a93cf41f4fe7a4666875c156eabae2ae75 (patch)
tree61c3b03ca83f7ee408d0e57d069b884202696225 /multimedia/gstreamer-plugins-bad
parent07485881725782b3552ec708bd2ec7ca164f918a (diff)
downloadports-532105a93cf41f4fe7a4666875c156eabae2ae75.tar.gz
ports-532105a93cf41f4fe7a4666875c156eabae2ae75.zip
graphics/opencv: Update to 3.4.1
PR: 210505 Submitted by: rozhuk.im@gmail.com (partially, further work was done) Exp-run by: antoine
Notes
Notes: svn path=/head/; revision=469420
Diffstat (limited to 'multimedia/gstreamer-plugins-bad')
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.c12
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.h13
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.c42
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.h13
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gsttemplatematch.c11
5 files changed, 91 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.c b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.c
new file mode 100644
index 000000000000..26dd078740a2
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.c
@@ -0,0 +1,12 @@
+--- ext/opencv/gstfaceblur.c.orig 2011-12-30 13:24:28.000000000 -0500
++++ ext/opencv/gstfaceblur.c 2018-05-02 15:58:32.070297000 -0400
+@@ -268,9 +268,7 @@ gst_face_blur_chain (GstPad * pad, GstBuffer * buf)
+ faces =
+ cvHaarDetectObjects (filter->cvGray, filter->cvCascade,
+ filter->cvStorage, 1.1, 2, 0, cvSize (30, 30)
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+ , cvSize (32, 32)
+-#endif
+ );
+
+ if (faces && faces->total > 0) {
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.h b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.h
new file mode 100644
index 000000000000..268c779bc71e
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfaceblur.h
@@ -0,0 +1,13 @@
+--- ext/opencv/gstfaceblur.h.orig 2011-12-30 13:24:28.000000000 -0500
++++ ext/opencv/gstfaceblur.h 2018-05-02 15:58:32.071694000 -0400
+@@ -49,10 +49,6 @@
+ #include <gst/gst.h>
+ #include <cv.h>
+
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+-#include <opencv2/objdetect/objdetect.hpp>
+-#endif
+-
+ G_BEGIN_DECLS
+ /* #defines don't like whitespacey bits */
+ #define GST_TYPE_FACE_BLUR \
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.c b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.c
new file mode 100644
index 000000000000..e327887dded6
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.c
@@ -0,0 +1,42 @@
+--- ext/opencv/gstfacedetect.c.orig 2011-12-30 13:24:28.000000000 -0500
++++ ext/opencv/gstfacedetect.c 2018-05-02 15:58:32.073221000 -0400
+@@ -502,9 +502,7 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * b
+ cvHaarDetectObjects (filter->cvGray, filter->cvFaceDetect,
+ filter->cvStorage, filter->scale_factor, filter->min_neighbors,
+ filter->flags, cvSize (filter->min_size_width, filter->min_size_height)
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+ , cvSize (filter->min_size_width + 2, filter->min_size_height + 2)
+-#endif
+ );
+
+ if (faces && faces->total > 0) {
+@@ -534,9 +532,7 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * b
+ cvHaarDetectObjects (filter->cvGray, filter->cvNoseDetect,
+ filter->cvStorage, filter->scale_factor, filter->min_neighbors,
+ filter->flags, cvSize (mw, mh)
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+ , cvSize (mw + 2, mh + 2)
+-#endif
+ );
+ have_nose = (nose && nose->total);
+ cvResetImageROI (filter->cvGray);
+@@ -550,9 +546,7 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * b
+ cvHaarDetectObjects (filter->cvGray, filter->cvMouthDetect,
+ filter->cvStorage, filter->scale_factor, filter->min_neighbors,
+ filter->flags, cvSize (mw, mh)
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+ , cvSize (mw + 2, mh + 2)
+-#endif
+ );
+ have_mouth = (mouth && mouth->total);
+ cvResetImageROI (filter->cvGray);
+@@ -566,9 +560,7 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * b
+ cvHaarDetectObjects (filter->cvGray, filter->cvEyesDetect,
+ filter->cvStorage, filter->scale_factor, filter->min_neighbors,
+ filter->flags, cvSize (mw, mh)
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+ , cvSize (mw + 2, mh + 2)
+-#endif
+ );
+ have_eyes = (eyes && eyes->total);
+ cvResetImageROI (filter->cvGray);
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.h b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.h
new file mode 100644
index 000000000000..31d7a3965d12
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gstfacedetect.h
@@ -0,0 +1,13 @@
+--- ext/opencv/gstfacedetect.h.orig 2011-12-30 13:24:28.000000000 -0500
++++ ext/opencv/gstfacedetect.h 2018-05-02 15:58:32.074608000 -0400
+@@ -51,9 +51,7 @@
+ #include <cv.h>
+ #include "gstopencvvideofilter.h"
+
+-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
+-#include <opencv2/objdetect/objdetect.hpp>
+-#endif
++#include <opencv2/imgcodecs/imgcodecs_c.h>
+
+ G_BEGIN_DECLS
+ /* #defines don't like whitespacey bits */
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gsttemplatematch.c b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gsttemplatematch.c
new file mode 100644
index 000000000000..79339d7b1307
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_opencv_gsttemplatematch.c
@@ -0,0 +1,11 @@
+--- ./ext/opencv/gsttemplatematch.c.orig 2018-05-02 20:00:45.872112000 +0000
++++ ./ext/opencv/gsttemplatematch.c 2018-05-02 20:01:19.130929000 +0000
+@@ -66,6 +66,8 @@
+ #include "gstopencvutils.h"
+ #include "gsttemplatematch.h"
+
++#include "opencv2/imgcodecs/imgcodecs_c.h"
++
+ GST_DEBUG_CATEGORY_STATIC (gst_template_match_debug);
+ #define GST_CAT_DEFAULT gst_template_match_debug
+