| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <gstreamermmconfig.h> |
| 5 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 6 | |
| 7 | |
| 8 | #include <glibmm.h> |
| 9 | |
| 10 | #include <gstreamermm/encodebin.h> |
| 11 | #include <gstreamermm/private/encodebin_p.h> |
| 12 | |
| 13 | |
| 14 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 15 | |
| 16 | |
| 17 | extern "C" |
| 18 | { |
| 19 | |
| 20 | static GType gst_encode_bin_flags_get_type() |
| 21 | { |
| 22 | static GType const type = g_type_from_name("GstEncodeBinFlags"); |
| 23 | return type; |
| 24 | } |
| 25 | |
| 26 | GType gst_encode_bin_gstreamermm_get_type() |
| 27 | { |
| 28 | static GType type = 0; |
| 29 | GstElementFactory* factory = 0; |
| 30 | GstPluginFeature* feature = 0; |
| 31 | |
| 32 | if(!type) |
| 33 | { |
| 34 | factory = gst_element_factory_find("encodebin"); |
| 35 | // Make sure that the feature is actually loaded: |
| 36 | if(factory) |
| 37 | { |
| 38 | feature = |
| 39 | gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 40 | |
| 41 | g_object_unref(factory); |
| 42 | factory = GST_ELEMENT_FACTORY(feature); |
| 43 | type = gst_element_factory_get_element_type(factory); |
| 44 | g_object_unref(factory); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | return type; |
| 49 | } |
| 50 | |
| 51 | } // extern "C" |
| 52 | |
| 53 | namespace Gst |
| 54 | { |
| 55 | |
| 56 | EncodeBin::EncodeBin() |
| 57 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 58 | Glib::ObjectBase(nullptr), |
| 59 | Gst::Bin(Glib::ConstructParams(encodebin_class_.init(), "name",static_cast<char*>(0), nullptr)) |
| 60 | {} |
| 61 | |
| 62 | EncodeBin::EncodeBin(const Glib::ustring& name) |
| 63 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 64 | Glib::ObjectBase(nullptr), |
| 65 | Gst::Bin(Glib::ConstructParams(encodebin_class_.init(), "name",name.c_str(), nullptr)) |
| 66 | {} |
| 67 | |
| 68 | Glib::RefPtr<Gst::Pad> EncodeBin::request_pad(const Glib::RefPtr<Gst::Caps>& arg0) |
| 69 | { |
| 70 | GstPad* result; |
| 71 | g_signal_emit_by_name(gobj(), "request-pad", Glib::unwrap(arg0), &result, static_cast<void*>(0)); |
| 72 | return Glib::wrap(result); |
| 73 | } |
| 74 | |
| 75 | Glib::RefPtr<Gst::Pad> EncodeBin::request_profile_pad(const Glib::ustring& arg0) |
| 76 | { |
| 77 | GstPad* result; |
| 78 | g_signal_emit_by_name(gobj(), "request-profile-pad", arg0.c_str(), &result, static_cast<void*>(0)); |
| 79 | return Glib::wrap(result); |
| 80 | } |
| 81 | |
| 82 | } |
| 83 | |
| 84 | namespace |
| 85 | { |
| 86 | |
| 87 | |
| 88 | static GstPad* EncodeBin_signal_request_pad_callback(GstEncodeBin* self, GstCaps* p0,void* data) |
| 89 | { |
| 90 | using namespace Gst; |
| 91 | using SlotType = sigc::slot< Glib::RefPtr<Gst::Pad>,const Glib::RefPtr<Gst::Caps>& >; |
| 92 | |
| 93 | auto obj = dynamic_cast<EncodeBin*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 94 | // Do not try to call a signal on a disassociated wrapper. |
| 95 | if(obj) |
| 96 | { |
| 97 | try |
| 98 | { |
| 99 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 100 | return Glib::unwrap((*static_cast<SlotType*>(slot))(Glib::wrap(p0, true) |
| 101 | )); |
| 102 | } |
| 103 | catch(...) |
| 104 | { |
| 105 | Glib::exception_handlers_invoke(); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | using RType = GstPad*; |
| 110 | return RType(); |
| 111 | } |
| 112 | |
| 113 | static GstPad* EncodeBin_signal_request_pad_notify_callback(GstEncodeBin* self, GstCaps* p0, void* data) |
| 114 | { |
| 115 | using namespace Gst; |
| 116 | using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Caps>& >; |
| 117 | |
| 118 | auto obj = dynamic_cast<EncodeBin*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 119 | // Do not try to call a signal on a disassociated wrapper. |
| 120 | if(obj) |
| 121 | { |
| 122 | try |
| 123 | { |
| 124 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 125 | (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true) |
| 126 | ); |
| 127 | } |
| 128 | catch(...) |
| 129 | { |
| 130 | Glib::exception_handlers_invoke(); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | using RType = GstPad*; |
| 135 | return RType(); |
| 136 | } |
| 137 | |
| 138 | static const Glib::SignalProxyInfo EncodeBin_signal_request_pad_info = |
| 139 | { |
| 140 | "request-pad", |
| 141 | (GCallback) &EncodeBin_signal_request_pad_callback, |
| 142 | (GCallback) &EncodeBin_signal_request_pad_notify_callback |
| 143 | }; |
| 144 | |
| 145 | |
| 146 | static GstPad* EncodeBin_signal_request_profile_pad_callback(GstEncodeBin* self, const gchar* p0,void* data) |
| 147 | { |
| 148 | using namespace Gst; |
| 149 | using SlotType = sigc::slot< Glib::RefPtr<Gst::Pad>,const Glib::ustring& >; |
| 150 | |
| 151 | auto obj = dynamic_cast<EncodeBin*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 152 | // Do not try to call a signal on a disassociated wrapper. |
| 153 | if(obj) |
| 154 | { |
| 155 | try |
| 156 | { |
| 157 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 158 | return Glib::unwrap((*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0) |
| 159 | )); |
| 160 | } |
| 161 | catch(...) |
| 162 | { |
| 163 | Glib::exception_handlers_invoke(); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | using RType = GstPad*; |
| 168 | return RType(); |
| 169 | } |
| 170 | |
| 171 | static GstPad* EncodeBin_signal_request_profile_pad_notify_callback(GstEncodeBin* self, const gchar* p0, void* data) |
| 172 | { |
| 173 | using namespace Gst; |
| 174 | using SlotType = sigc::slot< void,const Glib::ustring& >; |
| 175 | |
| 176 | auto obj = dynamic_cast<EncodeBin*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 177 | // Do not try to call a signal on a disassociated wrapper. |
| 178 | if(obj) |
| 179 | { |
| 180 | try |
| 181 | { |
| 182 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 183 | (*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0) |
| 184 | ); |
| 185 | } |
| 186 | catch(...) |
| 187 | { |
| 188 | Glib::exception_handlers_invoke(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | using RType = GstPad*; |
| 193 | return RType(); |
| 194 | } |
| 195 | |
| 196 | static const Glib::SignalProxyInfo EncodeBin_signal_request_profile_pad_info = |
| 197 | { |
| 198 | "request-profile-pad", |
| 199 | (GCallback) &EncodeBin_signal_request_profile_pad_callback, |
| 200 | (GCallback) &EncodeBin_signal_request_profile_pad_notify_callback |
| 201 | }; |
| 202 | |
| 203 | |
| 204 | } // anonymous namespace |
| 205 | |
| 206 | // static |
| 207 | GType Glib::Value<Gst::EncodeBinFlags>::value_type() |
| 208 | { |
| 209 | return gst_encode_bin_flags_get_type(); |
| 210 | } |
| 211 | |
| 212 | |
| 213 | namespace Glib |
| 214 | { |
| 215 | |
| 216 | Glib::RefPtr<Gst::EncodeBin> wrap(GstEncodeBin* object, bool take_copy) |
| 217 | { |
| 218 | return Glib::RefPtr<Gst::EncodeBin>( dynamic_cast<Gst::EncodeBin*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 219 | //We use dynamic_cast<> in case of multiple inheritance. |
| 220 | } |
| 221 | |
| 222 | } /* namespace Glib */ |
| 223 | |
| 224 | |
| 225 | namespace Gst |
| 226 | { |
| 227 | |
| 228 | |
| 229 | /* The *_Class implementation: */ |
| 230 | |
| 231 | const Glib::Class& EncodeBin_Class::init() |
| 232 | { |
| 233 | if(!gtype_) // create the GType if necessary |
| 234 | { |
| 235 | // Glib::Class has to know the class init function to clone custom types. |
| 236 | class_init_func_ = &EncodeBin_Class::class_init_function; |
| 237 | |
| 238 | // This is actually just optimized away, apparently with no harm. |
| 239 | // Make sure that the parent type has been created. |
| 240 | //CppClassParent::CppObjectType::get_type(); |
| 241 | |
| 242 | // Create the wrapper type, with the same class/instance size as the base type. |
| 243 | register_derived_type(gst_encode_bin_gstreamermm_get_type()); |
| 244 | |
| 245 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 246 | |
| 247 | } |
| 248 | |
| 249 | return *this; |
| 250 | } |
| 251 | |
| 252 | |
| 253 | void EncodeBin_Class::class_init_function(void* g_class, void* class_data) |
| 254 | { |
| 255 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 256 | CppClassParent::class_init_function(klass, class_data); |
| 257 | |
| 258 | |
| 259 | } |
| 260 | |
| 261 | |
| 262 | Glib::ObjectBase* EncodeBin_Class::wrap_new(GObject* object) |
| 263 | { |
| 264 | return new EncodeBin((GstEncodeBin*)object); |
| 265 | } |
| 266 | |
| 267 | |
| 268 | /* The implementation: */ |
| 269 | |
| 270 | GstEncodeBin* EncodeBin::gobj_copy() |
| 271 | { |
| 272 | reference(); |
| 273 | return gobj(); |
| 274 | } |
| 275 | |
| 276 | EncodeBin::EncodeBin(const Glib::ConstructParams& construct_params) |
| 277 | : |
| 278 | Gst::Bin(construct_params) |
| 279 | { |
| 280 | |
| 281 | } |
| 282 | |
| 283 | EncodeBin::EncodeBin(GstEncodeBin* castitem) |
| 284 | : |
| 285 | Gst::Bin((GstBin*)(castitem)) |
| 286 | {} |
| 287 | |
| 288 | |
| 289 | EncodeBin::EncodeBin(EncodeBin&& src) noexcept |
| 290 | : Gst::Bin(std::move(src)) |
| 291 | {} |
| 292 | |
| 293 | EncodeBin& EncodeBin::operator=(EncodeBin&& src) noexcept |
| 294 | { |
| 295 | Gst::Bin::operator=(std::move(src)); |
| 296 | return *this; |
| 297 | } |
| 298 | |
| 299 | |
| 300 | EncodeBin::~EncodeBin() noexcept |
| 301 | {} |
| 302 | |
| 303 | |
| 304 | EncodeBin::CppClassType EncodeBin::encodebin_class_; // initialize static member |
| 305 | |
| 306 | GType EncodeBin::get_type() |
| 307 | { |
| 308 | return encodebin_class_.init().get_type(); |
| 309 | } |
| 310 | |
| 311 | |
| 312 | GType EncodeBin::get_base_type() |
| 313 | { |
| 314 | return gst_encode_bin_gstreamermm_get_type(); |
| 315 | } |
| 316 | |
| 317 | |
| 318 | Glib::RefPtr<EncodeBin> EncodeBin::create() |
| 319 | { |
| 320 | return Glib::RefPtr<EncodeBin>( new EncodeBin() ); |
| 321 | } |
| 322 | |
| 323 | Glib::RefPtr<EncodeBin> EncodeBin::create(const Glib::ustring& name) |
| 324 | { |
| 325 | return Glib::RefPtr<EncodeBin>( new EncodeBin(name) ); |
| 326 | } |
| 327 | |
| 328 | |
| 329 | Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::RefPtr<Gst::Caps>& > EncodeBin::signal_request_pad() |
| 330 | { |
| 331 | return Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::RefPtr<Gst::Caps>& >(this, &EncodeBin_signal_request_pad_info); |
| 332 | } |
| 333 | |
| 334 | |
| 335 | Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::ustring& > EncodeBin::signal_request_profile_pad() |
| 336 | { |
| 337 | return Glib::SignalProxy< Glib::RefPtr<Gst::Pad>,const Glib::ustring& >(this, &EncodeBin_signal_request_profile_pad_info); |
| 338 | } |
| 339 | |
| 340 | |
| 341 | Glib::PropertyProxy< Glib::RefPtr<Gst::EncodingProfile> > EncodeBin::property_profile() |
| 342 | { |
| 343 | return Glib::PropertyProxy< Glib::RefPtr<Gst::EncodingProfile> >(this, "profile"); |
| 344 | } |
| 345 | |
| 346 | Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::EncodingProfile> > EncodeBin::property_profile() const |
| 347 | { |
| 348 | return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::EncodingProfile> >(this, "profile"); |
| 349 | } |
| 350 | |
| 351 | Glib::PropertyProxy< guint > EncodeBin::property_queue_buffers_max() |
| 352 | { |
| 353 | return Glib::PropertyProxy< guint >(this, "queue-buffers-max"); |
| 354 | } |
| 355 | |
| 356 | Glib::PropertyProxy_ReadOnly< guint > EncodeBin::property_queue_buffers_max() const |
| 357 | { |
| 358 | return Glib::PropertyProxy_ReadOnly< guint >(this, "queue-buffers-max"); |
| 359 | } |
| 360 | |
| 361 | Glib::PropertyProxy< guint > EncodeBin::property_queue_bytes_max() |
| 362 | { |
| 363 | return Glib::PropertyProxy< guint >(this, "queue-bytes-max"); |
| 364 | } |
| 365 | |
| 366 | Glib::PropertyProxy_ReadOnly< guint > EncodeBin::property_queue_bytes_max() const |
| 367 | { |
| 368 | return Glib::PropertyProxy_ReadOnly< guint >(this, "queue-bytes-max"); |
| 369 | } |
| 370 | |
| 371 | Glib::PropertyProxy< guint64 > EncodeBin::property_queue_time_max() |
| 372 | { |
| 373 | return Glib::PropertyProxy< guint64 >(this, "queue-time-max"); |
| 374 | } |
| 375 | |
| 376 | Glib::PropertyProxy_ReadOnly< guint64 > EncodeBin::property_queue_time_max() const |
| 377 | { |
| 378 | return Glib::PropertyProxy_ReadOnly< guint64 >(this, "queue-time-max"); |
| 379 | } |
| 380 | |
| 381 | Glib::PropertyProxy< guint64 > EncodeBin::property_audio_jitter_tolerance() |
| 382 | { |
| 383 | return Glib::PropertyProxy< guint64 >(this, "audio-jitter-tolerance"); |
| 384 | } |
| 385 | |
| 386 | Glib::PropertyProxy_ReadOnly< guint64 > EncodeBin::property_audio_jitter_tolerance() const |
| 387 | { |
| 388 | return Glib::PropertyProxy_ReadOnly< guint64 >(this, "audio-jitter-tolerance"); |
| 389 | } |
| 390 | |
| 391 | Glib::PropertyProxy< bool > EncodeBin::property_avoid_reencoding() |
| 392 | { |
| 393 | return Glib::PropertyProxy< bool >(this, "avoid-reencoding"); |
| 394 | } |
| 395 | |
| 396 | Glib::PropertyProxy_ReadOnly< bool > EncodeBin::property_avoid_reencoding() const |
| 397 | { |
| 398 | return Glib::PropertyProxy_ReadOnly< bool >(this, "avoid-reencoding"); |
| 399 | } |
| 400 | |
| 401 | Glib::PropertyProxy< Gst::EncodeBinFlags > EncodeBin::property_flags() |
| 402 | { |
| 403 | return Glib::PropertyProxy< Gst::EncodeBinFlags >(this, "flags"); |
| 404 | } |
| 405 | |
| 406 | Glib::PropertyProxy_ReadOnly< Gst::EncodeBinFlags > EncodeBin::property_flags() const |
| 407 | { |
| 408 | return Glib::PropertyProxy_ReadOnly< Gst::EncodeBinFlags >(this, "flags"); |
| 409 | } |
| 410 | |
| 411 | |
| 412 | } // namespace Gst |
| 413 | |
| 414 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 415 | |
| 416 |