Debian Codegraph @

gstreamer/gstreamermm/videochroma.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/videochroma.h>
7 #include <gstreamermm/private/videochroma_p.h>
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 2008-2015 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 <gstreamermm/videoformat.h>
30
31 namespace Gst
32 {
33
34 namespace Enums
35 {
36
37 Glib::ustring get_name(VideoChromaSite site)
38 {
39 return gst_video_chroma_to_string(static_cast<GstVideoChromaSite>(site));
40 }
41
42 VideoChromaSite video_chroma_site_from_string(const Glib::ustring& s)
43 {
44 return static_cast<VideoChromaSite>(gst_video_chroma_from_string(s.c_str()));
45 }
46
47 }
48
49 VideoChromaResample::VideoChromaResample(Gst::VideoChromaMethod method, Gst::VideoChromaSite site,
50 Gst::VideoChromaFlags flags, Gst::VideoFormat format, gint h_factor, gint v_factor)
51 {
52 gobject_ = gst_video_chroma_resample_new (static_cast<GstVideoChromaMethod>(method),
53 static_cast<GstVideoChromaSite>(site), static_cast<GstVideoChromaFlags>(flags),
54 static_cast<GstVideoFormat>(format), h_factor, v_factor);
55 }
56
57 VideoChromaResample::VideoChromaResample(GstVideoChromaResample* castitem)
58 {
59 gobject_ = castitem;
60 }
61
62 VideoChromaResample::~VideoChromaResample()
63 {
64 gst_video_chroma_resample_free(gobject_);
65 }
66 }
67
68 namespace
69 {
70 } // anonymous namespace
71
72 // static
73 GType Glib::Value<Gst::VideoChromaSite>::value_type()
74 {
75 return gst_video_chroma_site_get_type();
76 }
77
78 // static
79 GType Glib::Value<Gst::VideoChromaMethod>::value_type()
80 {
81 return gst_video_chroma_method_get_type();
82 }
83
84 // static
85 GType Glib::Value<Gst::VideoChromaFlags>::value_type()
86 {
87 return gst_video_chroma_flags_get_type();
88 }
89
90
91 namespace Gst
92 {
93
94
95 void VideoChromaResample::get_info(guint& n_lines, gint& offset) const
96 {
97 gst_video_chroma_resample_get_info(const_cast<GstVideoChromaResample*>(gobj()), &(n_lines), &(offset));
98 }
99
100
101 } // namespace Gst
102
103