summaryrefslogtreecommitdiff
path: root/ext/opencv/gsttextoverlay.h
diff options
context:
space:
mode:
authorVanessa Chipirras Navalon <vanechipi@qtec.com>2016-04-01 12:08:53 +0200
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-04-01 11:58:24 +0100
commit78cb53ad3ca2e100e8f1f27708bf64b2b01a6929 (patch)
tree458d2583e8273c05f1444cc93ba6e9680fbd118b /ext/opencv/gsttextoverlay.h
parent0fa43aaab43b1f3d9d1d4a3beef229a5e2c73f45 (diff)
downloadgstreamer-plugins-bad-78cb53ad3ca2e100e8f1f27708bf64b2b01a6929.tar.gz
opencv: textoverlay: Ported to OpenCV version 3.1
imgproc_c.h is added because CvFont struct needs it in any 3.x version. We use this structure in GstOpencvTextOverlay. This keeps compatibility with 2.4. https://bugzilla.gnome.org/show_bug.cgi?id=760473
Diffstat (limited to 'ext/opencv/gsttextoverlay.h')
-rw-r--r--ext/opencv/gsttextoverlay.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opencv/gsttextoverlay.h b/ext/opencv/gsttextoverlay.h
index 65a7d756e..13d09fa96 100644
--- a/ext/opencv/gsttextoverlay.h
+++ b/ext/opencv/gsttextoverlay.h
@@ -48,6 +48,9 @@
#include <gstopencvvideofilter.h>
#include <opencv2/core/core_c.h>
+#if (CV_MAJOR_VERSION >= 3)
+#include <opencv2/imgproc/imgproc_c.h>
+#endif
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */