summaryrefslogtreecommitdiff
path: root/gst-libs/gst/opencv
diff options
context:
space:
mode:
authorPhilippe Renon <philippe_renon@yahoo.fr>2016-11-21 17:19:46 +0100
committerLuis <luis@goodgumbo>2016-11-21 17:37:46 +0100
commitd130a19c8991eaed824f22d0b1a1bd138a07e49f (patch)
tree3c0db4ec0a6f111ad31650144c520d6531622d6c /gst-libs/gst/opencv
parent6cc049452a062b413e4e43dabd854ca74c8c263c (diff)
downloadgstreamer-plugins-bad-d130a19c8991eaed824f22d0b1a1bd138a07e49f.tar.gz
opencv: forward declare opencv types
Forward declare opencv types to avoid exposing them in the API. https://bugzilla.gnome.org/show_bug.cgi?id=774223
Diffstat (limited to 'gst-libs/gst/opencv')
-rw-r--r--gst-libs/gst/opencv/gstopencvvideofilter.cpp2
-rw-r--r--gst-libs/gst/opencv/gstopencvvideofilter.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/gst-libs/gst/opencv/gstopencvvideofilter.cpp b/gst-libs/gst/opencv/gstopencvvideofilter.cpp
index 4b8e53670..b8db40fae 100644
--- a/gst-libs/gst/opencv/gstopencvvideofilter.cpp
+++ b/gst-libs/gst/opencv/gstopencvvideofilter.cpp
@@ -50,6 +50,8 @@
#include "gstopencvvideofilter.h"
#include "gstopencvutils.h"
+#include <opencv2/core/core_c.h>
+
GST_DEBUG_CATEGORY_STATIC (gst_opencv_video_filter_debug);
#define GST_CAT_DEFAULT gst_opencv_video_filter_debug
diff --git a/gst-libs/gst/opencv/gstopencvvideofilter.h b/gst-libs/gst/opencv/gstopencvvideofilter.h
index 7fbafe932..e74d4a2f3 100644
--- a/gst-libs/gst/opencv/gstopencvvideofilter.h
+++ b/gst-libs/gst/opencv/gstopencvvideofilter.h
@@ -46,9 +46,12 @@
#include <gst/gst.h>
#include <gst/video/gstvideofilter.h>
-#include <opencv2/core/core_c.h>
G_BEGIN_DECLS
+
+/* forward declare opencv type to avoid exposing them in this API */
+typedef struct _IplImage IplImage;
+
/* #defines don't like whitespacey bits */
#define GST_TYPE_OPENCV_VIDEO_FILTER \
(gst_opencv_video_filter_get_type())
@@ -60,7 +63,8 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OPENCV_VIDEO_FILTER))
#define GST_IS_OPENCV_VIDEO_FILTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OPENCV_VIDEO_FILTER))
-#define GST_OPENCV_VIDEO_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_OPENCV_VIDEO_FILTER,GstOpencvVideoFilterClass))
+#define GST_OPENCV_VIDEO_FILTER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_OPENCV_VIDEO_FILTER,GstOpencvVideoFilterClass))
#define GST_OPENCV_VIDEO_FILTER_CAST(obj) ((GstOpencvVideoFilter *) (obj))
typedef struct _GstOpencvVideoFilter GstOpencvVideoFilter;