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., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
23
#ifndef __GST_AMRPARSE_H__
24
#define __GST_AMRPARSE_H__
27
#include "gstbaseparse.h"
31
#define GST_TYPE_AMRPARSE \
32
(gst_amrparse_get_type())
33
#define GST_AMRPARSE(obj) \
34
(G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_AMRPARSE, GstAmrParse))
35
#define GST_AMRPARSE_CLASS(klass) \
36
(G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_AMRPARSE, GstAmrParseClass))
37
#define GST_IS_AMRPARSE(obj) \
38
(G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_AMRPARSE))
39
#define GST_IS_AMRPARSE_CLASS(klass) \
40
(G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_AMRPARSE))
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;
70
* @parent_class: Element parent class.
72
* The opaque GstAmrParseClass data structure.
74
struct _GstAmrParseClass {
75
GstBaseParseClass parent_class;
78
GType gst_amrparse_get_type (void);
82
#endif /* __GST_AMRPARSE_H__ */