~ubuntu-branches/ubuntu/quantal/gst-plugins-bad-multiverse0.10/quantal

« back to all changes in this revision

Viewing changes to gst/audioparsers/gstamrparse.h

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-03-13 22:48:10 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100313224810-8l25xl017imj7z4l
Tags: 0.10.18-0ubuntu1
* New upstream bugfix release.
* Relevant upstream fixes
  - 598350 : qtmux with AAC streams (from faac) generate invalid files
  - 607105 : faac doesn't negotiate channel positions correctly
  - 606726 : FAAC bitrate setting has no effect

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_AMRPARSE_H__
 
24
#define __GST_AMRPARSE_H__
 
25
 
 
26
#include <gst/gst.h>
 
27
#include "gstbaseparse.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
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))
 
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_amrparse_get_type (void);
 
79
 
 
80
G_END_DECLS
 
81
 
 
82
#endif /* __GST_AMRPARSE_H__ */