| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | #ifndef _GSTREAMERMM_COLORBALANCE_H |
| 3 | #define _GSTREAMERMM_COLORBALANCE_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 <gst/video/colorbalance.h> |
| 29 | #include <glibmm/interface.h> |
| 30 | |
| 31 | |
| 32 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 33 | using GstColorBalance = struct _GstColorBalance; |
| 34 | using GstColorBalanceClass = struct _GstColorBalanceClass; |
| 35 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 36 | |
| 37 | |
| 38 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 39 | namespace Gst |
| 40 | { class ColorBalance_Class; } // namespace Gst |
| 41 | #endif // DOXYGEN_SHOULD_SKIP_THIS |
| 42 | |
| 43 | namespace Gst |
| 44 | { |
| 45 | |
| 46 | /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */ |
| 47 | |
| 48 | /** |
| 49 | * @var ColorBalanceType COLOR_BALANCE_HARDWARE |
| 50 | * Color balance is implemented with dedicated |
| 51 | * hardware. |
| 52 | * |
| 53 | * @var ColorBalanceType COLOR_BALANCE_SOFTWARE |
| 54 | * Color balance is implemented via software |
| 55 | * processing. |
| 56 | * |
| 57 | * @enum ColorBalanceType |
| 58 | * |
| 59 | * An enumeration indicating whether an element implements color balancing |
| 60 | * operations in software or in dedicated hardware. In general, dedicated |
| 61 | * hardware implementations (such as those provided by xvimagesink) are |
| 62 | * preferred. |
| 63 | * |
| 64 | * @ingroup gstreamermmEnums |
| 65 | */ |
| 66 | enum ColorBalanceType |
| 67 | { |
| 68 | COLOR_BALANCE_HARDWARE, |
| 69 | COLOR_BALANCE_SOFTWARE |
| 70 | }; |
| 71 | |
| 72 | |
| 73 | class ColorBalanceChannel; |
| 74 | |
| 75 | /** An interface for adjusting color balance settings. |
| 76 | * |
| 77 | * This interface is implemented by elements which can perform some color balance |
| 78 | * operation on video frames they process. For example, modifying the brightness, |
| 79 | * contrast, hue or saturation. |
| 80 | * |
| 81 | * Example elements are 'xvimagesink' and 'colorbalance'. |
| 82 | * |
| 83 | * Last reviewed on 2016-05-16 (1.8.0) |
| 84 | * |
| 85 | * @ingroup GstInterfaces |
| 86 | */ |
| 87 | |
| 88 | class ColorBalance : public Glib::Interface |
| 89 | { |
| 90 | |
| 91 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 92 | |
| 93 | public: |
| 94 | using CppObjectType = ColorBalance; |
| 95 | using CppClassType = ColorBalance_Class; |
| 96 | using BaseObjectType = GstColorBalance; |
| 97 | using BaseClassType = GstColorBalanceInterface; |
| 98 | |
| 99 | // noncopyable |
| 100 | ColorBalance(const ColorBalance&) = delete; |
| 101 | ColorBalance& operator=(const ColorBalance&) = delete; |
| 102 | |
| 103 | private: |
| 104 | friend class ColorBalance_Class; |
| 105 | static CppClassType colorbalance_class_; |
| 106 | |
| 107 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 108 | protected: |
| 109 | /** |
| 110 | * You should derive from this class to use it. |
| 111 | */ |
| 112 | ColorBalance(); |
| 113 | |
| 114 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 115 | /** Called by constructors of derived classes. Provide the result of |
| 116 | * the Class init() function to ensure that it is properly |
| 117 | * initialized. |
| 118 | * |
| 119 | * @param interface_class The Class object for the derived type. |
| 120 | */ |
| 121 | explicit ColorBalance(const Glib::Interface_Class& interface_class); |
| 122 | |
| 123 | public: |
| 124 | // This is public so that C++ wrapper instances can be |
| 125 | // created for C instances of unwrapped types. |
| 126 | // For instance, if an unexpected C type implements the C interface. |
| 127 | explicit ColorBalance(GstColorBalance* castitem); |
| 128 | |
| 129 | protected: |
| 130 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 131 | |
| 132 | public: |
| 133 | |
| 134 | ColorBalance(ColorBalance&& src) noexcept; |
| 135 | ColorBalance& operator=(ColorBalance&& src) noexcept; |
| 136 | |
| 137 | ~ColorBalance() noexcept override; |
| 138 | |
| 139 | static void add_interface(GType gtype_implementer); |
| 140 | |
| 141 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 142 | */ |
| 143 | static GType get_type() G_GNUC_CONST; |
| 144 | |
| 145 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 146 | static GType get_base_type() G_GNUC_CONST; |
| 147 | #endif |
| 148 | |
| 149 | ///Provides access to the underlying C GObject. |
| 150 | GstColorBalance* gobj() { return reinterpret_cast<GstColorBalance*>(gobject_); } |
| 151 | |
| 152 | ///Provides access to the underlying C GObject. |
| 153 | const GstColorBalance* gobj() const { return reinterpret_cast<GstColorBalance*>(gobject_); } |
| 154 | |
| 155 | private: |
| 156 | |
| 157 | |
| 158 | public: |
| 159 | |
| 160 | |
| 161 | /** Retrieve a list of the available channels. |
| 162 | * |
| 163 | * @return A |
| 164 | * GList containing pointers to Gst::ColorBalanceChannel |
| 165 | * objects. The list is owned by the Gst::ColorBalance |
| 166 | * instance and must not be freed. |
| 167 | */ |
| 168 | Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> > list_channels(); |
| 169 | |
| 170 | |
| 171 | /** Retrieve a list of the available channels. |
| 172 | * |
| 173 | * @return A |
| 174 | * GList containing pointers to Gst::ColorBalanceChannel |
| 175 | * objects. The list is owned by the Gst::ColorBalance |
| 176 | * instance and must not be freed. |
| 177 | */ |
| 178 | Glib::ListHandle< Glib::RefPtr<const Gst::ColorBalanceChannel> > list_channels() const; |
| 179 | |
| 180 | |
| 181 | /** Retrieve the current value of the indicated channel, between min_value |
| 182 | * and max_value. |
| 183 | * |
| 184 | * See Also: The Gst::ColorBalanceChannel.min_value and |
| 185 | * Gst::ColorBalanceChannel.max_value members of the |
| 186 | * Gst::ColorBalanceChannel object. |
| 187 | * |
| 188 | * @param channel A Gst::ColorBalanceChannel instance. |
| 189 | * @return The current value of the channel. |
| 190 | */ |
| 191 | int get_value(const Glib::RefPtr<const Gst::ColorBalanceChannel>& channel) const; |
| 192 | |
| 193 | /** Sets the current value of the channel to the passed value, which must |
| 194 | * be between min_value and max_value. |
| 195 | * |
| 196 | * See Also: The Gst::ColorBalanceChannel.min_value and |
| 197 | * Gst::ColorBalanceChannel.max_value members of the |
| 198 | * Gst::ColorBalanceChannel object. |
| 199 | * |
| 200 | * @param channel A Gst::ColorBalanceChannel instance. |
| 201 | * @param value The new value for the channel. |
| 202 | */ |
| 203 | void set_value(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value); |
| 204 | |
| 205 | /** A helper function called by implementations of the GstColorBalance |
| 206 | * interface. It fires the Gst::ColorBalance::signal_value_changed() signal on the |
| 207 | * instance, and the Gst::ColorBalanceChannel::signal_value_changed() signal on the |
| 208 | * channel object. |
| 209 | * |
| 210 | * @param channel A Gst::ColorBalanceChannel whose value has changed. |
| 211 | * @param value The new value of the channel. |
| 212 | */ |
| 213 | void value_changed(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value); |
| 214 | |
| 215 | /** Get the Gst::ColorBalanceType of this implementation. |
| 216 | * |
| 217 | * @return A the Gst::ColorBalanceType. |
| 218 | */ |
| 219 | Gst::ColorBalanceType get_balance_type() const; |
| 220 | |
| 221 | |
| 222 | /** |
| 223 | * @par Slot Prototype: |
| 224 | * <tt>void on_my_%value_changed(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value)</tt> |
| 225 | * |
| 226 | * Fired when the value of the indicated channel has changed. |
| 227 | * |
| 228 | * @param channel The Gst::ColorBalanceChannel. |
| 229 | * @param value The new value. |
| 230 | */ |
| 231 | |
| 232 | Glib::SignalProxy< void,const Glib::RefPtr<Gst::ColorBalanceChannel>&,int > signal_value_changed(); |
| 233 | |
| 234 | |
| 235 | /** Lists the channels of the Gst::ColorBalance. |
| 236 | */ |
| 237 | virtual Glib::ListHandle< Glib::RefPtr<Gst::ColorBalanceChannel> > list_channels_vfunc() const; |
| 238 | |
| 239 | /** Sets the value of a Gst::ColorBalanceChannel of the Gst::ColorBalance. |
| 240 | */ |
| 241 | virtual void set_value_vfunc(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value); |
| 242 | |
| 243 | |
| 244 | /** Gets the value of a Gst::ColorBalanceChannel of the Gst::ColorBalance. |
| 245 | */ |
| 246 | virtual int get_value_vfunc(const Glib::RefPtr<const Gst::ColorBalanceChannel>& channel) const; |
| 247 | |
| 248 | |
| 249 | /** Gets the implementation type. |
| 250 | */ |
| 251 | virtual Gst::ColorBalanceType get_balance_type_vfunc(); |
| 252 | |
| 253 | |
| 254 | protected: |
| 255 | |
| 256 | |
| 257 | public: |
| 258 | |
| 259 | public: |
| 260 | //C++ methods used to invoke GTK+ virtual functions: |
| 261 | |
| 262 | protected: |
| 263 | //GTK+ Virtual Functions (override these to change behaviour): |
| 264 | |
| 265 | //Default Signal Handlers:: |
| 266 | /// This is a default handler for the signal signal_value_changed(). |
| 267 | virtual void on_value_changed(const Glib::RefPtr<Gst::ColorBalanceChannel>& channel, int value); |
| 268 | |
| 269 | |
| 270 | }; |
| 271 | |
| 272 | } // namespace Gst |
| 273 | |
| 274 | |
| 275 | namespace Glib |
| 276 | { |
| 277 | /** A Glib::wrap() method for this object. |
| 278 | * |
| 279 | * @param object The C instance. |
| 280 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 281 | * @result A C++ instance that wraps this C instance. |
| 282 | * |
| 283 | * @relates Gst::ColorBalance |
| 284 | */ |
| 285 | Glib::RefPtr<Gst::ColorBalance> wrap(GstColorBalance* object, bool take_copy = false); |
| 286 | |
| 287 | } // namespace Glib |
| 288 | |
| 289 | |
| 290 | #endif /* _GSTREAMERMM_COLORBALANCE_H */ |
| 291 |