Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / ext / spc / gstspc.h
1 /* Copyright (C) 2004-2005 Michael Pyne <michael dot pyne at kdemail net>
2  * Copyright (C) 2004-2006 Chris Lee <clee at kde org>
3  * Copyright (C) 2007 Brian Koropoff <bkoropoff at 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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GST_SPC_DEC_H__
22 #define __GST_SPC_DEC_H__
23
24 #include <gst/gst.h>
25
26 #include <openspc.h>
27
28 #include "tag.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_SPC_DEC \
33   (gst_spc_dec_get_type())
34 #define GST_SPC_DEC(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPC_DEC,GstSpcDec))
36 #define GST_SPC_DEC_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPC_DEC,GstSpcDecClass))
38 #define GST_IS_SPC_DEC(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPC_DEC))
40 #define GST_IS_SPC_DEC_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPC_DEC))
42
43 typedef struct _GstSpcDec GstSpcDec;
44 typedef struct _GstSpcDecClass GstSpcDecClass;
45
46 struct _GstSpcDec
47 {
48   GstElement  element;
49
50   GstPad     *sinkpad;
51   GstPad     *srcpad;
52
53   GstBuffer  *buf;
54   gboolean    initialized;
55   gboolean    seeking;
56   guint32     seekpoint;
57   
58   spc_tag_info tag_info;
59   
60   guint32 byte_pos;
61 };
62
63 struct _GstSpcDecClass
64 {
65   GstElementClass parent_class;
66 };
67
68 GType gst_spc_dec_get_type(void);
69
70 G_END_DECLS
71
72 #endif /* __GST_SPC_DEC_H__ */