Debian Codegraph @

gstreamer/gstreamermm/pushsrc.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_PUSHSRC_H
3 #define _GSTREAMERMM_PUSHSRC_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/base/gstpushsrc.h>
29 #include <gstreamermm/basesrc.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstPushSrc = struct _GstPushSrc;
34 using GstPushSrcClass = struct _GstPushSrcClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gst
40 { class PushSrc_Class; } // namespace Gst
41 #endif //DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gst
44 {
45 /** A base class for push based source elements.
46 * This class is mostly useful for elements that cannot do random access, or at
47 * least very slowly. The source usually prefers to push out a fixed size
48 * buffer.
49 *
50 * Subclasses usually operate in a format that is different from the default
51 * Gst::FORMAT_BYTES format of Gst::BaseSrc.
52 *
53 * Classes extending this base class will usually be scheduled in a push based
54 * mode. If the peer accepts to operate without offsets and within the limits
55 * of the allowed block size, this class can operate in getrange based mode
56 * automatically. To make this possible, the subclass should override the
57 * Gst::BaseSrc::check_get_range_vfunc() method.
58 *
59 * The subclass should extend the methods from the baseclass in addition to the
60 * GstBaseSrc::create_vfunc() method.
61 *
62 * Seeking, flushing, scheduling and sync is all handled by this base class.
63 *
64 * Last reviewed on 2006-07-04 (0.10.9).
65 *
66 * @ingroup GstBaseClasses
67 */
68
69 class PushSrc
70 : public BaseSrc
71 {
72
73 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74
75 public:
76 using CppObjectType = PushSrc;
77 using CppClassType = PushSrc_Class;
78 using BaseObjectType = GstPushSrc;
79 using BaseClassType = GstPushSrcClass;
80
81 // noncopyable
82 PushSrc(const PushSrc&) = delete;
83 PushSrc& operator=(const PushSrc&) = delete;
84
85 private: friend class PushSrc_Class;
86 static CppClassType pushsrc_class_;
87
88 protected:
89 explicit PushSrc(const Glib::ConstructParams& construct_params);
90 explicit PushSrc(GstPushSrc* castitem);
91
92 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
93
94 public:
95
96 PushSrc(PushSrc&& src) noexcept;
97 PushSrc& operator=(PushSrc&& src) noexcept;
98
99 ~PushSrc() noexcept override;
100
101 /** Get the GType for this class, for use with the underlying GObject type system.
102 */
103 static GType get_type() G_GNUC_CONST;
104
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
106
107
108 static GType get_base_type() G_GNUC_CONST;
109 #endif
110
111 ///Provides access to the underlying C GObject.
112 GstPushSrc* gobj() { return reinterpret_cast<GstPushSrc*>(gobject_); }
113
114 ///Provides access to the underlying C GObject.
115 const GstPushSrc* gobj() const { return reinterpret_cast<GstPushSrc*>(gobject_); }
116
117 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
118 GstPushSrc* gobj_copy();
119
120 private:
121
122
123 public:
124
125 public:
126 //C++ methods used to invoke GTK+ virtual functions:
127
128 protected:
129 //GTK+ Virtual Functions (override these to change behaviour):
130
131 //Default Signal Handlers::
132
133
134 };
135
136 } //namespace Gst
137
138
139 namespace Glib
140 {
141 /** A Glib::wrap() method for this object.
142 *
143 * @param object The C instance.
144 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
145 * @result A C++ instance that wraps this C instance.
146 *
147 * @relates Gst::PushSrc
148 */
149 Glib::RefPtr<Gst::PushSrc> wrap(GstPushSrc* object, bool take_copy = false);
150 }
151
152
153 #endif /* _GSTREAMERMM_PUSHSRC_H */
154