4003203b6ec47a15368ac115998385deffae463b
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / gstv4l2colorbalance.h
1 /* G-Streamer generic V4L2 element - Color Balance interface implementation
2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * gstv4l2colorbalance.h: color balance interface implementation for V4L2
5  *
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.
10  *
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.
15  *
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., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GST_V4L2_COLOR_BALANCE_H__
23 #define __GST_V4L2_COLOR_BALANCE_H__
24
25 #include <gst/gst.h>
26 #include <gst/colorbalance/colorbalance.h>
27 #include "v4l2_calls.h"
28
29 G_BEGIN_DECLS
30
31 #define GST_TYPE_V4L2_COLOR_BALANCE_CHANNEL \
32   (gst_v4l2_color_balance_channel_get_type ())
33 #define GST_V4L2_COLOR_BALANCE_CHANNEL(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_V4L2_COLOR_BALANCE_CHANNEL, \
35                                GstV4l2ColorBalanceChannel))
36 #define GST_V4L2_COLOR_BALANCE_CHANNEL_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_V4L2_COLOR_BALANCE_CHANNEL, \
38                             GstV4l2ColorBalanceChannelClass))
39 #define GST_IS_V4L2_COLOR_BALANCE_CHANNEL(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L2_COLOR_BALANCE_CHANNEL))
41 #define GST_IS_V4L2_COLOR_BALANCE_CHANNEL_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_V4L2_COLOR_BALANCE_CHANNEL))
43
44 typedef struct _GstV4l2ColorBalanceChannel {
45   GstColorBalanceChannel parent;
46
47   guint32 index;
48 } GstV4l2ColorBalanceChannel;
49
50 typedef struct _GstV4l2ColorBalanceChannelClass {
51   GstColorBalanceChannelClass parent;
52 } GstV4l2ColorBalanceChannelClass;
53
54 GType   gst_v4l2_color_balance_channel_get_type (void);
55
56 void    gst_v4l2_color_balance_interface_init   (GstColorBalanceClass *klass);
57
58 #endif /* __GST_V4L2_COLOR_BALANCE_H__ */