Debian Codegraph @

gstreamer/src/colorbalance.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008-2016 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <gst/video/colorbalance.h>
21 #include <glibmm/interface.h>
22
23 _DEFS(gstreamermm,gst)
24
25 namespace Gst
26 {
27
28 _WRAP_ENUM(ColorBalanceType, GstColorBalanceType, NO_GTYPE)
29
30 class ColorBalanceChannel;
31
32 /** An interface for adjusting color balance settings.
33 *
34 * This interface is implemented by elements which can perform some color balance
35 * operation on video frames they process. For example, modifying the brightness,
36 * contrast, hue or saturation.
37 *
38 * Example elements are 'xvimagesink' and 'colorbalance'.
39 *
40 * Last reviewed on 2016-05-16 (1.8.0)
41 *
42 * @ingroup GstInterfaces
43 */
44 class ColorBalance : public Glib::Interface
45 {
46 _CLASS_INTERFACE(ColorBalance, GstColorBalance, GST_COLOR_BALANCE, GstColorBalanceInterface)
47
48 public:
49 #m4 _CONVERSION(`const GList*', `Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> >', `$2(const_cast<GList*>($3), Glib::OWNERSHIP_NONE)')
50 _WRAP_METHOD(Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> > list_channels(), gst_color_balance_list_channels)
51
52 #m4 _CONVERSION(`const GList*', `Glib::ListHandle< Glib::RefPtr<const Gst::ColorBalanceChannel> >', `$2(const_cast<GList*>($3), Glib::OWNERSHIP_NONE)')
53 _WRAP_METHOD(Glib::ListHandle< Glib::RefPtr<const Gst::ColorBalanceChannel> > list_channels() const, gst_color_balance_list_channels)
54
55 _WRAP_METHOD(int get_value(const Glib::RefPtr<const Gst::ColorBalanceChannel>& channel) const, gst_color_balance_get_value)
56 _WRAP_METHOD(void set_value(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value), gst_color_balance_set_value)
57 _WRAP_METHOD(void value_changed(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value), gst_color_balance_value_changed)
58 _WRAP_METHOD(Gst::ColorBalanceType get_balance_type() const, gst_color_balance_get_balance_type)
59
60 #m4 _CONVERSION(`GstColorBalanceChannel*', `const Glib::RefPtr<Gst::ColorBalanceChannel>&', `Glib::wrap($3, true)')
61 _WRAP_SIGNAL(void value_changed(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value), "value-changed")
62
63 #m4 _CONVERSION(`Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> >', `const GList*', `($3).data()')
64
65 /** Lists the channels of the Gst::ColorBalance.
66 */
67 virtual Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> > list_channels_vfunc() const;
68
69 /** Sets the value of a Gst::ColorBalanceChannel of the Gst::ColorBalance.
70 */
71 _WRAP_VFUNC(void set_value(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value), "set_value")
72
73 #m4 _CONVERSION(`GstColorBalanceChannel*', `const Glib::RefPtr<const Gst::ColorBalanceChannel>&', `Glib::wrap($3, true)')
74 /** Gets the value of a Gst::ColorBalanceChannel of the Gst::ColorBalance.
75 */
76 _WRAP_VFUNC(int get_value(const Glib::RefPtr<const Gst::ColorBalanceChannel>& channel) const, "get_value")
77
78 /** Gets the implementation type.
79 */
80 _WRAP_VFUNC(Gst::ColorBalanceType get_balance_type(), "get_balance_type")
81
82 protected:
83 #m4begin
84 _PUSH(SECTION_PCC_CLASS_INIT_VFUNCS)
85 klass->list_channels = &list_channels_vfunc_callback;
86 _SECTION(SECTION_PH_VFUNCS)
87 static const GList* list_channels_vfunc_callback(GstColorBalance* self);
88 _POP()
89 #m4end
90 };
91
92 } // namespace Gst