Debian Codegraph @

ext/raw1394/gstdv1394src.h

raw
1 /* GStreamer
2 * Copyright (C) <1999> Erik Walthinsen <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20
21 #ifndef __GST_GST1394_H__
22 #define __GST_GST1394_H__
23
24
25 #include <gst/gst.h>
26 #include <gst/base/gstpushsrc.h>
27 #include "gst1394clock.h"
28
29 #include <libraw1394/raw1394.h>
30 #ifdef HAVE_LIBIEC61883
31 #include <libiec61883/iec61883.h>
32 #endif
33
34 G_BEGIN_DECLS
35
36 #define GST_TYPE_DV1394SRC (gst_dv1394src_get_type())
37 G_DECLARE_FINAL_TYPE (GstDV1394Src, gst_dv1394src, GST, DV1394SRC, GstPushSrc)
38
39 struct _GstDV1394Src {
40 GstPushSrc element;
41
42 // consecutive=2, skip=4 will skip 4 frames, then let 2 consecutive ones through
43 gint consecutive;
44 gint skip;
45 gboolean drop_incomplete;
46
47 gint num_ports;
48 gint port;
49 gint channel;
50 octlet_t guid;
51 gint avc_node;
52 gboolean use_avc;
53
54 struct raw1394_portinfo pinfo[16];
55 raw1394handle_t handle;
56
57 GstBuffer *buf;
58
59 GstBuffer *frame;
60 guint frame_size;
61 guint frame_rate;
62 guint bytes_in_frame;
63 guint frame_sequence;
64
65 int control_sock[2];
66
67 gchar *uri;
68
69 gchar *device_name;
70
71 gboolean connected;
72 #ifdef HAVE_LIBIEC61883
73 iec61883_dv_fb_t iec61883dv;
74 #endif
75
76 Gst1394Clock *provided_clock;
77 };
78
79 GST_ELEMENT_REGISTER_DECLARE (dv1394src);
80
81 G_END_DECLS
82
83 #endif /* __GST_GST1394_H__ */