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., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, 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  *
53  * The opaque GstAacParse data structure.
54  */
55 struct _GstAmrParse {
56   GstBaseParse element;
57   const gint *block_size;
58   gboolean need_header;
59   gboolean sent_codec_tag;
60   gint header;
61   gboolean wide;
62 };
63 
64 /**
65  * GstAmrParseClass:
66  * @parent_class: Element parent class.
67  *
68  * The opaque GstAmrParseClass data structure.
69  */
70 struct _GstAmrParseClass {
71   GstBaseParseClass parent_class;
72 };
73 
74 GType gst_amr_parse_get_type (void);
75 
76 G_END_DECLS
77 
78 #endif /* __GST_AMR_PARSE_H__ */
79