mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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>
This commit is contained in:
parent
fc9a612e2c
commit
f1c3da15a3
3 changed files with 11 additions and 1 deletions
|
@ -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 MIN_ZOOM 1.0f
|
||||||
#define MAX_ZOOM 10.0f
|
#define MAX_ZOOM 10.0f
|
||||||
#define ZOOM_1X MIN_ZOOM
|
#define ZOOM_1X MIN_ZOOM
|
||||||
|
#endif /* !__GI_SCANNER__ */
|
||||||
|
|
||||||
GST_BASE_CAMERA_BIN_SRC_API
|
GST_BASE_CAMERA_BIN_SRC_API
|
||||||
gboolean gst_base_camera_src_set_mode (GstBaseCameraSrc *self, GstCameraBinMode mode);
|
gboolean gst_base_camera_src_set_mode (GstBaseCameraSrc *self, GstCameraBinMode mode);
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
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_WIDTH 640
|
||||||
#define DEFAULT_HEIGHT 480
|
#define DEFAULT_HEIGHT 480
|
||||||
#define DEFAULT_CAPTURE_WIDTH 800
|
#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_N 0 /* makes it use the default */
|
||||||
#define DEFAULT_FPS_D 1
|
#define DEFAULT_FPS_D 1
|
||||||
#define DEFAULT_ZOOM MIN_ZOOM
|
#define DEFAULT_ZOOM MIN_ZOOM
|
||||||
|
#endif /* !__GI_SCANNER__ */
|
||||||
|
|
||||||
|
|
||||||
|
/* FIXME: properly namespace these enums */
|
||||||
/**
|
/**
|
||||||
* GstCameraBinMode:
|
* GstCameraBinMode:
|
||||||
* @MODE_IMAGE: image capture
|
* @MODE_IMAGE: image capture
|
||||||
|
@ -54,7 +58,7 @@ typedef enum
|
||||||
MODE_VIDEO = 2,
|
MODE_VIDEO = 2,
|
||||||
} GstCameraBinMode;
|
} GstCameraBinMode;
|
||||||
|
|
||||||
|
/* FIXME: should be CAMERA_BIN_MODE and camera_bin_mode */
|
||||||
#define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
|
#define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
|
||||||
GST_BASE_CAMERA_BIN_SRC_API
|
GST_BASE_CAMERA_BIN_SRC_API
|
||||||
GType gst_camerabin_mode_get_type (void);
|
GType gst_camerabin_mode_get_type (void);
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include "basecamerabinsrc-prelude.h"
|
#include "basecamerabinsrc-prelude.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GstCameraBinPreviewPipelineData: (skip)
|
||||||
|
*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
Loading…
Reference in a new issue