| 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/identity.h> |
| 11 | #include <gstreamermm/private/identity_p.h> |
| 12 | |
| 13 | |
| 14 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 15 | |
| 16 | |
| 17 | extern "C" |
| 18 | { |
| 19 | |
| 20 | GType gst_identity_gstreamermm_get_type() |
| 21 | { |
| 22 | static GType type = 0; |
| 23 | GstElementFactory* factory = 0; |
| 24 | GstPluginFeature* feature = 0; |
| 25 | |
| 26 | if(!type) |
| 27 | { |
| 28 | factory = gst_element_factory_find("identity"); |
| 29 | // Make sure that the feature is actually loaded: |
| 30 | if(factory) |
| 31 | { |
| 32 | feature = |
| 33 | gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 34 | |
| 35 | g_object_unref(factory); |
| 36 | factory = GST_ELEMENT_FACTORY(feature); |
| 37 | type = gst_element_factory_get_element_type(factory); |
| 38 | g_object_unref(factory); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | return type; |
| 43 | } |
| 44 | |
| 45 | } // extern "C" |
| 46 | |
| 47 | namespace Gst |
| 48 | { |
| 49 | |
| 50 | Identity::Identity() |
| 51 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 52 | Glib::ObjectBase(nullptr), |
| 53 | Gst::BaseTransform(Glib::ConstructParams(identity_class_.init(), "name",static_cast<char*>(0), nullptr)) |
| 54 | {} |
| 55 | |
| 56 | Identity::Identity(const Glib::ustring& name) |
| 57 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 58 | Glib::ObjectBase(nullptr), |
| 59 | Gst::BaseTransform(Glib::ConstructParams(identity_class_.init(), "name",name.c_str(), nullptr)) |
| 60 | {} |
| 61 | |
| 62 | } |
| 63 | |
| 64 | namespace |
| 65 | { |
| 66 | |
| 67 | |
| 68 | static void Identity_signal_handoff_callback(GstIdentity* self, GstBuffer* p0,void* data) |
| 69 | { |
| 70 | using namespace Gst; |
| 71 | using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Buffer>& >; |
| 72 | |
| 73 | auto obj = dynamic_cast<Identity*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 74 | // Do not try to call a signal on a disassociated wrapper. |
| 75 | if(obj) |
| 76 | { |
| 77 | try |
| 78 | { |
| 79 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 80 | (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true) |
| 81 | ); |
| 82 | } |
| 83 | catch(...) |
| 84 | { |
| 85 | Glib::exception_handlers_invoke(); |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | static const Glib::SignalProxyInfo Identity_signal_handoff_info = |
| 91 | { |
| 92 | "handoff", |
| 93 | (GCallback) &Identity_signal_handoff_callback, |
| 94 | (GCallback) &Identity_signal_handoff_callback |
| 95 | }; |
| 96 | |
| 97 | |
| 98 | } // anonymous namespace |
| 99 | |
| 100 | |
| 101 | namespace Glib |
| 102 | { |
| 103 | |
| 104 | Glib::RefPtr<Gst::Identity> wrap(GstIdentity* object, bool take_copy) |
| 105 | { |
| 106 | return Glib::RefPtr<Gst::Identity>( dynamic_cast<Gst::Identity*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 107 | //We use dynamic_cast<> in case of multiple inheritance. |
| 108 | } |
| 109 | |
| 110 | } /* namespace Glib */ |
| 111 | |
| 112 | |
| 113 | namespace Gst |
| 114 | { |
| 115 | |
| 116 | |
| 117 | /* The *_Class implementation: */ |
| 118 | |
| 119 | const Glib::Class& Identity_Class::init() |
| 120 | { |
| 121 | if(!gtype_) // create the GType if necessary |
| 122 | { |
| 123 | // Glib::Class has to know the class init function to clone custom types. |
| 124 | class_init_func_ = &Identity_Class::class_init_function; |
| 125 | |
| 126 | // This is actually just optimized away, apparently with no harm. |
| 127 | // Make sure that the parent type has been created. |
| 128 | //CppClassParent::CppObjectType::get_type(); |
| 129 | |
| 130 | // Create the wrapper type, with the same class/instance size as the base type. |
| 131 | register_derived_type(gst_identity_gstreamermm_get_type()); |
| 132 | |
| 133 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 134 | |
| 135 | } |
| 136 | |
| 137 | return *this; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | void Identity_Class::class_init_function(void* g_class, void* class_data) |
| 142 | { |
| 143 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 144 | CppClassParent::class_init_function(klass, class_data); |
| 145 | |
| 146 | |
| 147 | } |
| 148 | |
| 149 | |
| 150 | Glib::ObjectBase* Identity_Class::wrap_new(GObject* object) |
| 151 | { |
| 152 | return new Identity((GstIdentity*)object); |
| 153 | } |
| 154 | |
| 155 | |
| 156 | /* The implementation: */ |
| 157 | |
| 158 | GstIdentity* Identity::gobj_copy() |
| 159 | { |
| 160 | reference(); |
| 161 | return gobj(); |
| 162 | } |
| 163 | |
| 164 | Identity::Identity(const Glib::ConstructParams& construct_params) |
| 165 | : |
| 166 | Gst::BaseTransform(construct_params) |
| 167 | { |
| 168 | |
| 169 | } |
| 170 | |
| 171 | Identity::Identity(GstIdentity* castitem) |
| 172 | : |
| 173 | Gst::BaseTransform((GstBaseTransform*)(castitem)) |
| 174 | {} |
| 175 | |
| 176 | |
| 177 | Identity::Identity(Identity&& src) noexcept |
| 178 | : Gst::BaseTransform(std::move(src)) |
| 179 | {} |
| 180 | |
| 181 | Identity& Identity::operator=(Identity&& src) noexcept |
| 182 | { |
| 183 | Gst::BaseTransform::operator=(std::move(src)); |
| 184 | return *this; |
| 185 | } |
| 186 | |
| 187 | |
| 188 | Identity::~Identity() noexcept |
| 189 | {} |
| 190 | |
| 191 | |
| 192 | Identity::CppClassType Identity::identity_class_; // initialize static member |
| 193 | |
| 194 | GType Identity::get_type() |
| 195 | { |
| 196 | return identity_class_.init().get_type(); |
| 197 | } |
| 198 | |
| 199 | |
| 200 | GType Identity::get_base_type() |
| 201 | { |
| 202 | return gst_identity_gstreamermm_get_type(); |
| 203 | } |
| 204 | |
| 205 | |
| 206 | Glib::RefPtr<Identity> Identity::create() |
| 207 | { |
| 208 | return Glib::RefPtr<Identity>( new Identity() ); |
| 209 | } |
| 210 | |
| 211 | Glib::RefPtr<Identity> Identity::create(const Glib::ustring& name) |
| 212 | { |
| 213 | return Glib::RefPtr<Identity>( new Identity(name) ); |
| 214 | } |
| 215 | |
| 216 | |
| 217 | Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>& > Identity::signal_handoff() |
| 218 | { |
| 219 | return Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>& >(this, &Identity_signal_handoff_info); |
| 220 | } |
| 221 | |
| 222 | |
| 223 | Glib::PropertyProxy< guint > Identity::property_sleep_time() |
| 224 | { |
| 225 | return Glib::PropertyProxy< guint >(this, "sleep-time"); |
| 226 | } |
| 227 | |
| 228 | Glib::PropertyProxy_ReadOnly< guint > Identity::property_sleep_time() const |
| 229 | { |
| 230 | return Glib::PropertyProxy_ReadOnly< guint >(this, "sleep-time"); |
| 231 | } |
| 232 | |
| 233 | Glib::PropertyProxy< int > Identity::property_error_after() |
| 234 | { |
| 235 | return Glib::PropertyProxy< int >(this, "error-after"); |
| 236 | } |
| 237 | |
| 238 | Glib::PropertyProxy_ReadOnly< int > Identity::property_error_after() const |
| 239 | { |
| 240 | return Glib::PropertyProxy_ReadOnly< int >(this, "error-after"); |
| 241 | } |
| 242 | |
| 243 | Glib::PropertyProxy< float > Identity::property_drop_probability() |
| 244 | { |
| 245 | return Glib::PropertyProxy< float >(this, "drop-probability"); |
| 246 | } |
| 247 | |
| 248 | Glib::PropertyProxy_ReadOnly< float > Identity::property_drop_probability() const |
| 249 | { |
| 250 | return Glib::PropertyProxy_ReadOnly< float >(this, "drop-probability"); |
| 251 | } |
| 252 | |
| 253 | Glib::PropertyProxy< Gst::BufferFlags > Identity::property_drop_buffer_flags() |
| 254 | { |
| 255 | return Glib::PropertyProxy< Gst::BufferFlags >(this, "drop-buffer-flags"); |
| 256 | } |
| 257 | |
| 258 | Glib::PropertyProxy_ReadOnly< Gst::BufferFlags > Identity::property_drop_buffer_flags() const |
| 259 | { |
| 260 | return Glib::PropertyProxy_ReadOnly< Gst::BufferFlags >(this, "drop-buffer-flags"); |
| 261 | } |
| 262 | |
| 263 | Glib::PropertyProxy< int > Identity::property_datarate() |
| 264 | { |
| 265 | return Glib::PropertyProxy< int >(this, "datarate"); |
| 266 | } |
| 267 | |
| 268 | Glib::PropertyProxy_ReadOnly< int > Identity::property_datarate() const |
| 269 | { |
| 270 | return Glib::PropertyProxy_ReadOnly< int >(this, "datarate"); |
| 271 | } |
| 272 | |
| 273 | Glib::PropertyProxy< bool > Identity::property_silent() |
| 274 | { |
| 275 | return Glib::PropertyProxy< bool >(this, "silent"); |
| 276 | } |
| 277 | |
| 278 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_silent() const |
| 279 | { |
| 280 | return Glib::PropertyProxy_ReadOnly< bool >(this, "silent"); |
| 281 | } |
| 282 | |
| 283 | Glib::PropertyProxy< bool > Identity::property_single_segment() |
| 284 | { |
| 285 | return Glib::PropertyProxy< bool >(this, "single-segment"); |
| 286 | } |
| 287 | |
| 288 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_single_segment() const |
| 289 | { |
| 290 | return Glib::PropertyProxy_ReadOnly< bool >(this, "single-segment"); |
| 291 | } |
| 292 | |
| 293 | Glib::PropertyProxy_ReadOnly< Glib::ustring > Identity::property_last_message() const |
| 294 | { |
| 295 | return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "last-message"); |
| 296 | } |
| 297 | |
| 298 | Glib::PropertyProxy< bool > Identity::property_dump() |
| 299 | { |
| 300 | return Glib::PropertyProxy< bool >(this, "dump"); |
| 301 | } |
| 302 | |
| 303 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_dump() const |
| 304 | { |
| 305 | return Glib::PropertyProxy_ReadOnly< bool >(this, "dump"); |
| 306 | } |
| 307 | |
| 308 | Glib::PropertyProxy< bool > Identity::property_sync() |
| 309 | { |
| 310 | return Glib::PropertyProxy< bool >(this, "sync"); |
| 311 | } |
| 312 | |
| 313 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_sync() const |
| 314 | { |
| 315 | return Glib::PropertyProxy_ReadOnly< bool >(this, "sync"); |
| 316 | } |
| 317 | |
| 318 | Glib::PropertyProxy< bool > Identity::property_check_imperfect_timestamp() |
| 319 | { |
| 320 | return Glib::PropertyProxy< bool >(this, "check-imperfect-timestamp"); |
| 321 | } |
| 322 | |
| 323 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_check_imperfect_timestamp() const |
| 324 | { |
| 325 | return Glib::PropertyProxy_ReadOnly< bool >(this, "check-imperfect-timestamp"); |
| 326 | } |
| 327 | |
| 328 | Glib::PropertyProxy< bool > Identity::property_check_imperfect_offset() |
| 329 | { |
| 330 | return Glib::PropertyProxy< bool >(this, "check-imperfect-offset"); |
| 331 | } |
| 332 | |
| 333 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_check_imperfect_offset() const |
| 334 | { |
| 335 | return Glib::PropertyProxy_ReadOnly< bool >(this, "check-imperfect-offset"); |
| 336 | } |
| 337 | |
| 338 | Glib::PropertyProxy< bool > Identity::property_signal_handoffs() |
| 339 | { |
| 340 | return Glib::PropertyProxy< bool >(this, "signal-handoffs"); |
| 341 | } |
| 342 | |
| 343 | Glib::PropertyProxy_ReadOnly< bool > Identity::property_signal_handoffs() const |
| 344 | { |
| 345 | return Glib::PropertyProxy_ReadOnly< bool >(this, "signal-handoffs"); |
| 346 | } |
| 347 | |
| 348 | |
| 349 | } // namespace Gst |
| 350 | |
| 351 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 352 | |
| 353 |