Tizen 2.1 base
[profile/ivi/gst-plugins-bad0.10.git] / gst / freeze / gstfreeze.h
1 /* gst-freeze -- Source freezer
2  * Copyright (C) 2005 Gergely Nagy <gergely.nagy@neteyes.hu>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public License
6  * version 2.1, as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
16  */
17
18 #ifndef __GST_FREEZE_H__
19 #define __GST_FREEZE_H__ 1
20
21 #include <gst/gst.h>
22
23 G_BEGIN_DECLS
24 #define GST_TYPE_FREEZE (gst_freeze_get_type ())
25 #define GST_FREEZE(obj)                                                 \
26   (G_TYPE_CHECK_INSTANCE_CAST (obj, GST_TYPE_FREEZE, GstFreeze))
27 #define GST_FREEZE_CLASS(klass)                                 \
28   (G_TYPE_CHECK_CLASS_CAST (klass, GST_TYPE_FREEZE, GstFreezeClass))
29 #define GST_IS_FREEZE(obj)                              \
30   (G_TYPE_CHECK_INSTANCE_TYPE (obj, GST_TYPE_FREEZE))
31 #define GST_IS_FREEZE_CLASS(klass)                      \
32   (G_TYPE_CHECK_CLASS_TYPE (klass, GST_TYPE_FREEZE))
33 typedef struct _GstFreeze GstFreeze;
34 typedef struct _GstFreezeClass GstFreezeClass;
35
36 struct _GstFreeze
37 {
38   GstElement element;
39
40   GstPad *sinkpad, *srcpad;
41
42   GQueue *buffers;
43   GstBuffer *current;
44   
45   guint max_buffers;
46
47   gint64 timestamp_offset;
48   gint64 offset;
49   GstClockTime running_time;
50   gboolean on_flush;
51 };
52
53 struct _GstFreezeClass
54 {
55   GstElementClass parent_class;
56 };
57
58 GType gst_freeze_get_type (void);
59
60 G_END_DECLS
61 #endif
62 /*
63  * Local variables:
64  * mode: c
65  * file-style: k&r
66  * c-basic-offset: 2
67  * arch-tag: 559a2214-86a1-4c2f-b497-bdcc5f82acf1
68  * End:
69  */