Debian Codegraph @

gstreamer/gstreamermm/fakesrc.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_FAKESRC_H
3 #define _GSTREAMERMM_FAKESRC_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/basesrc.h>
17 #include <gstreamermm/format.h>
18 #include <gstreamermm/buffer.h>
19 #include <gstreamermm/pad.h>
20
21
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
23 using GstFakeSrc = struct _GstFakeSrc;
24 using GstFakeSrcClass = struct _GstFakeSrcClass;
25 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
26
27
28 #ifndef DOXYGEN_SHOULD_SKIP_THIS
29 namespace Gst
30 { class FakeSrc_Class; } // namespace Gst
31 #endif //DOXYGEN_SHOULD_SKIP_THIS
32
33 namespace Gst
34 {
35
36 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
37
38 /**
39 *
40 * @ingroup gstreamermmEnums
41 */
42 enum FakeSrcDataType
43 {
44 SRC_DATA_ALLOCATE = 1,
45 SRC_DATA_SUBBUFFER
46 };
47
48 } // namespace Gst
49
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 namespace Glib
52 {
53
54 template <>
55 class Value<Gst::FakeSrcDataType> : public Glib::Value_Enum<Gst::FakeSrcDataType>
56 {
57 public:
58 static GType value_type() G_GNUC_CONST;
59 };
60
61 } // namespace Glib
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63
64 namespace Gst
65 {
66
67
68 /**
69 *
70 * @ingroup gstreamermmEnums
71 */
72 enum FakeSrcSizeType
73 {
74 SRC_SIZETYPE_EMPTY = 1,
75 SRC_SIZETYPE_FIXED,
76 SRC_SIZETYPE_RANDOM
77 };
78
79 } // namespace Gst
80
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82 namespace Glib
83 {
84
85 template <>
86 class Value<Gst::FakeSrcSizeType> : public Glib::Value_Enum<Gst::FakeSrcSizeType>
87 {
88 public:
89 static GType value_type() G_GNUC_CONST;
90 };
91
92 } // namespace Glib
93 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
94
95 namespace Gst
96 {
97
98
99 /**
100 *
101 * @ingroup gstreamermmEnums
102 */
103 enum FakeSrcFillType
104 {
105 SRC_FILLTYPE_NOTHING = 1,
106 SRC_FILLTYPE_ZERO,
107 SRC_FILLTYPE_RANDOM,
108 SRC_FILLTYPE_PATTERN,
109 SRC_FILLTYPE_PATTERN_CONT
110 };
111
112 } // namespace Gst
113
114 #ifndef DOXYGEN_SHOULD_SKIP_THIS
115 namespace Glib
116 {
117
118 template <>
119 class Value<Gst::FakeSrcFillType> : public Glib::Value_Enum<Gst::FakeSrcFillType>
120 {
121 public:
122 static GType value_type() G_GNUC_CONST;
123 };
124
125 } // namespace Glib
126 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
127
128 namespace Gst
129 {
130
131
132 /** A Wrapper for the fakesrc plugin.
133 * Please note that not all plug-ins are available on all systems so care
134 * must be taken that they exist before they are used otherwise there will
135 * be errors and possibly a crash.
136 *
137 * @ingroup GstPlugins
138 * @deprecated Plugins API is deprecated, and should not be used in a new code.
139 */
140
141 class FakeSrc
142 : public Gst::BaseSrc
143 {
144
145 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146
147 public:
148 using CppObjectType = FakeSrc;
149 using CppClassType = FakeSrc_Class;
150 using BaseObjectType = GstFakeSrc;
151 using BaseClassType = GstFakeSrcClass;
152
153 // noncopyable
154 FakeSrc(const FakeSrc&) = delete;
155 FakeSrc& operator=(const FakeSrc&) = delete;
156
157 private: friend class FakeSrc_Class;
158 static CppClassType fakesrc_class_;
159
160 protected:
161 explicit FakeSrc(const Glib::ConstructParams& construct_params);
162 explicit FakeSrc(GstFakeSrc* castitem);
163
164 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
165
166 public:
167
168 FakeSrc(FakeSrc&& src) noexcept;
169 FakeSrc& operator=(FakeSrc&& src) noexcept;
170
171 ~FakeSrc() noexcept override;
172
173 /** Get the GType for this class, for use with the underlying GObject type system.
174 */
175 static GType get_type() G_GNUC_CONST;
176
177 #ifndef DOXYGEN_SHOULD_SKIP_THIS
178
179
180 static GType get_base_type() G_GNUC_CONST;
181 #endif
182
183 ///Provides access to the underlying C GObject.
184 GstFakeSrc* gobj() { return reinterpret_cast<GstFakeSrc*>(gobject_); }
185
186 ///Provides access to the underlying C GObject.
187 const GstFakeSrc* gobj() const { return reinterpret_cast<GstFakeSrc*>(gobject_); }
188
189 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
190 GstFakeSrc* gobj_copy();
191
192 private:
193
194
195 protected:
196 FakeSrc();
197 explicit FakeSrc(const Glib::ustring& name);
198
199 public:
200 /** Creates a new fakesrc plugin with a unique name.
201 */
202
203 static Glib::RefPtr<FakeSrc> create();
204
205
206 /** Creates a new fakesrc plugin with the given name.
207 */
208
209 static Glib::RefPtr<FakeSrc> create(const Glib::ustring& name);
210
211
212 /** Data allocation method.
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< Gst::FakeSrcDataType > property_data() ;
218
219 /** Data allocation method.
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< Gst::FakeSrcDataType > property_data() const;
225
226 /** How to determine buffer sizes.
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< Gst::FakeSrcSizeType > property_sizetype() ;
232
233 /** How to determine buffer sizes.
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< Gst::FakeSrcSizeType > property_sizetype() const;
239
240 /** Minimum buffer size.
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< int > property_sizemin() ;
246
247 /** Minimum buffer size.
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< int > property_sizemin() const;
253
254 /** Maximum buffer size.
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< int > property_sizemax() ;
260
261 /** Maximum buffer size.
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< int > property_sizemax() const;
267
268 /** How to fill the buffer, if at all.
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< Gst::FakeSrcFillType > property_filltype() ;
274
275 /** How to fill the buffer, if at all.
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< Gst::FakeSrcFillType > property_filltype() const;
281
282 /** Timestamps buffers with number of bytes per second (0 = none).
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< int > property_datarate() ;
288
289 /** Timestamps buffers with number of bytes per second (0 = none).
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< int > property_datarate() const;
295
296 /** Sync to the clock to the datarate.
297 *
298 * @return A PropertyProxy that allows you to get or set the value of the property,
299 * or receive notification when the value of the property changes.
300 */
301 Glib::PropertyProxy< bool > property_sync() ;
302
303 /** Sync to the clock to the datarate.
304 *
305 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
306 * or receive notification when the value of the property changes.
307 */
308 Glib::PropertyProxy_ReadOnly< bool > property_sync() const;
309
310 /** Set the pattern (unused).
311 *
312 * @return A PropertyProxy that allows you to get or set the value of the property,
313 * or receive notification when the value of the property changes.
314 */
315 Glib::PropertyProxy< Glib::ustring > property_pattern() ;
316
317 /** Set the pattern (unused).
318 *
319 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
320 * or receive notification when the value of the property changes.
321 */
322 Glib::PropertyProxy_ReadOnly< Glib::ustring > property_pattern() const;
323
324 /** Send a signal before pushing the buffer.
325 *
326 * @return A PropertyProxy that allows you to get or set the value of the property,
327 * or receive notification when the value of the property changes.
328 */
329 Glib::PropertyProxy< bool > property_signal_handoffs() ;
330
331 /** Send a signal before pushing the buffer.
332 *
333 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
334 * or receive notification when the value of the property changes.
335 */
336 Glib::PropertyProxy_ReadOnly< bool > property_signal_handoffs() const;
337
338 /** Don't produce last_message events.
339 *
340 * @return A PropertyProxy that allows you to get or set the value of the property,
341 * or receive notification when the value of the property changes.
342 */
343 Glib::PropertyProxy< bool > property_silent() ;
344
345 /** Don't produce last_message events.
346 *
347 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
348 * or receive notification when the value of the property changes.
349 */
350 Glib::PropertyProxy_ReadOnly< bool > property_silent() const;
351
352 /** Dump buffer contents to stdout.
353 *
354 * @return A PropertyProxy that allows you to get or set the value of the property,
355 * or receive notification when the value of the property changes.
356 */
357 Glib::PropertyProxy< bool > property_dump() ;
358
359 /** Dump buffer contents to stdout.
360 *
361 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
362 * or receive notification when the value of the property changes.
363 */
364 Glib::PropertyProxy_ReadOnly< bool > property_dump() const;
365
366 /** Size of parent buffer for sub-buffered allocation.
367 *
368 * @return A PropertyProxy that allows you to get or set the value of the property,
369 * or receive notification when the value of the property changes.
370 */
371 Glib::PropertyProxy< int > property_parentsize() ;
372
373 /** Size of parent buffer for sub-buffered allocation.
374 *
375 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
376 * or receive notification when the value of the property changes.
377 */
378 Glib::PropertyProxy_ReadOnly< int > property_parentsize() const;
379
380 /** The last status message.
381 *
382 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
383 * or receive notification when the value of the property changes.
384 */
385 Glib::PropertyProxy_ReadOnly< Glib::ustring > property_last_message() const;
386
387
388 /** Can activate in pull mode.
389 *
390 * @return A PropertyProxy that allows you to get or set the value of the property,
391 * or receive notification when the value of the property changes.
392 */
393 Glib::PropertyProxy< bool > property_can_activate_pull() ;
394
395 /** Can activate in pull mode.
396 *
397 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
398 * or receive notification when the value of the property changes.
399 */
400 Glib::PropertyProxy_ReadOnly< bool > property_can_activate_pull() const;
401
402 /** Can activate in push mode.
403 *
404 * @return A PropertyProxy that allows you to get or set the value of the property,
405 * or receive notification when the value of the property changes.
406 */
407 Glib::PropertyProxy< bool > property_can_activate_push() ;
408
409 /** Can activate in push mode.
410 *
411 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
412 * or receive notification when the value of the property changes.
413 */
414 Glib::PropertyProxy_ReadOnly< bool > property_can_activate_push() const;
415
416 /** True if the element cannot produce data in PAUSED.
417 *
418 * @return A PropertyProxy that allows you to get or set the value of the property,
419 * or receive notification when the value of the property changes.
420 */
421 Glib::PropertyProxy< bool > property_is_live() ;
422
423 /** True if the element cannot produce data in PAUSED.
424 *
425 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
426 * or receive notification when the value of the property changes.
427 */
428 Glib::PropertyProxy_ReadOnly< bool > property_is_live() const;
429
430 /** The format of the segment events.
431 *
432 * @return A PropertyProxy that allows you to get or set the value of the property,
433 * or receive notification when the value of the property changes.
434 */
435 Glib::PropertyProxy< Gst::Format > property_format() ;
436
437 /** The format of the segment events.
438 *
439 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
440 * or receive notification when the value of the property changes.
441 */
442 Glib::PropertyProxy_ReadOnly< Gst::Format > property_format() const;
443
444
445 /**
446 * @par Slot Prototype:
447 * <tt>void on_my_%handoff(const Glib::RefPtr<Gst::Buffer>& arg0, const Glib::RefPtr<Gst::Pad>& arg1)</tt>
448 *
449 */
450
451 Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& > signal_handoff();
452
453
454 public:
455
456 public:
457 //C++ methods used to invoke GTK+ virtual functions:
458
459 protected:
460 //GTK+ Virtual Functions (override these to change behaviour):
461
462 //Default Signal Handlers::
463
464
465 };
466
467 } // namespace Gst
468
469
470 namespace Glib
471 {
472 /** A Glib::wrap() method for this object.
473 *
474 * @param object The C instance.
475 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
476 * @result A C++ instance that wraps this C instance.
477 *
478 * @relates Gst::FakeSrc
479 */
480 Glib::RefPtr<Gst::FakeSrc> wrap(GstFakeSrc* object, bool take_copy = false);
481 }
482
483
484 #endif // GSTREAMERMM_DISABLE_DEPRECATED
485
486
487 #endif /* _GSTREAMERMM_FAKESRC_H */
488