| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/videosink.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/videosink.h>cxx . . $ `<file>/gstreamer/gstreamermm/videosink.h`/ |
| 7 | #include <gstreamermm/private/videosink_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/videosink_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/video/gstvideosink.h> |
| 30 | |
| 31 | |
| 32 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/videosink.cc`/ |
| 33 | { |
| 34 | } // anonymous namespace |
| 35 | |
| 36 | |
| 37 | namespace Glibcxx . . $ Glib/ |
| 38 | { |
| 39 | |
| 40 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::VideoSinkcxx . . $ Gst/VideoSink#> wrapcxx . . $ Glib/wrap(7ef2a21f36086be8).(GstVideoSinkcxx . . $ GstVideoSink#* object, bool take_copy) |
| 41 | { |
| 42 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::VideoSinkcxx . . $ Gst/VideoSink#>( dynamic_cast<Gstcxx . . $ Gst/::VideoSinkcxx . . $ Gst/VideoSink#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 43 | //We use dynamic_cast<> in case of multiple inheritance. |
| 44 | } |
| 45 | |
| 46 | } /* namespace Glib */ |
| 47 | |
| 48 | |
| 49 | namespace Gstcxx . . $ Gst/ |
| 50 | { |
| 51 | |
| 52 | |
| 53 | /* The *_Class implementation: */ |
| 54 | |
| 55 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& VideoSink_Classcxx . . $ Gst/VideoSink_Class#::initcxx . . $ Gst/VideoSink_Class#init(bf348c0cd369184d).() |
| 56 | { |
| 57 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 58 | { |
| 59 | // Glib::Class has to know the class init function to clone custom types. |
| 60 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &VideoSink_Classcxx . . $ Gst/VideoSink_Class#::class_init_functioncxx . . $ Gst/VideoSink_Class#class_init_function(6c58c5e2437d25a2).; |
| 61 | |
| 62 | // This is actually just optimized away, apparently with no harm. |
| 63 | // Make sure that the parent type has been created. |
| 64 | //CppClassParent::CppObjectType::get_type(); |
| 65 | |
| 66 | // Create the wrapper type, with the same class/instance size as the base type. |
| 67 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_video_sink_get_type()); |
| 68 | |
| 69 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 70 | |
| 71 | } |
| 72 | |
| 73 | return *this; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | void VideoSink_Classcxx . . $ Gst/VideoSink_Class#::class_init_functioncxx . . $ Gst/VideoSink_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 78 | { |
| 79 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/VideoSink_Class#BaseClassType#*>(g_class); |
| 80 | CppClassParentcxx . . $ Gst/VideoSink_Class#CppClassParent#::class_init_functioncxx . . $ Gst/BaseSink_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 81 | |
| 82 | |
| 83 | } |
| 84 | |
| 85 | |
| 86 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* VideoSink_Classcxx . . $ Gst/VideoSink_Class#::wrap_newcxx . . $ Gst/VideoSink_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 87 | { |
| 88 | return new VideoSinkcxx . . $ Gst/VideoSink#((GstVideoSinkcxx . . $ GstVideoSink#*)object); |
| 89 | } |
| 90 | |
| 91 | |
| 92 | /* The implementation: */ |
| 93 | |
| 94 | GstVideoSinkcxx . . $ GstVideoSink#* VideoSinkcxx . . $ Gst/VideoSink#::gobj_copycxx . . $ Gst/VideoSink#gobj_copy(5b07b7f4e6ee7efa).() |
| 95 | { |
| 96 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 97 | return gobjcxx . . $ Gst/VideoSink#gobj(5b07b7f4e6ee7efa).(); |
| 98 | } |
| 99 | |
| 100 | VideoSinkcxx . . $ Gst/VideoSink#::VideoSinkcxx . . $ Gst/VideoSink#VideoSink(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 101 | : |
| 102 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#(construct_params) |
| 103 | { |
| 104 | |
| 105 | } |
| 106 | |
| 107 | VideoSinkcxx . . $ Gst/VideoSink#::VideoSinkcxx . . $ Gst/VideoSink#VideoSink(b4ea6bf0ba768419).(GstVideoSinkcxx . . $ GstVideoSink#* castitem) |
| 108 | : |
| 109 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#((GstBaseSinkcxx . . $ GstBaseSink#*)(castitem)) |
| 110 | {} |
| 111 | |
| 112 | |
| 113 | VideoSinkcxx . . $ Gst/VideoSink#::VideoSinkcxx . . $ Gst/VideoSink#VideoSink(249bcff0e2b30ec7).(VideoSinkcxx . . $ Gst/VideoSink#&& src) noexcept |
| 114 | : Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 115 | {} |
| 116 | |
| 117 | VideoSinkcxx . . $ Gst/VideoSink#& VideoSinkcxx . . $ Gst/VideoSink#::operatorcxx . . $ Gst/VideoSink#`operator=`(999df51348e414e0).=(VideoSinkcxx . . $ Gst/VideoSink#&& src) noexcept |
| 118 | { |
| 119 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 120 | return *this; |
| 121 | } |
| 122 | |
| 123 | |
| 124 | VideoSinkcxx . . $ Gst/VideoSink#::~cxx . . $ Gst/VideoSink#`~VideoSink`(ced63f7c635d850d).VideoSinkcxx . . $ Gst/VideoSink#() noexcept |
| 125 | {} |
| 126 | |
| 127 | |
| 128 | VideoSinkcxx . . $ Gst/VideoSink#::CppClassTypecxx . . $ Gst/VideoSink#CppClassType# VideoSinkcxx . . $ Gst/VideoSink#::videosink_class_cxx . . $ Gst/VideoSink#videosink_class_.; // initialize static member |
| 129 | |
| 130 | GType VideoSinkcxx . . $ Gst/VideoSink#::get_typecxx . . $ Gst/VideoSink#get_type(f708dce9a8856c70).() |
| 131 | { |
| 132 | return videosink_class_cxx . . $ Gst/VideoSink#videosink_class_..initcxx . . $ Gst/VideoSink_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 133 | } |
| 134 | |
| 135 | |
| 136 | GType VideoSinkcxx . . $ Gst/VideoSink#::get_base_typecxx . . $ Gst/VideoSink#get_base_type(f708dce9a8856c70).() |
| 137 | { |
| 138 | return gst_video_sink_get_type(); |
| 139 | } |
| 140 | |
| 141 | |
| 142 | int VideoSinkcxx . . $ Gst/VideoSink#::get_heightcxx . . $ Gst/VideoSink#get_height(455f465bc33b4cdf).() const |
| 143 | { |
| 144 | return gobjcxx . . $ Gst/VideoSink#gobj(fcfd395aab06e26e).()->heightcxx . . $ _GstVideoSink#height.; |
| 145 | } |
| 146 | |
| 147 | int VideoSinkcxx . . $ Gst/VideoSink#::get_widthcxx . . $ Gst/VideoSink#get_width(455f465bc33b4cdf).() const |
| 148 | { |
| 149 | return gobjcxx . . $ Gst/VideoSink#gobj(fcfd395aab06e26e).()->widthcxx . . $ _GstVideoSink#width.; |
| 150 | } |
| 151 | |
| 152 | void VideoSinkcxx . . $ Gst/VideoSink#::center_rectcxx . . $ Gst/VideoSink#center_rect(4e3deb426a2d53a8).(const Gstcxx . . $ Gst/::VideoRectanglecxx . . $ Gst/VideoRectangle#& src, const Gstcxx . . $ Gst/::VideoRectanglecxx . . $ Gst/VideoRectangle#& dst, Gstcxx . . $ Gst/::VideoRectanglecxx . . $ Gst/VideoRectangle#& result, bool scaling) |
| 153 | { |
| 154 | gst_video_sink_center_rect(reinterpret_cast<const GstVideoRectanglecxx . . $ GstVideoRectangle#&>(src), reinterpret_cast<const GstVideoRectanglecxx . . $ GstVideoRectangle#&>(dst), reinterpret_cast<GstVideoRectanglecxx . . $ GstVideoRectangle#*>(&result), static_cast<int>(scaling)); |
| 155 | } |
| 156 | |
| 157 | |
| 158 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > VideoSinkcxx . . $ Gst/VideoSink#::property_show_preroll_framecxx . . $ Gst/VideoSink#property_show_preroll_frame(962e4b383dc974dc).() |
| 159 | { |
| 160 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< bool >(this, "show-preroll-frame"); |
| 161 | } |
| 162 | |
| 163 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > VideoSinkcxx . . $ Gst/VideoSink#::property_show_preroll_framecxx . . $ Gst/VideoSink#property_show_preroll_frame(bb701360c56d84c7).() const |
| 164 | { |
| 165 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool >(this, "show-preroll-frame"); |
| 166 | } |
| 167 | |
| 168 | |
| 169 | } // namespace Gst |
| 170 | |
| 171 |