2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2000 Wim Taymans <wtay@chello.be>
4 * 2005 Wim Taymans <wim@fluendo.com>
5 * Copyright (C) 2020 Jan Schmidt <jan@centricular.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
25 #ifndef __GST_CLOCKSYNC_H__
26 #define __GST_CLOCKSYNC_H__
32 /* #defines don't like whitespacey bits */
33 #define GST_TYPE_CLOCKSYNC \
34 (gst_clock_sync_get_type())
35 #define GST_CLOCKSYNC(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CLOCKSYNC,GstClockSync))
37 #define GST_CLOCKSYNC_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CLOCKSYNC,GstClockSyncClass))
39 #define GST_IS_CLOCKSYNC(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CLOCKSYNC))
41 #define GST_IS_CLOCKSYNC_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CLOCKSYNC))
44 typedef struct _GstClockSync GstClockSync;
45 typedef struct _GstClockSyncClass GstClockSyncClass;
52 GstPad *sinkpad, *srcpad;
61 GstClockTimeDiff ts_offset;
62 gboolean sync_to_first;
65 GstClockTime upstream_latency;
68 struct _GstClockSyncClass
70 GstElementClass parent_class;
73 GType gst_clock_sync_get_type (void);
77 #endif /* __GST_CLOCKSYNC_H__ */