Debian Codegraph @

gstreamer/gstreamermm/audiofilter.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_AUDIOFILTER_H
3 #define _GSTREAMERMM_AUDIOFILTER_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008-2016 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gstreamermm/basetransform.h>
29 #include <gstreamermm/audioinfo.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstAudioFilter = struct _GstAudioFilter;
34 using GstAudioFilterClass = struct _GstAudioFilterClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gst
40 { class AudioFilter_Class; } // namespace Gst
41 #endif //DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gst
44 {
45
46 /** A base class for simple audio filters.
47 * Gst::AudioFilter is a Gst::BaseTransform-derived base class for simple
48 * audio filters, ie. those that output the same format that they get as input.
49 *
50 * Gst::AudioFilter will parse the input format for you (with error
51 * checking) before calling your setup function. Also, elements deriving from
52 * Gst::AudioFilter may use gst_audio_filter_class_add_pad_templates() from
53 * their base_init function to easily configure the set of caps/formats that
54 * the element is able to handle.
55 *
56 * Derived classes should override the Gst::AudioFilter::setup_vfunc() and
57 * Gst::BaseTransform::transform_ip_vfunc() and/or
58 * Gst::BaseTransform::transform_vfunc() virtual functions.
59 *
60 * Last reviewed on 2016-04-23 (1.8.0).
61 *
62 * @ingroup GstBaseClasses
63 */
64
65 class AudioFilter : public Gst::BaseTransform
66 {
67
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69
70 public:
71 using CppObjectType = AudioFilter;
72 using CppClassType = AudioFilter_Class;
73 using BaseObjectType = GstAudioFilter;
74 using BaseClassType = GstAudioFilterClass;
75
76 // noncopyable
77 AudioFilter(const AudioFilter&) = delete;
78 AudioFilter& operator=(const AudioFilter&) = delete;
79
80 private: friend class AudioFilter_Class;
81 static CppClassType audiofilter_class_;
82
83 protected:
84 explicit AudioFilter(const Glib::ConstructParams& construct_params);
85 explicit AudioFilter(GstAudioFilter* castitem);
86
87 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
88
89 public:
90
91 AudioFilter(AudioFilter&& src) noexcept;
92 AudioFilter& operator=(AudioFilter&& src) noexcept;
93
94 ~AudioFilter() noexcept override;
95
96 /** Get the GType for this class, for use with the underlying GObject type system.
97 */
98 static GType get_type() G_GNUC_CONST;
99
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101
102
103 static GType get_base_type() G_GNUC_CONST;
104 #endif
105
106 ///Provides access to the underlying C GObject.
107 GstAudioFilter* gobj() { return reinterpret_cast<GstAudioFilter*>(gobject_); }
108
109 ///Provides access to the underlying C GObject.
110 const GstAudioFilter* gobj() const { return reinterpret_cast<GstAudioFilter*>(gobject_); }
111
112 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
113 GstAudioFilter* gobj_copy();
114
115 private:
116
117
118 public:
119 /** Virtual function, called whenever the format changes.
120 */
121 virtual bool setup_vfunc(const Gst::AudioInfo& info);
122
123
124 public:
125
126 public:
127 //C++ methods used to invoke GTK+ virtual functions:
128
129 protected:
130 //GTK+ Virtual Functions (override these to change behaviour):
131
132 //Default Signal Handlers::
133
134
135 };
136
137 } // namespace Gst
138
139
140 namespace Glib
141 {
142 /** A Glib::wrap() method for this object.
143 *
144 * @param object The C instance.
145 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
146 * @result A C++ instance that wraps this C instance.
147 *
148 * @relates Gst::AudioFilter
149 */
150 Glib::RefPtr<Gst::AudioFilter> wrap(GstAudioFilter* object, bool take_copy = false);
151 }
152
153
154 #endif /* _GSTREAMERMM_AUDIOFILTER_H */
155