Debian Codegraph @

gstreamer/gstreamermm/playsink.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_PLAYSINK_H
3 #define _GSTREAMERMM_PLAYSINK_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/bin.h>
17 #include <gstreamermm/enums.h>
18 #include <gstreamermm/element.h>
19 #include <gstreamermm/sample.h>
20 #include <gstreamermm/caps.h>
21 #include <gstreamermm/streamvolume.h>
22 #include <gstreamermm/videooverlay.h>
23 #include <gstreamermm/navigation.h>
24 #include <gstreamermm/colorbalance.h>
25
26
27 #ifndef DOXYGEN_SHOULD_SKIP_THIS
28 using GstPlaySink = struct _GstPlaySink;
29 using GstPlaySinkClass = struct _GstPlaySinkClass;
30 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
31
32
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 namespace Gst
35 { class PlaySink_Class; } // namespace Gst
36 #endif //DOXYGEN_SHOULD_SKIP_THIS
37
38 namespace Gst
39 {
40
41 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
42
43 /**
44 *
45 * @ingroup gstreamermmEnums
46 */
47 enum PlaySinkSendEventMode
48 {
49 DEFAULT,
50 FIRST
51 };
52
53 } // namespace Gst
54
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 namespace Glib
57 {
58
59 template <>
60 class Value<Gst::PlaySinkSendEventMode> : public Glib::Value_Enum<Gst::PlaySinkSendEventMode>
61 {
62 public:
63 static GType value_type() G_GNUC_CONST;
64 };
65
66 } // namespace Glib
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68
69 namespace Gst
70 {
71
72
73 /** A Wrapper for the playsink plugin.
74 * Please note that not all plug-ins are available on all systems so care
75 * must be taken that they exist before they are used otherwise there will
76 * be errors and possibly a crash.
77 *
78 * @ingroup GstPlugins
79 * @deprecated Plugins API is deprecated, and should not be used in a new code.
80 */
81
82 class PlaySink
83 : public Gst::Bin, public Gst::StreamVolume, public Gst::VideoOverlay, public Gst::Navigation, public Gst::ColorBalance
84 {
85
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87
88 public:
89 using CppObjectType = PlaySink;
90 using CppClassType = PlaySink_Class;
91 using BaseObjectType = GstPlaySink;
92 using BaseClassType = GstPlaySinkClass;
93
94 // noncopyable
95 PlaySink(const PlaySink&) = delete;
96 PlaySink& operator=(const PlaySink&) = delete;
97
98 private: friend class PlaySink_Class;
99 static CppClassType playsink_class_;
100
101 protected:
102 explicit PlaySink(const Glib::ConstructParams& construct_params);
103 explicit PlaySink(GstPlaySink* castitem);
104
105 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
106
107 public:
108
109 PlaySink(PlaySink&& src) noexcept;
110 PlaySink& operator=(PlaySink&& src) noexcept;
111
112 ~PlaySink() noexcept override;
113
114 /** Get the GType for this class, for use with the underlying GObject type system.
115 */
116 static GType get_type() G_GNUC_CONST;
117
118 #ifndef DOXYGEN_SHOULD_SKIP_THIS
119
120
121 static GType get_base_type() G_GNUC_CONST;
122 #endif
123
124 ///Provides access to the underlying C GObject.
125 GstPlaySink* gobj() { return reinterpret_cast<GstPlaySink*>(gobject_); }
126
127 ///Provides access to the underlying C GObject.
128 const GstPlaySink* gobj() const { return reinterpret_cast<GstPlaySink*>(gobject_); }
129
130 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
131 GstPlaySink* gobj_copy();
132
133 private:
134
135
136 protected:
137 PlaySink();
138 explicit PlaySink(const Glib::ustring& name);
139
140 public:
141 /** Creates a new playsink plugin with a unique name.
142 */
143
144 static Glib::RefPtr<PlaySink> create();
145
146
147 /** Creates a new playsink plugin with the given name.
148 */
149
150 static Glib::RefPtr<PlaySink> create(const Glib::ustring& name);
151
152
153 /** This is a convenience method for the action signal
154 * signal_reconfigure().
155 */
156 bool reconfigure();
157
158 /** This is a convenience method for the action signal
159 * signal_convert_sample().
160 */
161 Glib::RefPtr<Gst::Sample> convert_sample(const Glib::RefPtr<Gst::Caps>& arg0);
162
163
164 /** Flags to control behaviour.
165 *
166 * @return A PropertyProxy that allows you to get or set the value of the property,
167 * or receive notification when the value of the property changes.
168 */
169 Glib::PropertyProxy< Gst::PlayFlags > property_flags() ;
170
171 /** Flags to control behaviour.
172 *
173 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
174 * or receive notification when the value of the property changes.
175 */
176 Glib::PropertyProxy_ReadOnly< Gst::PlayFlags > property_flags() const;
177
178 /** Mute the audio channel without changing the volume.
179 *
180 * @return A PropertyProxy that allows you to get or set the value of the property,
181 * or receive notification when the value of the property changes.
182 */
183 Glib::PropertyProxy< bool > property_mute() ;
184
185 /** Mute the audio channel without changing the volume.
186 *
187 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
188 * or receive notification when the value of the property changes.
189 */
190 Glib::PropertyProxy_ReadOnly< bool > property_mute() const;
191
192 /** The audio volume, 1.0=100%.
193 *
194 * @return A PropertyProxy that allows you to get or set the value of the property,
195 * or receive notification when the value of the property changes.
196 */
197 Glib::PropertyProxy< double > property_volume() ;
198
199 /** The audio volume, 1.0=100%.
200 *
201 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
202 * or receive notification when the value of the property changes.
203 */
204 Glib::PropertyProxy_ReadOnly< double > property_volume() const;
205
206 /** Pango font description of font to be used for subtitle rendering.
207 *
208 * @return A PropertyProxy_WriteOnly that allows you to set the value of the property,
209 * or receive notification when the value of the property changes.
210 */
211 Glib::PropertyProxy_WriteOnly< Glib::ustring > property_subtitle_font_desc() ;
212
213
214 /** Encoding to assume if input subtitles are not in UTF-8 encoding. If not set, the GST_SUBTITLE_ENCODING environment variable will be checked for an encoding to use. If that is not set either, ISO-8859-15 will be assumed.
215 *
216 * @return A PropertyProxy that allows you to get or set the value of the property,
217 * or receive notification when the value of the property changes.
218 */
219 Glib::PropertyProxy< Glib::ustring > property_subtitle_encoding() ;
220
221 /** Encoding to assume if input subtitles are not in UTF-8 encoding. If not set, the GST_SUBTITLE_ENCODING environment variable will be checked for an encoding to use. If that is not set either, ISO-8859-15 will be assumed.
222 *
223 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
224 * or receive notification when the value of the property changes.
225 */
226 Glib::PropertyProxy_ReadOnly< Glib::ustring > property_subtitle_encoding() const;
227
228 /** the visualization element to use (NULL = default).
229 *
230 * @return A PropertyProxy that allows you to get or set the value of the property,
231 * or receive notification when the value of the property changes.
232 */
233 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_vis_plugin() ;
234
235 /** the visualization element to use (NULL = default).
236 *
237 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
238 * or receive notification when the value of the property changes.
239 */
240 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_vis_plugin() const;
241
242 /** The last sample (NULL = no video available).
243 *
244 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
245 * or receive notification when the value of the property changes.
246 */
247 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Sample> > property_sample() const;
248
249
250 /** The synchronisation offset between audio and video in nanoseconds.
251 *
252 * @return A PropertyProxy that allows you to get or set the value of the property,
253 * or receive notification when the value of the property changes.
254 */
255 Glib::PropertyProxy< gint64 > property_av_offset() ;
256
257 /** The synchronisation offset between audio and video in nanoseconds.
258 *
259 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
260 * or receive notification when the value of the property changes.
261 */
262 Glib::PropertyProxy_ReadOnly< gint64 > property_av_offset() const;
263
264 /** the video output element to use (NULL = default sink).
265 *
266 * @return A PropertyProxy that allows you to get or set the value of the property,
267 * or receive notification when the value of the property changes.
268 */
269 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_video_sink() ;
270
271 /** the video output element to use (NULL = default sink).
272 *
273 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
274 * or receive notification when the value of the property changes.
275 */
276 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_video_sink() const;
277
278 /** the audio output element to use (NULL = default sink).
279 *
280 * @return A PropertyProxy that allows you to get or set the value of the property,
281 * or receive notification when the value of the property changes.
282 */
283 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_audio_sink() ;
284
285 /** the audio output element to use (NULL = default sink).
286 *
287 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
288 * or receive notification when the value of the property changes.
289 */
290 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_audio_sink() const;
291
292 /** the text output element to use (NULL = default subtitleoverlay).
293 *
294 * @return A PropertyProxy that allows you to get or set the value of the property,
295 * or receive notification when the value of the property changes.
296 */
297 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_text_sink() ;
298
299 /** the text output element to use (NULL = default subtitleoverlay).
300 *
301 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
302 * or receive notification when the value of the property changes.
303 */
304 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_text_sink() const;
305
306 /** How to send events received in send_event function.
307 *
308 * @return A PropertyProxy that allows you to get or set the value of the property,
309 * or receive notification when the value of the property changes.
310 */
311 Glib::PropertyProxy< Gst::PlaySinkSendEventMode > property_send_event_mode() ;
312
313 /** How to send events received in send_event function.
314 *
315 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
316 * or receive notification when the value of the property changes.
317 */
318 Glib::PropertyProxy_ReadOnly< Gst::PlaySinkSendEventMode > property_send_event_mode() const;
319
320 /** When enabled, scaling will respect original aspect ratio.
321 *
322 * @return A PropertyProxy that allows you to get or set the value of the property,
323 * or receive notification when the value of the property changes.
324 */
325 Glib::PropertyProxy< bool > property_force_aspect_ratio() ;
326
327 /** When enabled, scaling will respect original aspect ratio.
328 *
329 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
330 * or receive notification when the value of the property changes.
331 */
332 Glib::PropertyProxy_ReadOnly< bool > property_force_aspect_ratio() const;
333
334 /** the video filter(s) to apply, if possible.
335 *
336 * @return A PropertyProxy that allows you to get or set the value of the property,
337 * or receive notification when the value of the property changes.
338 */
339 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_video_filter() ;
340
341 /** the video filter(s) to apply, if possible.
342 *
343 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
344 * or receive notification when the value of the property changes.
345 */
346 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_video_filter() const;
347
348 /** the audio filter(s) to apply, if possible.
349 *
350 * @return A PropertyProxy that allows you to get or set the value of the property,
351 * or receive notification when the value of the property changes.
352 */
353 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > property_audio_filter() ;
354
355 /** the audio filter(s) to apply, if possible.
356 *
357 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
358 * or receive notification when the value of the property changes.
359 */
360 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > property_audio_filter() const;
361
362
363 /** This is an action signal which is designed to be used as a method. To
364 * do that, use its convenience method, reconfigure().
365 *
366 * @par Slot Prototype:
367 * <tt>bool on_my_%reconfigure()</tt>
368 *
369 */
370
371 Glib::SignalProxy< bool > signal_reconfigure();
372
373
374 /** This is an action signal which is designed to be used as a method. To
375 * do that, use its convenience method, convert_sample().
376 *
377 * @par Slot Prototype:
378 * <tt>Glib::RefPtr<Gst::Sample> on_my_%convert_sample(const Glib::RefPtr<Gst::Caps>& arg0)</tt>
379 *
380 */
381
382 Glib::SignalProxy< Glib::RefPtr<Gst::Sample>,const Glib::RefPtr<Gst::Caps>& > signal_convert_sample();
383
384
385 public:
386
387 public:
388 //C++ methods used to invoke GTK+ virtual functions:
389
390 protected:
391 //GTK+ Virtual Functions (override these to change behaviour):
392
393 //Default Signal Handlers::
394
395
396 };
397
398 } // namespace Gst
399
400
401 namespace Glib
402 {
403 /** A Glib::wrap() method for this object.
404 *
405 * @param object The C instance.
406 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
407 * @result A C++ instance that wraps this C instance.
408 *
409 * @relates Gst::PlaySink
410 */
411 Glib::RefPtr<Gst::PlaySink> wrap(GstPlaySink* object, bool take_copy = false);
412 }
413
414
415 #endif // GSTREAMERMM_DISABLE_DEPRECATED
416
417
418 #endif /* _GSTREAMERMM_PLAYSINK_H */
419