Debian Codegraph @

gstreamer/gstreamermm/encodebin.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_ENCODEBIN_H
3 #define _GSTREAMERMM_ENCODEBIN_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/encodingprofile.h>
18 #include <gstreamermm/pad.h>
19 #include <gstreamermm/caps.h>
20
21
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
23 using GstEncodeBin = struct _GstEncodeBin;
24 using GstEncodeBinClass = struct _GstEncodeBinClass;
25 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
26
27
28 #ifndef DOXYGEN_SHOULD_SKIP_THIS
29 namespace Gst
30 { class EncodeBin_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 EncodeBinFlags
43 {
44 ENCODEBIN_FLAG_NO_AUDIO_CONVERSION = 1<<0,
45 ENCODEBIN_FLAG_NO_VIDEO_CONVERSION = 1<<1
46 };
47
48 } // namespace Gst
49
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 namespace Glib
52 {
53
54 template <>
55 class Value<Gst::EncodeBinFlags> : public Glib::Value_Enum<Gst::EncodeBinFlags>
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 /** A Wrapper for the encodebin plugin.
69 * Please note that not all plug-ins are available on all systems so care
70 * must be taken that they exist before they are used otherwise there will
71 * be errors and possibly a crash.
72 *
73 * @ingroup GstPlugins
74 * @deprecated Plugins API is deprecated, and should not be used in a new code.
75 */
76
77 class EncodeBin
78 : public Gst::Bin
79 {
80
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82
83 public:
84 using CppObjectType = EncodeBin;
85 using CppClassType = EncodeBin_Class;
86 using BaseObjectType = GstEncodeBin;
87 using BaseClassType = GstEncodeBinClass;
88
89 // noncopyable
90 EncodeBin(const EncodeBin&) = delete;
91 EncodeBin& operator=(const EncodeBin&) = delete;
92
93 private: friend class EncodeBin_Class;
94 static CppClassType encodebin_class_;
95
96 protected:
97 explicit EncodeBin(const Glib::ConstructParams& construct_params);
98 explicit EncodeBin(GstEncodeBin* castitem);
99
100 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
101
102 public:
103
104 EncodeBin(EncodeBin&& src) noexcept;
105 EncodeBin& operator=(EncodeBin&& src) noexcept;
106
107 ~EncodeBin() noexcept override;
108
109 /** Get the GType for this class, for use with the underlying GObject type system.
110 */
111 static GType get_type() G_GNUC_CONST;
112
113 #ifndef DOXYGEN_SHOULD_SKIP_THIS
114
115
116 static GType get_base_type() G_GNUC_CONST;
117 #endif
118
119 ///Provides access to the underlying C GObject.
120 GstEncodeBin* gobj() { return reinterpret_cast<GstEncodeBin*>(gobject_); }
121
122 ///Provides access to the underlying C GObject.
123 const GstEncodeBin* gobj() const { return reinterpret_cast<GstEncodeBin*>(gobject_); }
124
125 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
126 GstEncodeBin* gobj_copy();
127
128 private:
129
130
131 protected:
132 EncodeBin();
133 explicit EncodeBin(const Glib::ustring& name);
134
135 public:
136 /** Creates a new encodebin plugin with a unique name.
137 */
138
139 static Glib::RefPtr<EncodeBin> create();
140
141
142 /** Creates a new encodebin plugin with the given name.
143 */
144
145 static Glib::RefPtr<EncodeBin> create(const Glib::ustring& name);
146
147
148 /** This is a convenience method for the action signal
149 * signal_request_pad().
150 */
151 Glib::RefPtr<Gst::Pad> request_pad(const Glib::RefPtr<Gst::Caps>& arg0);
152
153 /** This is a convenience method for the action signal
154 * signal_request_profile_pad().
155 */
156 Glib::RefPtr<Gst::Pad> request_profile_pad(const Glib::ustring& arg0);
157
158
159 /** The GstEncodingProfile to use.
160 *
161 * @return A PropertyProxy that allows you to get or set the value of the property,
162 * or receive notification when the value of the property changes.
163 */
164 Glib::PropertyProxy< Glib::RefPtr<Gst::EncodingProfile> > property_profile() ;
165
166 /** The GstEncodingProfile to use.
167 *
168 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
169 * or receive notification when the value of the property changes.
170 */
171 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::EncodingProfile> > property_profile() const;
172
173 /** Max. number of buffers in the queue (0=disable).
174 *
175 * @return A PropertyProxy that allows you to get or set the value of the property,
176 * or receive notification when the value of the property changes.
177 */
178 Glib::PropertyProxy< guint > property_queue_buffers_max() ;
179
180 /** Max. number of buffers in the queue (0=disable).
181 *
182 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
183 * or receive notification when the value of the property changes.
184 */
185 Glib::PropertyProxy_ReadOnly< guint > property_queue_buffers_max() const;
186
187 /** Max. amount of data in the queue (bytes, 0=disable).
188 *
189 * @return A PropertyProxy that allows you to get or set the value of the property,
190 * or receive notification when the value of the property changes.
191 */
192 Glib::PropertyProxy< guint > property_queue_bytes_max() ;
193
194 /** Max. amount of data in the queue (bytes, 0=disable).
195 *
196 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
197 * or receive notification when the value of the property changes.
198 */
199 Glib::PropertyProxy_ReadOnly< guint > property_queue_bytes_max() const;
200
201 /** Max. amount of data in the queue (in ns, 0=disable).
202 *
203 * @return A PropertyProxy that allows you to get or set the value of the property,
204 * or receive notification when the value of the property changes.
205 */
206 Glib::PropertyProxy< guint64 > property_queue_time_max() ;
207
208 /** Max. amount of data in the queue (in ns, 0=disable).
209 *
210 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
211 * or receive notification when the value of the property changes.
212 */
213 Glib::PropertyProxy_ReadOnly< guint64 > property_queue_time_max() const;
214
215 /** Amount of timestamp jitter/imperfection to allow on audio streams before inserting/dropping samples (ns).
216 *
217 * @return A PropertyProxy that allows you to get or set the value of the property,
218 * or receive notification when the value of the property changes.
219 */
220 Glib::PropertyProxy< guint64 > property_audio_jitter_tolerance() ;
221
222 /** Amount of timestamp jitter/imperfection to allow on audio streams before inserting/dropping samples (ns).
223 *
224 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
225 * or receive notification when the value of the property changes.
226 */
227 Glib::PropertyProxy_ReadOnly< guint64 > property_audio_jitter_tolerance() const;
228
229 /** Whether to re-encode portions of compatible video streams that lay on segment boundaries.
230 *
231 * @return A PropertyProxy that allows you to get or set the value of the property,
232 * or receive notification when the value of the property changes.
233 */
234 Glib::PropertyProxy< bool > property_avoid_reencoding() ;
235
236 /** Whether to re-encode portions of compatible video streams that lay on segment boundaries.
237 *
238 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
239 * or receive notification when the value of the property changes.
240 */
241 Glib::PropertyProxy_ReadOnly< bool > property_avoid_reencoding() const;
242
243 /** Flags to control behaviour.
244 *
245 * @return A PropertyProxy that allows you to get or set the value of the property,
246 * or receive notification when the value of the property changes.
247 */
248 Glib::PropertyProxy< Gst::EncodeBinFlags > property_flags() ;
249
250 /** Flags to control behaviour.
251 *
252 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
253 * or receive notification when the value of the property changes.
254 */
255 Glib::PropertyProxy_ReadOnly< Gst::EncodeBinFlags > property_flags() const;
256
257
258 /** This is an action signal which is designed to be used as a method. To
259 * do that, use its convenience method, request_pad().
260 *
261 * @par Slot Prototype:
262 * <tt>Glib::RefPtr<Gst::Pad> on_my_%request_pad(const Glib::RefPtr<Gst::Caps>& arg0)</tt>
263 *
264 */
265
266 Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::RefPtr<Gst::Caps>& > signal_request_pad();
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, request_profile_pad().
271 *
272 * @par Slot Prototype:
273 * <tt>Glib::RefPtr<Gst::Pad> on_my_%request_profile_pad(const Glib::ustring& arg0)</tt>
274 *
275 */
276
277 Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::ustring& > signal_request_profile_pad();
278
279
280 public:
281
282 public:
283 //C++ methods used to invoke GTK+ virtual functions:
284
285 protected:
286 //GTK+ Virtual Functions (override these to change behaviour):
287
288 //Default Signal Handlers::
289
290
291 };
292
293 } // namespace Gst
294
295
296 namespace Glib
297 {
298 /** A Glib::wrap() method for this object.
299 *
300 * @param object The C instance.
301 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
302 * @result A C++ instance that wraps this C instance.
303 *
304 * @relates Gst::EncodeBin
305 */
306 Glib::RefPtr<Gst::EncodeBin> wrap(GstEncodeBin* object, bool take_copy = false);
307 }
308
309
310 #endif // GSTREAMERMM_DISABLE_DEPRECATED
311
312
313 #endif /* _GSTREAMERMM_ENCODEBIN_H */
314