We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
gstopencvvideofilter.cpp
libgstopencv_@GST_API_VERSION@_la_CXXFLAGS = \
+ $(GST_PLUGINS_BAD_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) \
$(OPENCV_CFLAGS)
libgstopencv_@GST_API_VERSION@includedir = \
$(includedir)/gstreamer-@GST_API_VERSION@/gst/opencv
libgstopencv_@GST_API_VERSION@include_HEADERS = \
+ opencv-prelude.h \
gstopencvutils.h \
gstopencvvideofilter.h
#include <gst/gst.h>
#include <gst/video/video.h>
+#include <gst/opencv/opencv-prelude.h>
G_BEGIN_DECLS
-GST_EXPORT
+GST_OPENCV_API
gboolean gst_opencv_parse_iplimage_params_from_caps
(GstCaps * caps, gint * width, gint * height, gint * depth,
gint * channels, GError ** err);
-GST_EXPORT
+GST_OPENCV_API
gboolean gst_opencv_iplimage_params_from_video_info
(GstVideoInfo * info, gint * width, gint * height, gint * depth,
gint * channels, GError ** err);
-GST_EXPORT
+GST_OPENCV_API
gboolean gst_opencv_cv_image_type_from_video_format (GstVideoFormat format,
int * cv_type, GError ** err);
-GST_EXPORT
+GST_OPENCV_API
GstCaps * gst_opencv_caps_from_cv_image_type (int cv_type);
G_END_DECLS
#include <gst/gst.h>
#include <gst/video/gstvideofilter.h>
+#include <gst/opencv/opencv-prelude.h>
G_BEGIN_DECLS
GstOpencvVideoFilterSetCaps cv_set_caps;
};
-GST_EXPORT
+GST_OPENCV_API
GType gst_opencv_video_filter_get_type (void);
-GST_EXPORT
+GST_OPENCV_API
void gst_opencv_video_filter_set_in_place (GstOpencvVideoFilter * transform,
gboolean ip);
]
opencv_headers = [
+ 'opencv-prelude.h',
'gstopencvutils.h',
'gstopencvvideofilter.h',
]
--- /dev/null
+/* GStreamer OpenCV Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * opencv-prelude.h: prelude include header for gst-opencv library
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_OPENCV_PRELUDE_H__
+#define __GST_OPENCV_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_OPENCV_API
+#define GST_OPENCV_API GST_EXPORT
+#endif
+
+#endif /* __GST_OPENCV_PRELUDE_H__ */