3 * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * 2006 Edgard Lima <edgard.lima@indt.org.br>
6 * gstv4l2src.h: BT8x8/V4L2 source element
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #ifndef __GST_V4L2SRC_H__
25 #define __GST_V4L2SRC_H__
27 #include <gstv4l2object.h>
28 #include <gstv4l2bufferpool.h>
30 GST_DEBUG_CATEGORY_EXTERN (v4l2src_debug);
34 #define GST_TYPE_V4L2SRC \
35 (gst_v4l2src_get_type())
36 #define GST_V4L2SRC(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_V4L2SRC,GstV4l2Src))
38 #define GST_V4L2SRC_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_V4L2SRC,GstV4l2SrcClass))
40 #define GST_IS_V4L2SRC(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_V4L2SRC))
42 #define GST_IS_V4L2SRC_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_V4L2SRC))
45 typedef struct _GstV4l2Src GstV4l2Src;
46 typedef struct _GstV4l2SrcClass GstV4l2SrcClass;
58 GstV4l2Object * v4l2object;
67 GstClockTime ctrl_time;
70 struct _GstV4l2SrcClass
72 GstPushSrcClass parent_class;
74 GList *v4l2_class_devices;
77 GType gst_v4l2src_get_type (void);
81 #endif /* __GST_V4L2SRC_H__ */