Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / sys / v4l / gstv4ltuner.h
1 /* GStreamer
2  *
3  * gstv4ltuner.h: tuner interface implementation for V4L
4  *
5  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef __GST_V4L_TUNER_H__
24 #define __GST_V4L_TUNER_H__
25
26 #include <gst/gst.h>
27 #include <gst/interfaces/tuner.h>
28
29 G_BEGIN_DECLS
30
31 #define GST_TYPE_V4L_TUNER_CHANNEL \
32   (gst_v4l_tuner_channel_get_type ())
33 #define GST_V4L_TUNER_CHANNEL(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_V4L_TUNER_CHANNEL, \
35                                GstV4lTunerChannel))
36 #define GST_V4L_TUNER_CHANNEL_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_V4L_TUNER_CHANNEL, \
38                             GstV4lTunerChannelClass))
39 #define GST_IS_V4L_TUNER_CHANNEL(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L_TUNER_CHANNEL))
41 #define GST_IS_V4L_TUNER_CHANNEL_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_V4L_TUNER_CHANNEL))
43
44 typedef struct _GstV4lTunerChannel {
45   GstTunerChannel parent;
46
47   gint            index;
48   gint            tuner;
49   gint            audio;
50 } GstV4lTunerChannel;
51
52 typedef struct _GstV4lTunerChannelClass {
53   GstTunerChannelClass parent;
54 } GstV4lTunerChannelClass;
55
56 #define GST_TYPE_V4L_TUNER_NORM \
57   (gst_v4l_tuner_norm_get_type ())
58 #define GST_V4L_TUNER_NORM(obj) \
59   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_V4L_TUNER_NORM, \
60                                GstV4lTunerNorm))
61 #define GST_V4L_TUNER_NORM_CLASS(klass) \
62   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_V4L_TUNER_NORM, \
63                             GstV4lTunerNormClass))
64 #define GST_IS_V4L_TUNER_NORM(obj) \
65   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L_TUNER_NORM))
66 #define GST_IS_V4L_TUNER_NORM_CLASS(klass) \
67   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_V4L_TUNER_NORM))
68
69 typedef struct _GstV4lTunerNorm {
70   GstTunerNorm parent;
71
72   gint         index;
73 } GstV4lTunerNorm;
74
75 typedef struct _GstV4lTunerNormClass {
76   GstTunerNormClass parent;
77 } GstV4lTunerNormClass;
78
79 GType   gst_v4l_tuner_channel_get_type  (void);
80 GType   gst_v4l_tuner_norm_get_type     (void);
81
82 void    gst_v4l_tuner_interface_init    (GstTunerClass *klass);
83
84 #endif /* __GST_V4L_TUNER_H__ */