summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-07-28 11:43:47 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-07-29 15:08:48 +0000
commitf1c3da15a36b9c2807daa75a9527ac47f420b905 (patch)
tree042b89d6b2cd31fb961cd5eb835aca162dfd338c /gst-libs
parentfc9a612e2cb6a9d66319d316edce71bb058022cd (diff)
downloadgstreamer-plugins-bad-f1c3da15a36b9c2807daa75a9527ac47f420b905.tar.gz
basecamerabinsrc: silence g-ir-scanner warnings
They're legit, but there's lots of other stuff that needs fixing up in this API, so just silence for now and add a FIXME and leave it for some other day. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1475>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h3
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h6
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h3
3 files changed, 11 insertions, 1 deletions
diff --git a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
index 105530b11..9318c01c6 100644
--- a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
+++ b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
@@ -130,9 +130,12 @@ struct _GstBaseCameraSrcClass
};
+/* FIXME: these should be properly namespaced if they're meant as exposed API */
+#ifndef __GI_SCANNER__
#define MIN_ZOOM 1.0f
#define MAX_ZOOM 10.0f
#define ZOOM_1X MIN_ZOOM
+#endif /* !__GI_SCANNER__ */
GST_BASE_CAMERA_BIN_SRC_API
gboolean gst_base_camera_src_set_mode (GstBaseCameraSrc *self, GstCameraBinMode mode);
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
index 6d075f513..bba15c0b1 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
@@ -31,6 +31,8 @@
G_BEGIN_DECLS
+/* FIXME: these should be properly namespaced if they're meant as exposed API */
+#ifndef __GI_SCANNER__
#define DEFAULT_WIDTH 640
#define DEFAULT_HEIGHT 480
#define DEFAULT_CAPTURE_WIDTH 800
@@ -38,8 +40,10 @@ G_BEGIN_DECLS
#define DEFAULT_FPS_N 0 /* makes it use the default */
#define DEFAULT_FPS_D 1
#define DEFAULT_ZOOM MIN_ZOOM
+#endif /* !__GI_SCANNER__ */
+/* FIXME: properly namespace these enums */
/**
* GstCameraBinMode:
* @MODE_IMAGE: image capture
@@ -54,7 +58,7 @@ typedef enum
MODE_VIDEO = 2,
} GstCameraBinMode;
-
+/* FIXME: should be CAMERA_BIN_MODE and camera_bin_mode */
#define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
GST_BASE_CAMERA_BIN_SRC_API
GType gst_camerabin_mode_get_type (void);
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
index f66a9b72f..a0f3c0f0c 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h
@@ -30,6 +30,9 @@
#include <gst/gst.h>
#include "basecamerabinsrc-prelude.h"
+/**
+ * GstCameraBinPreviewPipelineData: (skip)
+ */
typedef struct
{
GstElement *pipeline;