summaryrefslogtreecommitdiff
path: root/gst-libs/gst/basecamerabinsrc
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-06-23 10:03:04 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-06-23 13:02:57 -0400
commit059e8ff44a3ca479d21ed1046ebf7b4a4e1e224a (patch)
treed2f96a24a0a5282864233f7b5d7c1572ba886727 /gst-libs/gst/basecamerabinsrc
parentad49ae42f7024ea304a6cc9c4efa1997c016d119 (diff)
downloadgstreamer-plugins-bad-059e8ff44a3ca479d21ed1046ebf7b4a4e1e224a.tar.gz
docs: Document basecamerabinsrc
Diffstat (limited to 'gst-libs/gst/basecamerabinsrc')
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c14
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c3
-rw-r--r--gst-libs/gst/basecamerabinsrc/meson.build18
3 files changed, 29 insertions, 6 deletions
diff --git a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c
index c1a2b2e41..59d5e8bdc 100644
--- a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c
+++ b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c
@@ -32,7 +32,7 @@
*
* * 3 pads: viewfinder, image capture, video capture
*
- * During construct_pipeline() vmethod a subclass can add several elements into
+ * During `construct_pipeline()` vmethod a subclass can add several elements into
* the bin and expose 3 srcs pads as ghostpads implementing the 3 pad templates.
*
* However the subclass is responsible for adding the pad templates for the
@@ -60,7 +60,7 @@
* dataflow methods on these pads. This way all functionality can be implemented
* directly in the subclass without extra elements.
*
- * The src will receive the capture mode from #GstCameraBin2 on the
+ * The src will receive the capture mode from `GstCameraBin2` on the
* #GstBaseCameraSrc:mode property. Possible capture modes are defined in
* #GstCameraBinMode.
*/
@@ -73,6 +73,14 @@
#include <gst/glib-compat-private.h>
#include "gstbasecamerasrc.h"
+#define DEFAULT_WIDTH 640
+#define DEFAULT_HEIGHT 480
+#define DEFAULT_CAPTURE_WIDTH 800
+#define DEFAULT_CAPTURE_HEIGHT 600
+#define DEFAULT_FPS_N 0 /* makes it use the default */
+#define DEFAULT_FPS_D 1
+#define DEFAULT_ZOOM MIN_ZOOM
+
enum
{
PROP_0,
@@ -546,8 +554,6 @@ gst_base_camera_src_class_init (GstBaseCameraSrcClass * klass)
gst_element_class_set_static_metadata (gstelement_class,
"Base class for camerabin src bin", "Source/Video",
"Abstracts capture device for camerabin2", "Rob Clark <rob@ti.com>");
-
- gst_type_mark_as_plugin_api (GST_TYPE_BASE_CAMERA_SRC, 0);
}
static void
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
index e29a7b26b..60c38f082 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
@@ -22,8 +22,7 @@
* SECTION:camerabingeneral
* @short_description: helper functions for #GstCameraBin and it's modules
*
- * Common helper functions for #GstCameraBin, #GstCameraBinImage and
- * #GstCameraBinVideo.
+ * Common helper functions for #GstCameraBin.
*
*/
#ifdef HAVE_CONFIG_H
diff --git a/gst-libs/gst/basecamerabinsrc/meson.build b/gst-libs/gst/basecamerabinsrc/meson.build
index 830e9157a..ba6771e89 100644
--- a/gst-libs/gst/basecamerabinsrc/meson.build
+++ b/gst-libs/gst/basecamerabinsrc/meson.build
@@ -22,6 +22,24 @@ gstbasecamerabin = library('gstbasecamerabinsrc-' + api_version,
dependencies : [gstapp_dep],
)
+_sources = []
+if build_gir
+ basecamerabin_gir = gnome.generate_gir(gstbasecamerabin,
+ sources : camerabin_sources + camerabin_headers,
+ namespace : 'GstBadBaseCameraBin',
+ nsversion : api_version,
+ identifier_prefix : 'Gst',
+ symbol_prefix : 'gst',
+ export_packages : 'gstreamer-bad-base-camerabinsrc-1.0',
+ includes : ['Gst-1.0', 'GstApp-1.0'],
+ install : false, # Only for the documentation
+ extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
+ dependencies : [gstapp_dep],
+ build_by_default : true,
+ )
+ _sources += [basecamerabin_gir]
+endif
+
gstbasecamerabin_dep = declare_dependency(link_with : gstbasecamerabin,
include_directories : [libsinc],
dependencies : [gstapp_dep])