diff options
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/opencv/gstopencvvideofilter.cpp | 2 | ||||
-rw-r--r-- | gst-libs/gst/opencv/gstopencvvideofilter.h | 8 |
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; |