1 /* GStreamer Color Balance
2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * colorbalancechannel.h: individual channel object
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef __GST_COLOR_BALANCE_CHANNEL_H__
23 #define __GST_COLOR_BALANCE_CHANNEL_H__
26 #include <gst/video/video-prelude.h>
30 #define GST_TYPE_COLOR_BALANCE_CHANNEL \
31 (gst_color_balance_channel_get_type ())
32 #define GST_COLOR_BALANCE_CHANNEL(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL, \
34 GstColorBalanceChannel))
35 #define GST_COLOR_BALANCE_CHANNEL_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL, \
37 GstColorBalanceChannelClass))
38 #define GST_IS_COLOR_BALANCE_CHANNEL(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL))
40 #define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
43 typedef struct _GstColorBalanceChannel GstColorBalanceChannel;
44 typedef struct _GstColorBalanceChannelClass GstColorBalanceChannelClass;
47 * GstColorBalanceChannel:
48 * @label: A string containing a descriptive name for this channel
49 * @min_value: The minimum valid value for this channel.
50 * @max_value: The maximum valid value for this channel.
52 struct _GstColorBalanceChannel {
61 gpointer _gst_reserved[GST_PADDING];
65 * GstColorBalanceChannelClass:
66 * @parent: the parent class
67 * @value_changed: default handler for value changed notification
69 * Color-balance channel class.
71 struct _GstColorBalanceChannelClass {
75 void (* value_changed) (GstColorBalanceChannel *channel,
79 gpointer _gst_reserved[GST_PADDING];
83 GType gst_color_balance_channel_get_type (void);
85 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
86 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstColorBalanceChannel, gst_object_unref)
91 #endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */