• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <2006> Eric Jonas <jonas@mit.edu>
3  * Copyright (C) <2006> Antoine Tremblay <hexa00@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef __GST_DC1394_H__
22 #define __GST_DC1394_H__
23 
24 #include <gst/gst.h>
25 #include <gst/base/gstpushsrc.h>
26 #include <dc1394/control.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GST_TYPE_DC1394_SRC            (gst_dc1394_src_get_type())
31 #define GST_DC1394_SRC(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DC1394_SRC,GstDC1394Src))
32 #define GST_DC1394_SRC_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DC1394_SRC,GstDC1394SrcClass))
33 #define GST_IS_DC1394_SRC(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DC1394_SRC))
34 #define GST_IS_DC1394_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DC1394_SRC))
35 
36 typedef struct _GstDC1394Src GstDC1394Src;
37 typedef struct _GstDC1394SrcClass GstDC1394SrcClass;
38 
39 struct _GstDC1394Src {
40   GstPushSrc pushsrc;
41 
42   GstCaps * caps;
43 
44   uint64_t guid;
45   int unit;
46   dc1394speed_t iso_speed;
47   uint32_t dma_buffer_size;
48   dc1394camera_t * camera;
49   dc1394_t * dc1394;
50 };
51 
52 struct _GstDC1394SrcClass {
53   GstPushSrcClass parent_class;
54 };
55 
56 GType gst_dc1394_src_get_type (void);
57 
58 GST_ELEMENT_REGISTER_DECLARE (dc1394src);
59 
60 G_END_DECLS
61 
62 #endif /* __GST_DC1394_H__ */
63