Debian Codegraph @

gstreamer/gstreamermm/videosink.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/videosink.h>
7 #include <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 namespace
33 {
34 } // anonymous namespace
35
36
37 namespace Glib
38 {
39
40 Glib::RefPtr<Gst::VideoSink> wrap(GstVideoSink* object, bool take_copy)
41 {
42 return Glib::RefPtr<Gst::VideoSink>( dynamic_cast<Gst::VideoSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
43 //We use dynamic_cast<> in case of multiple inheritance.
44 }
45
46 } /* namespace Glib */
47
48
49 namespace Gst
50 {
51
52
53 /* The *_Class implementation: */
54
55 const Glib::Class& VideoSink_Class::init()
56 {
57 if(!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_ = &VideoSink_Class::class_init_function;
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_type(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_Class::class_init_function(void* g_class, void* class_data)
78 {
79 const auto klass = static_cast<BaseClassType*>(g_class);
80 CppClassParent::class_init_function(klass, class_data);
81
82
83 }
84
85
86 Glib::ObjectBase* VideoSink_Class::wrap_new(GObject* object)
87 {
88 return new VideoSink((GstVideoSink*)object);
89 }
90
91
92 /* The implementation: */
93
94 GstVideoSink* VideoSink::gobj_copy()
95 {
96 reference();
97 return gobj();
98 }
99
100 VideoSink::VideoSink(const Glib::ConstructParams& construct_params)
101 :
102 Gst::BaseSink(construct_params)
103 {
104
105 }
106
107 VideoSink::VideoSink(GstVideoSink* castitem)
108 :
109 Gst::BaseSink((GstBaseSink*)(castitem))
110 {}
111
112
113 VideoSink::VideoSink(VideoSink&& src) noexcept
114 : Gst::BaseSink(std::move(src))
115 {}
116
117 VideoSink& VideoSink::operator=(VideoSink&& src) noexcept
118 {
119 Gst::BaseSink::operator=(std::move(src));
120 return *this;
121 }
122
123
124 VideoSink::~VideoSink() noexcept
125 {}
126
127
128 VideoSink::CppClassType VideoSink::videosink_class_; // initialize static member
129
130 GType VideoSink::get_type()
131 {
132 return videosink_class_.init().get_type();
133 }
134
135
136 GType VideoSink::get_base_type()
137 {
138 return gst_video_sink_get_type();
139 }
140
141
142 int VideoSink::get_height() const
143 {
144 return gobj()->height;
145 }
146
147 int VideoSink::get_width() const
148 {
149 return gobj()->width;
150 }
151
152 void VideoSink::center_rect(const Gst::VideoRectangle& src, const Gst::VideoRectangle& dst, Gst::VideoRectangle& result, bool scaling)
153 {
154 gst_video_sink_center_rect(reinterpret_cast<const GstVideoRectangle&>(src), reinterpret_cast<const GstVideoRectangle&>(dst), reinterpret_cast<GstVideoRectangle*>(&result), static_cast<int>(scaling));
155 }
156
157
158 Glib::PropertyProxy< bool > VideoSink::property_show_preroll_frame()
159 {
160 return Glib::PropertyProxy< bool >(this, "show-preroll-frame");
161 }
162
163 Glib::PropertyProxy_ReadOnly< bool > VideoSink::property_show_preroll_frame() const
164 {
165 return Glib::PropertyProxy_ReadOnly< bool >(this, "show-preroll-frame");
166 }
167
168
169 } // namespace Gst
170
171