Debian Codegraph @

gstreamer/gstreamermm/queue.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_QUEUE_H
3 #define _GSTREAMERMM_QUEUE_H
4
5 #include <gstreamermmconfig.h>
6
7 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
8
9
10 #include <glibmm/ustring.h>
11 #include <sigc++/sigc++.h>
12
13 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
14
15
16 #include <gstreamermm/element.h>
17
18
19 #ifndef DOXYGEN_SHOULD_SKIP_THIS
20 using GstQueue = struct _GstQueue;
21 using GstQueueClass = struct _GstQueueClass;
22 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
23
24
25 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 namespace Gst
27 { class Queue_Class; } // namespace Gst
28 #endif //DOXYGEN_SHOULD_SKIP_THIS
29
30 namespace Gst
31 {
32
33 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
34
35 /**
36 *
37 * @ingroup gstreamermmEnums
38 */
39 enum QueueLeaky
40 {
41 QUEUE_LEAK_NO_LEAK = 1,
42 QUEUE_LEAK_UPSTREAM = QUEUE_LEAK_NO_LEAK,
43 QUEUE_LEAK_DOWNSTREAM
44 };
45
46 } // namespace Gst
47
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 namespace Glib
50 {
51
52 template <>
53 class Value<Gst::QueueLeaky> : public Glib::Value_Enum<Gst::QueueLeaky>
54 {
55 public:
56 static GType value_type() G_GNUC_CONST;
57 };
58
59 } // namespace Glib
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61
62 namespace Gst
63 {
64
65
66 /** A Wrapper for the queue plugin.
67 * Please note that not all plug-ins are available on all systems so care
68 * must be taken that they exist before they are used otherwise there will
69 * be errors and possibly a crash.
70 *
71 * @ingroup GstPlugins
72 * @deprecated Plugins API is deprecated, and should not be used in a new code.
73 */
74
75 class Queue
76 : public Gst::Element
77 {
78
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80
81 public:
82 using CppObjectType = Queue;
83 using CppClassType = Queue_Class;
84 using BaseObjectType = GstQueue;
85 using BaseClassType = GstQueueClass;
86
87 // noncopyable
88 Queue(const Queue&) = delete;
89 Queue& operator=(const Queue&) = delete;
90
91 private: friend class Queue_Class;
92 static CppClassType queue_class_;
93
94 protected:
95 explicit Queue(const Glib::ConstructParams& construct_params);
96 explicit Queue(GstQueue* castitem);
97
98 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
99
100 public:
101
102 Queue(Queue&& src) noexcept;
103 Queue& operator=(Queue&& src) noexcept;
104
105 ~Queue() noexcept override;
106
107 /** Get the GType for this class, for use with the underlying GObject type system.
108 */
109 static GType get_type() G_GNUC_CONST;
110
111 #ifndef DOXYGEN_SHOULD_SKIP_THIS
112
113
114 static GType get_base_type() G_GNUC_CONST;
115 #endif
116
117 ///Provides access to the underlying C GObject.
118 GstQueue* gobj() { return reinterpret_cast<GstQueue*>(gobject_); }
119
120 ///Provides access to the underlying C GObject.
121 const GstQueue* gobj() const { return reinterpret_cast<GstQueue*>(gobject_); }
122
123 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
124 GstQueue* gobj_copy();
125
126 private:
127
128
129 protected:
130 Queue();
131 explicit Queue(const Glib::ustring& name);
132
133 public:
134 /** Creates a new queue plugin with a unique name.
135 */
136
137 static Glib::RefPtr<Queue> create();
138
139
140 /** Creates a new queue plugin with the given name.
141 */
142
143 static Glib::RefPtr<Queue> create(const Glib::ustring& name);
144
145
146 /** Current number of buffers in the queue.
147 *
148 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
149 * or receive notification when the value of the property changes.
150 */
151 Glib::PropertyProxy_ReadOnly< guint > property_current_level_buffers() const;
152
153
154 /** Current amount of data in the queue (bytes).
155 *
156 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
157 * or receive notification when the value of the property changes.
158 */
159 Glib::PropertyProxy_ReadOnly< guint > property_current_level_bytes() const;
160
161
162 /** Current amount of data in the queue (in ns).
163 *
164 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
165 * or receive notification when the value of the property changes.
166 */
167 Glib::PropertyProxy_ReadOnly< guint64 > property_current_level_time() const;
168
169
170 /** Max. number of buffers in the queue (0=disable).
171 *
172 * @return A PropertyProxy that allows you to get or set the value of the property,
173 * or receive notification when the value of the property changes.
174 */
175 Glib::PropertyProxy< guint > property_max_size_buffers() ;
176
177 /** Max. number of buffers in the queue (0=disable).
178 *
179 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
180 * or receive notification when the value of the property changes.
181 */
182 Glib::PropertyProxy_ReadOnly< guint > property_max_size_buffers() const;
183
184 /** Max. amount of data in the queue (bytes, 0=disable).
185 *
186 * @return A PropertyProxy that allows you to get or set the value of the property,
187 * or receive notification when the value of the property changes.
188 */
189 Glib::PropertyProxy< guint > property_max_size_bytes() ;
190
191 /** Max. amount of data in the queue (bytes, 0=disable).
192 *
193 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
194 * or receive notification when the value of the property changes.
195 */
196 Glib::PropertyProxy_ReadOnly< guint > property_max_size_bytes() const;
197
198 /** Max. amount of data in the queue (in ns, 0=disable).
199 *
200 * @return A PropertyProxy that allows you to get or set the value of the property,
201 * or receive notification when the value of the property changes.
202 */
203 Glib::PropertyProxy< guint64 > property_max_size_time() ;
204
205 /** Max. amount of data in the queue (in ns, 0=disable).
206 *
207 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
208 * or receive notification when the value of the property changes.
209 */
210 Glib::PropertyProxy_ReadOnly< guint64 > property_max_size_time() const;
211
212 /** Min. number of buffers in the queue to allow reading (0=disable).
213 *
214 * @return A PropertyProxy that allows you to get or set the value of the property,
215 * or receive notification when the value of the property changes.
216 */
217 Glib::PropertyProxy< guint > property_min_threshold_buffers() ;
218
219 /** Min. number of buffers in the queue to allow reading (0=disable).
220 *
221 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
222 * or receive notification when the value of the property changes.
223 */
224 Glib::PropertyProxy_ReadOnly< guint > property_min_threshold_buffers() const;
225
226 /** Min. amount of data in the queue to allow reading (bytes, 0=disable).
227 *
228 * @return A PropertyProxy that allows you to get or set the value of the property,
229 * or receive notification when the value of the property changes.
230 */
231 Glib::PropertyProxy< guint > property_min_threshold_bytes() ;
232
233 /** Min. amount of data in the queue to allow reading (bytes, 0=disable).
234 *
235 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
236 * or receive notification when the value of the property changes.
237 */
238 Glib::PropertyProxy_ReadOnly< guint > property_min_threshold_bytes() const;
239
240 /** Min. amount of data in the queue to allow reading (in ns, 0=disable).
241 *
242 * @return A PropertyProxy that allows you to get or set the value of the property,
243 * or receive notification when the value of the property changes.
244 */
245 Glib::PropertyProxy< guint64 > property_min_threshold_time() ;
246
247 /** Min. amount of data in the queue to allow reading (in ns, 0=disable).
248 *
249 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
250 * or receive notification when the value of the property changes.
251 */
252 Glib::PropertyProxy_ReadOnly< guint64 > property_min_threshold_time() const;
253
254 /** Where the queue leaks, if at all.
255 *
256 * @return A PropertyProxy that allows you to get or set the value of the property,
257 * or receive notification when the value of the property changes.
258 */
259 Glib::PropertyProxy< Gst::QueueLeaky > property_leaky() ;
260
261 /** Where the queue leaks, if at all.
262 *
263 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
264 * or receive notification when the value of the property changes.
265 */
266 Glib::PropertyProxy_ReadOnly< Gst::QueueLeaky > property_leaky() const;
267
268 /** Don't emit queue signals.
269 *
270 * @return A PropertyProxy that allows you to get or set the value of the property,
271 * or receive notification when the value of the property changes.
272 */
273 Glib::PropertyProxy< bool > property_silent() ;
274
275 /** Don't emit queue signals.
276 *
277 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
278 * or receive notification when the value of the property changes.
279 */
280 Glib::PropertyProxy_ReadOnly< bool > property_silent() const;
281
282 /** Discard all data in the queue when an EOS event is received.
283 *
284 * @return A PropertyProxy that allows you to get or set the value of the property,
285 * or receive notification when the value of the property changes.
286 */
287 Glib::PropertyProxy< bool > property_flush_on_eos() ;
288
289 /** Discard all data in the queue when an EOS event is received.
290 *
291 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
292 * or receive notification when the value of the property changes.
293 */
294 Glib::PropertyProxy_ReadOnly< bool > property_flush_on_eos() const;
295
296
297 /**
298 * @par Slot Prototype:
299 * <tt>void on_my_%underrun()</tt>
300 *
301 */
302
303 Glib::SignalProxy< void > signal_underrun();
304
305
306 /**
307 * @par Slot Prototype:
308 * <tt>void on_my_%running()</tt>
309 *
310 */
311
312 Glib::SignalProxy< void > signal_running();
313
314
315 /**
316 * @par Slot Prototype:
317 * <tt>void on_my_%overrun()</tt>
318 *
319 */
320
321 Glib::SignalProxy< void > signal_overrun();
322
323
324 /**
325 * @par Slot Prototype:
326 * <tt>void on_my_%pushing()</tt>
327 *
328 */
329
330 Glib::SignalProxy< void > signal_pushing();
331
332
333 public:
334
335 public:
336 //C++ methods used to invoke GTK+ virtual functions:
337
338 protected:
339 //GTK+ Virtual Functions (override these to change behaviour):
340
341 //Default Signal Handlers::
342
343
344 };
345
346 } // namespace Gst
347
348
349 namespace Glib
350 {
351 /** A Glib::wrap() method for this object.
352 *
353 * @param object The C instance.
354 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
355 * @result A C++ instance that wraps this C instance.
356 *
357 * @relates Gst::Queue
358 */
359 Glib::RefPtr<Gst::Queue> wrap(GstQueue* object, bool take_copy = false);
360 }
361
362
363 #endif // GSTREAMERMM_DISABLE_DEPRECATED
364
365
366 #endif /* _GSTREAMERMM_QUEUE_H */
367