Debian Codegraph @

ext/raw1394/gst1394clock.h

raw
1 /* GStreamer
2 * Copyright (C) 1999,2000 Erik Walthinsen <[email protected]>
3 * 2005 Wim Taymans <[email protected]>
4 * Copyright (C) 2009 David Schleef <[email protected]>
5 *
6 * gst1394clock.h: Clock for use by the IEEE 1394
7 *
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.
12 *
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.
17 *
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., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 */
23
24 #ifndef __GST_1394_CLOCK_H__
25 #define __GST_1394_CLOCK_H__
26
27 #include <gst/gst.h>
28 #include <gst/gstsystemclock.h>
29
30 #include <libraw1394/raw1394.h>
31
32 G_BEGIN_DECLS
33
34 #define GST_TYPE_1394_CLOCK (gst_1394_clock_get_type())
35 G_DECLARE_FINAL_TYPE (Gst1394Clock, gst_1394_clock, GST, 1394_CLOCK,
36 GstSystemClock)
37 #define GST_1394_CLOCK_CAST(obj) ((Gst1394Clock*)(obj))
38
39 /**
40 * Gst1394Clock:
41 * @clock: parent #GstSystemClock
42 *
43 * Opaque #Gst1394Clock.
44 */
45 struct _Gst1394Clock {
46 GstSystemClock clock;
47
48 raw1394handle_t handle;
49
50 guint32 cycle_timer_lo;
51 guint32 cycle_timer_hi;
52 };
53
54 Gst1394Clock* gst_1394_clock_new (const gchar *name);
55 void gst_1394_clock_set_handle (Gst1394Clock *clock,
56 raw1394handle_t handle);
57 void gst_1394_clock_unset_handle (Gst1394Clock *clock);
58
59 G_END_DECLS
60
61 #endif /* __GST_1394_CLOCK_H__ */