Debian Codegraph @

gstreamer/gstreamermm/appsink.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/appsink.h`/
2 #ifndef _GSTREAMERMM_APPSINK_H
3 #define _GSTREAMERMM_APPSINK_Hcxx . . $ `gstreamer/gstreamermm/appsink.h:3:9`!
4
5 #include <gstreamermmconfig.h>cxx . . $ `<file>/config.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/basesink.h>cxx . . $ `<file>/gstreamer/gstreamermm/basesink.h`/
17 #include <gstreamermm/caps.h>cxx . . $ `<file>/gstreamer/gstreamermm/caps.h`/
18 #include <gstreamermm/pad.h>cxx . . $ `<file>/gstreamer/gstreamermm/pad.h`/
19 #include <gstreamermm/sample.h>cxx . . $ `<file>/gstreamer/gstreamermm/sample.h`/
20 #include <gstreamermm/urihandler.h>cxx . . $ `<file>/gstreamer/gstreamermm/urihandler.h`/
21
22
23 // Plug-in C enums used in signals:
24 #ifndef DOXYGEN_SHOULD_SKIP_THIS
25 using GstAppSinkcxx . . $ GstAppSink# = struct _GstAppSinkcxx . . $ _GstAppSink#;
26 using GstAppSinkClasscxx . . $ GstAppSinkClass# = struct _GstAppSinkClasscxx . . $ _GstAppSinkClass#;
27 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
28
29
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 namespace Gstcxx . . $ Gst/
32 { class AppSink_Classcxx . . $ Gst/AppSink_Class#; } // namespace Gst
33 #endif //DOXYGEN_SHOULD_SKIP_THIS
34
35 namespace Gstcxx . . $ Gst/
36 {
37
38 /** A Wrapper for the appsink plugin.
39 * Please note that not all plug-ins are available on all systems so care
40 * must be taken that they exist before they are used otherwise there will
41 * be errors and possibly a crash.
42 *
43 * @ingroup GstPlugins
44 * @deprecated Plugins API is deprecated, and should not be used in a new code.
45 */
46
47 class AppSinkcxx . . $ Gst/AppSink#
48 : public Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#, public Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#
49 {
50
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52
53 public:
54 using CppObjectTypecxx . . $ Gst/AppSink#CppObjectType# = AppSinkcxx . . $ Gst/AppSink#;
55 using CppClassTypecxx . . $ Gst/AppSink#CppClassType# = AppSink_Classcxx . . $ Gst/AppSink_Class#;
56 using BaseObjectTypecxx . . $ Gst/AppSink#BaseObjectType# = GstAppSinkcxx . . $ GstAppSink#;
57 using BaseClassTypecxx . . $ Gst/AppSink#BaseClassType# = GstAppSinkClasscxx . . $ GstAppSinkClass#;
58
59 // noncopyable
60 AppSinkcxx . . $ Gst/AppSink#AppSink(2a94eab09e72e14d).(const AppSinkcxx . . $ Gst/AppSink#&) = delete;
61 AppSinkcxx . . $ Gst/AppSink#& operatorcxx . . $ Gst/AppSink#`operator=`(bcca5e1a412b17a1).=(const AppSinkcxx . . $ Gst/AppSink#&) = delete;
62
63 private: friend class AppSink_Classcxx . . $ Gst/AppSink_Class#;
64 static CppClassTypecxx . . $ Gst/AppSink#CppClassType# appsink_class_cxx . . $ Gst/AppSink#appsink_class_.;
65
66 protected:
67 explicit AppSinkcxx . . $ Gst/AppSink#AppSink(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params);
68 explicit AppSinkcxx . . $ Gst/AppSink#AppSink(d7229b4d784c932b).(GstAppSinkcxx . . $ GstAppSink#* castitem);
69
70 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71
72 public:
73
74 AppSinkcxx . . $ Gst/AppSink#AppSink(2f7c1b0fa42345c3).(AppSinkcxx . . $ Gst/AppSink#&& src) noexcept;
75 AppSinkcxx . . $ Gst/AppSink#& operatorcxx . . $ Gst/AppSink#`operator=`(26565916a853f50d).=(AppSinkcxx . . $ Gst/AppSink#&& src) noexcept;
76
77 ~cxx . . $ Gst/AppSink#`~AppSink`(ced63f7c635d850d).AppSinkcxx . . $ Gst/AppSink#() noexcept override;
78
79 /** Get the GType for this class, for use with the underlying GObject type system.
80 */
81 static GType get_typecxx . . $ Gst/AppSink#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
82
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84
85
86 static GType get_base_typecxx . . $ Gst/AppSink#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
87 #endif
88
89 ///Provides access to the underlying C GObject.
90 GstAppSinkcxx . . $ GstAppSink#* gobjcxx . . $ Gst/AppSink#gobj(459c2b13c7ddfd1c).() { return reinterpret_cast<GstAppSinkcxx . . $ GstAppSink#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
91
92 ///Provides access to the underlying C GObject.
93 const GstAppSinkcxx . . $ GstAppSink#* gobjcxx . . $ Gst/AppSink#gobj(f2649378dedcb0b4).() const { return reinterpret_cast<GstAppSinkcxx . . $ GstAppSink#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
94
95 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
96 GstAppSinkcxx . . $ GstAppSink#* gobj_copycxx . . $ Gst/AppSink#gobj_copy(459c2b13c7ddfd1c).();
97
98 private:
99
100
101 protected:
102 AppSinkcxx . . $ Gst/AppSink#AppSink(49f6e7a06ebc5aa8).();
103 explicit AppSinkcxx . . $ Gst/AppSink#AppSink(1ff0bff2cee2bc51).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
104
105 public:
106 /** Creates a new appsink plugin with a unique name.
107 */
108
109 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<AppSinkcxx . . $ Gst/AppSink#> createcxx . . $ Gst/AppSink#create(8df8f48b3048ef02).();
110
111
112 /** Creates a new appsink plugin with the given name.
113 */
114
115 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<AppSinkcxx . . $ Gst/AppSink#> createcxx . . $ Gst/AppSink#create(3503eff8cc2c6b78).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
116
117
118 /** This is a convenience method for the action signal
119 * signal_pull_preroll().
120 */
121 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> pull_prerollcxx . . $ Gst/AppSink#pull_preroll(2e1dd78fd18ed5e8).();
122
123 /** This is a convenience method for the action signal
124 * signal_pull_sample().
125 */
126 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> pull_samplecxx . . $ Gst/AppSink#pull_sample(2e1dd78fd18ed5e8).();
127
128 /** This is a convenience method for the action signal
129 * signal_try_pull_preroll().
130 */
131 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> try_pull_prerollcxx . . $ Gst/AppSink#try_pull_preroll(6955b0201c911bec).(guint64 arg0);
132
133 /** This is a convenience method for the action signal
134 * signal_try_pull_sample().
135 */
136 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> try_pull_samplecxx . . $ Gst/AppSink#try_pull_sample(6955b0201c911bec).(guint64 arg0);
137
138
139 /** The allowed caps for the sink pad.
140 *
141 * @return A PropertyProxy that allows you to get or set the value of the property,
142 * or receive notification when the value of the property changes.
143 */
144 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> > property_capscxx . . $ Gst/AppSink#property_caps(7de0a34cb17df79e).() ;
145
146 /** The allowed caps for the sink pad.
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 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> > property_capscxx . . $ Gst/AppSink#property_caps(e0fc34847650ee7e).() const;
152
153 /** Check if the sink is EOS or not started.
154 *
155 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
156 * or receive notification when the value of the property changes.
157 */
158 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_eoscxx . . $ Gst/AppSink#property_eos(bb701360c56d84c7).() const;
159
160
161 /** Emit new-preroll and new-sample signals.
162 *
163 * @return A PropertyProxy that allows you to get or set the value of the property,
164 * or receive notification when the value of the property changes.
165 */
166 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > property_emit_signalscxx . . $ Gst/AppSink#property_emit_signals(962e4b383dc974dc).() ;
167
168 /** Emit new-preroll and new-sample signals.
169 *
170 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
171 * or receive notification when the value of the property changes.
172 */
173 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_emit_signalscxx . . $ Gst/AppSink#property_emit_signals(bb701360c56d84c7).() const;
174
175 /** The maximum number of buffers to queue internally (0 = unlimited).
176 *
177 * @return A PropertyProxy that allows you to get or set the value of the property,
178 * or receive notification when the value of the property changes.
179 */
180 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< guint > property_max_bufferscxx . . $ Gst/AppSink#property_max_buffers(c06a410a81733cde).() ;
181
182 /** The maximum number of buffers to queue internally (0 = unlimited).
183 *
184 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
185 * or receive notification when the value of the property changes.
186 */
187 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint > property_max_bufferscxx . . $ Gst/AppSink#property_max_buffers(9b12e6784ac5b9b).() const;
188
189 /** Drop old buffers when the buffer queue is filled.
190 *
191 * @return A PropertyProxy that allows you to get or set the value of the property,
192 * or receive notification when the value of the property changes.
193 */
194 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > property_dropcxx . . $ Gst/AppSink#property_drop(962e4b383dc974dc).() ;
195
196 /** Drop old buffers when the buffer queue is filled.
197 *
198 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
199 * or receive notification when the value of the property changes.
200 */
201 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_dropcxx . . $ Gst/AppSink#property_drop(bb701360c56d84c7).() const;
202
203 /** Wait for all buffers to be processed after receiving an EOS.
204 *
205 * @return A PropertyProxy that allows you to get or set the value of the property,
206 * or receive notification when the value of the property changes.
207 */
208 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > property_wait_on_eoscxx . . $ Gst/AppSink#property_wait_on_eos(962e4b383dc974dc).() ;
209
210 /** Wait for all buffers to be processed after receiving an EOS.
211 *
212 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
213 * or receive notification when the value of the property changes.
214 */
215 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_wait_on_eoscxx . . $ Gst/AppSink#property_wait_on_eos(bb701360c56d84c7).() const;
216
217
218 /**
219 * @par Slot Prototype:
220 * <tt>void on_my_%eos()</tt>
221 *
222 * Signal that the end-of-stream has been reached. This signal is emitted from
223 * the streaming thread.
224 */
225
226 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void > signal_eoscxx . . $ Gst/AppSink#signal_eos(5db58c3a758c1880).();
227
228
229 /**
230 * @par Slot Prototype:
231 * <tt>Gst::FlowReturn on_my_%new_preroll()</tt>
232 *
233 * Signal that a new preroll sample is available.
234 *
235 * This signal is emitted from the streaming thread and only when the
236 * "emit-signals" property is <tt>true</tt>.
237 *
238 * The new preroll sample can be retrieved with the "pull-preroll" action
239 * signal or Gst::AppSink::pull_preroll() either from this signal callback
240 * or from any other thread.
241 *
242 * Note that this signal is only emitted when the "emit-signals" property is
243 * set to <tt>true</tt>, which it is not by default for performance reasons.
244 */
245
246 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< Gstcxx . . $ Gst/::FlowReturncxx . . $ Gst/FlowReturn# > signal_new_prerollcxx . . $ Gst/AppSink#signal_new_preroll(e996904100e5314f).();
247
248
249 /**
250 * @par Slot Prototype:
251 * <tt>Gst::FlowReturn on_my_%new_sample()</tt>
252 *
253 * Signal that a new sample is available.
254 *
255 * This signal is emitted from the streaming thread and only when the
256 * "emit-signals" property is <tt>true</tt>.
257 *
258 * The new sample can be retrieved with the "pull-sample" action
259 * signal or Gst::AppSink::pull_sample() either from this signal callback
260 * or from any other thread.
261 *
262 * Note that this signal is only emitted when the "emit-signals" property is
263 * set to <tt>true</tt>, which it is not by default for performance reasons.
264 */
265
266 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< Gstcxx . . $ Gst/::FlowReturncxx . . $ Gst/FlowReturn# > signal_new_samplecxx . . $ Gst/AppSink#signal_new_sample(e996904100e5314f).();
267
268
269 /** This is an action signal which is designed to be used as a method. To
270 * do that, use its convenience method, pull_preroll().
271 *
272 * @par Slot Prototype:
273 * <tt>Glib::RefPtr<Gst::Sample> on_my_%pull_preroll()</tt>
274 *
275 * Get the last preroll sample in @a appsink. This was the sample that caused the
276 * appsink to preroll in the PAUSED state. This sample can be pulled many times
277 * and remains available to the application even after EOS.
278 *
279 * This function is typically used when dealing with a pipeline in the PAUSED
280 * state. Calling this function after doing a seek will give the sample right
281 * after the seek position.
282 *
283 * Note that the preroll sample will also be returned as the first sample
284 * when calling Gst::AppSink::pull_sample() or the "pull-sample" action signal.
285 *
286 * If an EOS event was received before any buffers, this function returns
287 * <tt>nullptr</tt>. Use Gst::AppSink::is_eos() to check for the EOS condition.
288 *
289 * This function blocks until a preroll sample or EOS is received or the appsink
290 * element is set to the READY/<tt>nullptr</tt> state.
291 *
292 * @return A Gst::Sample or <tt>nullptr</tt> when the appsink is stopped or EOS.
293 */
294
295 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> > signal_pull_prerollcxx . . $ Gst/AppSink#signal_pull_preroll(76e81997cf4b11ce).();
296
297
298 /** This is an action signal which is designed to be used as a method. To
299 * do that, use its convenience method, pull_sample().
300 *
301 * @par Slot Prototype:
302 * <tt>Glib::RefPtr<Gst::Sample> on_my_%pull_sample()</tt>
303 *
304 * This function blocks until a sample or EOS becomes available or the appsink
305 * element is set to the READY/<tt>nullptr</tt> state.
306 *
307 * This function will only return samples when the appsink is in the PLAYING
308 * state. All rendered samples will be put in a queue so that the application
309 * can pull samples at its own rate.
310 *
311 * Note that when the application does not pull samples fast enough, the
312 * queued samples could consume a lot of memory, especially when dealing with
313 * raw video frames. It's possible to control the behaviour of the queue with
314 * the "drop" and "max-buffers" properties.
315 *
316 * If an EOS event was received before any buffers, this function returns
317 * <tt>nullptr</tt>. Use Gst::AppSink::is_eos() to check for the EOS condition.
318 *
319 * @return A Gst::Sample or <tt>nullptr</tt> when the appsink is stopped or EOS.
320 */
321
322 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Samplecxx . . $ Gst/Sample#> > signal_pull_samplecxx . . $ Gst/AppSink#signal_pull_sample(76e81997cf4b11ce).();
323
324
325 //gtkmmproc error: try-pull-preroll : signal defs lookup failed
326
327
328 //gtkmmproc error: try-pull-sample : signal defs lookup failed
329
330
331 public:
332
333 public:
334 //C++ methods used to invoke GTK+ virtual functions:
335
336 protected:
337 //GTK+ Virtual Functions (override these to change behaviour):
338
339 //Default Signal Handlers::
340
341
342 };
343
344 } // namespace Gst
345
346
347 namespace Glibcxx . . $ Glib/
348 {
349 /** A Glib::wrap() method for this object.
350 *
351 * @param object The C instance.
352 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
353 * @result A C++ instance that wraps this C instance.
354 *
355 * @relates Gst::AppSink
356 */
357 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AppSinkcxx . . $ Gst/AppSink#> wrapcxx . . $ Glib/wrap(8ca01806c627ec77).(GstAppSinkcxx . . $ GstAppSink#* object, bool take_copy = false);
358 }
359
360
361 #endif // GSTREAMERMM_DISABLE_DEPRECATED
362
363
364 #endif /* _GSTREAMERMM_APPSINK_H */
365