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.
5 * Contact: Stefan Kost <stefan.kost@nokia.com>
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.
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.
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.
23 #ifndef __GST_AMR_PARSE_H__
24 #define __GST_AMR_PARSE_H__
27 #include <gst/base/gstbaseparse.h>
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))
43 typedef struct _GstAmrParse GstAmrParse;
44 typedef struct _GstAmrParseClass GstAmrParseClass;
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.
58 * The opaque GstAacParse data structure.
62 const gint *block_size;
64 gboolean sent_codec_tag;
71 * @parent_class: Element parent class.
73 * The opaque GstAmrParseClass data structure.
75 struct _GstAmrParseClass {
76 GstBaseParseClass parent_class;
79 GType gst_amr_parse_get_type (void);
83 #endif /* __GST_AMR_PARSE_H__ */