Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / audioparsers / gstamrparse.h
1 /* GStreamer Adaptive Multi-Rate parser
2  * Copyright (C) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  * Copyright (C) 2008 Nokia Corporation. All rights reserved.
4  *
5  * Contact: Stefan Kost <stefan.kost@nokia.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef __GST_AMR_PARSE_H__
24 #define __GST_AMR_PARSE_H__
25
26 #include <gst/gst.h>
27 #include <gst/base/gstbaseparse.h>
28
29 G_BEGIN_DECLS
30
31 #define GST_TYPE_AMR_PARSE \
32   (gst_amr_parse_get_type())
33 #define GST_AMR_PARSE(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_AMR_PARSE, GstAmrParse))
35 #define GST_AMR_PARSE_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_AMR_PARSE, GstAmrParseClass))
37 #define GST_IS_AMR_PARSE(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_AMR_PARSE))
39 #define GST_IS_AMR_PARSE_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_AMR_PARSE))
41
42
43 typedef struct _GstAmrParse GstAmrParse;
44 typedef struct _GstAmrParseClass GstAmrParseClass;
45
46 /**
47  * GstAmrParse:
48  * @element: the parent element.
49  * @block_size: Pointer to frame size lookup table.
50  * @need_header: Tells whether the MIME header should be read in the beginning.
51  * @wide: Wideband mode.
52  * @eos: Indicates the EOS situation. Set when EOS event is received.
53  * @sync: Tells whether the parser is in sync.
54  * @framecount: Total amount of frames handled.
55  * @bytecount: Total amount of bytes handled.
56  * @ts: Timestamp of the current media.
57  *
58  * The opaque GstAacParse data structure.
59  */
60 struct _GstAmrParse {
61   GstBaseParse element;
62   const gint *block_size;
63   gboolean need_header;
64   gint header;
65   gboolean wide;
66 };
67
68 /**
69  * GstAmrParseClass:
70  * @parent_class: Element parent class.
71  *
72  * The opaque GstAmrParseClass data structure.
73  */
74 struct _GstAmrParseClass {
75   GstBaseParseClass parent_class;
76 };
77
78 GType gst_amr_parse_get_type (void);
79
80 G_END_DECLS
81
82 #endif /* __GST_AMR_PARSE_H__ */