| 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/videotestsrc.h> |
| 11 | #include <gstreamermm/private/videotestsrc_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_video_test_src_pattern_get_type() |
| 21 | { |
| 22 | static GType const type = g_type_from_name("GstVideoTestSrcPattern"); |
| 23 | return type; |
| 24 | } |
| 25 | |
| 26 | GType gst_video_test_src_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("videotestsrc"); |
| 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 | VideoTestSrc::VideoTestSrc() |
| 57 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 58 | Glib::ObjectBase(nullptr), |
| 59 | Gst::PushSrc(Glib::ConstructParams(videotestsrc_class_.init(), "name",static_cast<char*>(0), nullptr)) |
| 60 | {} |
| 61 | |
| 62 | VideoTestSrc::VideoTestSrc(const Glib::ustring& name) |
| 63 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 64 | Glib::ObjectBase(nullptr), |
| 65 | Gst::PushSrc(Glib::ConstructParams(videotestsrc_class_.init(), "name",name.c_str(), nullptr)) |
| 66 | {} |
| 67 | |
| 68 | } |
| 69 | |
| 70 | namespace |
| 71 | { |
| 72 | } // anonymous namespace |
| 73 | |
| 74 | // static |
| 75 | GType Glib::Value<Gst::VideoTestSrcPattern>::value_type() |
| 76 | { |
| 77 | return gst_video_test_src_pattern_get_type(); |
| 78 | } |
| 79 | |
| 80 | |
| 81 | namespace Glib |
| 82 | { |
| 83 | |
| 84 | Glib::RefPtr<Gst::VideoTestSrc> wrap(GstVideoTestSrc* object, bool take_copy) |
| 85 | { |
| 86 | return Glib::RefPtr<Gst::VideoTestSrc>( dynamic_cast<Gst::VideoTestSrc*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 87 | //We use dynamic_cast<> in case of multiple inheritance. |
| 88 | } |
| 89 | |
| 90 | } /* namespace Glib */ |
| 91 | |
| 92 | |
| 93 | namespace Gst |
| 94 | { |
| 95 | |
| 96 | |
| 97 | /* The *_Class implementation: */ |
| 98 | |
| 99 | const Glib::Class& VideoTestSrc_Class::init() |
| 100 | { |
| 101 | if(!gtype_) // create the GType if necessary |
| 102 | { |
| 103 | // Glib::Class has to know the class init function to clone custom types. |
| 104 | class_init_func_ = &VideoTestSrc_Class::class_init_function; |
| 105 | |
| 106 | // This is actually just optimized away, apparently with no harm. |
| 107 | // Make sure that the parent type has been created. |
| 108 | //CppClassParent::CppObjectType::get_type(); |
| 109 | |
| 110 | // Create the wrapper type, with the same class/instance size as the base type. |
| 111 | register_derived_type(gst_video_test_src_gstreamermm_get_type()); |
| 112 | |
| 113 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 114 | |
| 115 | } |
| 116 | |
| 117 | return *this; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | void VideoTestSrc_Class::class_init_function(void* g_class, void* class_data) |
| 122 | { |
| 123 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 124 | CppClassParent::class_init_function(klass, class_data); |
| 125 | |
| 126 | |
| 127 | } |
| 128 | |
| 129 | |
| 130 | Glib::ObjectBase* VideoTestSrc_Class::wrap_new(GObject* object) |
| 131 | { |
| 132 | return new VideoTestSrc((GstVideoTestSrc*)object); |
| 133 | } |
| 134 | |
| 135 | |
| 136 | /* The implementation: */ |
| 137 | |
| 138 | GstVideoTestSrc* VideoTestSrc::gobj_copy() |
| 139 | { |
| 140 | reference(); |
| 141 | return gobj(); |
| 142 | } |
| 143 | |
| 144 | VideoTestSrc::VideoTestSrc(const Glib::ConstructParams& construct_params) |
| 145 | : |
| 146 | Gst::PushSrc(construct_params) |
| 147 | { |
| 148 | |
| 149 | } |
| 150 | |
| 151 | VideoTestSrc::VideoTestSrc(GstVideoTestSrc* castitem) |
| 152 | : |
| 153 | Gst::PushSrc((GstPushSrc*)(castitem)) |
| 154 | {} |
| 155 | |
| 156 | |
| 157 | VideoTestSrc::VideoTestSrc(VideoTestSrc&& src) noexcept |
| 158 | : Gst::PushSrc(std::move(src)) |
| 159 | {} |
| 160 | |
| 161 | VideoTestSrc& VideoTestSrc::operator=(VideoTestSrc&& src) noexcept |
| 162 | { |
| 163 | Gst::PushSrc::operator=(std::move(src)); |
| 164 | return *this; |
| 165 | } |
| 166 | |
| 167 | |
| 168 | VideoTestSrc::~VideoTestSrc() noexcept |
| 169 | {} |
| 170 | |
| 171 | |
| 172 | VideoTestSrc::CppClassType VideoTestSrc::videotestsrc_class_; // initialize static member |
| 173 | |
| 174 | GType VideoTestSrc::get_type() |
| 175 | { |
| 176 | return videotestsrc_class_.init().get_type(); |
| 177 | } |
| 178 | |
| 179 | |
| 180 | GType VideoTestSrc::get_base_type() |
| 181 | { |
| 182 | return gst_video_test_src_gstreamermm_get_type(); |
| 183 | } |
| 184 | |
| 185 | |
| 186 | Glib::RefPtr<VideoTestSrc> VideoTestSrc::create() |
| 187 | { |
| 188 | return Glib::RefPtr<VideoTestSrc>( new VideoTestSrc() ); |
| 189 | } |
| 190 | |
| 191 | Glib::RefPtr<VideoTestSrc> VideoTestSrc::create(const Glib::ustring& name) |
| 192 | { |
| 193 | return Glib::RefPtr<VideoTestSrc>( new VideoTestSrc(name) ); |
| 194 | } |
| 195 | |
| 196 | |
| 197 | Glib::PropertyProxy< Gst::VideoTestSrcPattern > VideoTestSrc::property_pattern() |
| 198 | { |
| 199 | return Glib::PropertyProxy< Gst::VideoTestSrcPattern >(this, "pattern"); |
| 200 | } |
| 201 | |
| 202 | Glib::PropertyProxy_ReadOnly< Gst::VideoTestSrcPattern > VideoTestSrc::property_pattern() const |
| 203 | { |
| 204 | return Glib::PropertyProxy_ReadOnly< Gst::VideoTestSrcPattern >(this, "pattern"); |
| 205 | } |
| 206 | |
| 207 | Glib::PropertyProxy< gint64 > VideoTestSrc::property_timestamp_offset() |
| 208 | { |
| 209 | return Glib::PropertyProxy< gint64 >(this, "timestamp-offset"); |
| 210 | } |
| 211 | |
| 212 | Glib::PropertyProxy_ReadOnly< gint64 > VideoTestSrc::property_timestamp_offset() const |
| 213 | { |
| 214 | return Glib::PropertyProxy_ReadOnly< gint64 >(this, "timestamp-offset"); |
| 215 | } |
| 216 | |
| 217 | Glib::PropertyProxy< bool > VideoTestSrc::property_is_live() |
| 218 | { |
| 219 | return Glib::PropertyProxy< bool >(this, "is-live"); |
| 220 | } |
| 221 | |
| 222 | Glib::PropertyProxy_ReadOnly< bool > VideoTestSrc::property_is_live() const |
| 223 | { |
| 224 | return Glib::PropertyProxy_ReadOnly< bool >(this, "is-live"); |
| 225 | } |
| 226 | |
| 227 | Glib::PropertyProxy< int > VideoTestSrc::property_k0() |
| 228 | { |
| 229 | return Glib::PropertyProxy< int >(this, "k0"); |
| 230 | } |
| 231 | |
| 232 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_k0() const |
| 233 | { |
| 234 | return Glib::PropertyProxy_ReadOnly< int >(this, "k0"); |
| 235 | } |
| 236 | |
| 237 | Glib::PropertyProxy< int > VideoTestSrc::property_kx() |
| 238 | { |
| 239 | return Glib::PropertyProxy< int >(this, "kx"); |
| 240 | } |
| 241 | |
| 242 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kx() const |
| 243 | { |
| 244 | return Glib::PropertyProxy_ReadOnly< int >(this, "kx"); |
| 245 | } |
| 246 | |
| 247 | Glib::PropertyProxy< int > VideoTestSrc::property_ky() |
| 248 | { |
| 249 | return Glib::PropertyProxy< int >(this, "ky"); |
| 250 | } |
| 251 | |
| 252 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_ky() const |
| 253 | { |
| 254 | return Glib::PropertyProxy_ReadOnly< int >(this, "ky"); |
| 255 | } |
| 256 | |
| 257 | Glib::PropertyProxy< int > VideoTestSrc::property_kt() |
| 258 | { |
| 259 | return Glib::PropertyProxy< int >(this, "kt"); |
| 260 | } |
| 261 | |
| 262 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kt() const |
| 263 | { |
| 264 | return Glib::PropertyProxy_ReadOnly< int >(this, "kt"); |
| 265 | } |
| 266 | |
| 267 | Glib::PropertyProxy< int > VideoTestSrc::property_kxt() |
| 268 | { |
| 269 | return Glib::PropertyProxy< int >(this, "kxt"); |
| 270 | } |
| 271 | |
| 272 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kxt() const |
| 273 | { |
| 274 | return Glib::PropertyProxy_ReadOnly< int >(this, "kxt"); |
| 275 | } |
| 276 | |
| 277 | Glib::PropertyProxy< int > VideoTestSrc::property_kyt() |
| 278 | { |
| 279 | return Glib::PropertyProxy< int >(this, "kyt"); |
| 280 | } |
| 281 | |
| 282 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kyt() const |
| 283 | { |
| 284 | return Glib::PropertyProxy_ReadOnly< int >(this, "kyt"); |
| 285 | } |
| 286 | |
| 287 | Glib::PropertyProxy< int > VideoTestSrc::property_kxy() |
| 288 | { |
| 289 | return Glib::PropertyProxy< int >(this, "kxy"); |
| 290 | } |
| 291 | |
| 292 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kxy() const |
| 293 | { |
| 294 | return Glib::PropertyProxy_ReadOnly< int >(this, "kxy"); |
| 295 | } |
| 296 | |
| 297 | Glib::PropertyProxy< int > VideoTestSrc::property_kx2() |
| 298 | { |
| 299 | return Glib::PropertyProxy< int >(this, "kx2"); |
| 300 | } |
| 301 | |
| 302 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kx2() const |
| 303 | { |
| 304 | return Glib::PropertyProxy_ReadOnly< int >(this, "kx2"); |
| 305 | } |
| 306 | |
| 307 | Glib::PropertyProxy< int > VideoTestSrc::property_ky2() |
| 308 | { |
| 309 | return Glib::PropertyProxy< int >(this, "ky2"); |
| 310 | } |
| 311 | |
| 312 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_ky2() const |
| 313 | { |
| 314 | return Glib::PropertyProxy_ReadOnly< int >(this, "ky2"); |
| 315 | } |
| 316 | |
| 317 | Glib::PropertyProxy< int > VideoTestSrc::property_kt2() |
| 318 | { |
| 319 | return Glib::PropertyProxy< int >(this, "kt2"); |
| 320 | } |
| 321 | |
| 322 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_kt2() const |
| 323 | { |
| 324 | return Glib::PropertyProxy_ReadOnly< int >(this, "kt2"); |
| 325 | } |
| 326 | |
| 327 | Glib::PropertyProxy< int > VideoTestSrc::property_xoffset() |
| 328 | { |
| 329 | return Glib::PropertyProxy< int >(this, "xoffset"); |
| 330 | } |
| 331 | |
| 332 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_xoffset() const |
| 333 | { |
| 334 | return Glib::PropertyProxy_ReadOnly< int >(this, "xoffset"); |
| 335 | } |
| 336 | |
| 337 | Glib::PropertyProxy< int > VideoTestSrc::property_yoffset() |
| 338 | { |
| 339 | return Glib::PropertyProxy< int >(this, "yoffset"); |
| 340 | } |
| 341 | |
| 342 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_yoffset() const |
| 343 | { |
| 344 | return Glib::PropertyProxy_ReadOnly< int >(this, "yoffset"); |
| 345 | } |
| 346 | |
| 347 | Glib::PropertyProxy< guint > VideoTestSrc::property_foreground_color() |
| 348 | { |
| 349 | return Glib::PropertyProxy< guint >(this, "foreground-color"); |
| 350 | } |
| 351 | |
| 352 | Glib::PropertyProxy_ReadOnly< guint > VideoTestSrc::property_foreground_color() const |
| 353 | { |
| 354 | return Glib::PropertyProxy_ReadOnly< guint >(this, "foreground-color"); |
| 355 | } |
| 356 | |
| 357 | Glib::PropertyProxy< guint > VideoTestSrc::property_background_color() |
| 358 | { |
| 359 | return Glib::PropertyProxy< guint >(this, "background-color"); |
| 360 | } |
| 361 | |
| 362 | Glib::PropertyProxy_ReadOnly< guint > VideoTestSrc::property_background_color() const |
| 363 | { |
| 364 | return Glib::PropertyProxy_ReadOnly< guint >(this, "background-color"); |
| 365 | } |
| 366 | |
| 367 | Glib::PropertyProxy< int > VideoTestSrc::property_horizontal_speed() |
| 368 | { |
| 369 | return Glib::PropertyProxy< int >(this, "horizontal-speed"); |
| 370 | } |
| 371 | |
| 372 | Glib::PropertyProxy_ReadOnly< int > VideoTestSrc::property_horizontal_speed() const |
| 373 | { |
| 374 | return Glib::PropertyProxy_ReadOnly< int >(this, "horizontal-speed"); |
| 375 | } |
| 376 | |
| 377 | |
| 378 | } // namespace Gst |
| 379 | |
| 380 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 381 | |
| 382 |