• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) <2008> Sebastian Dröge <sebastian.droege@collabora.co.uk>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 
22 #ifndef __GST_TWO_LAME_H__
23 #define __GST_TWO_LAME_H__
24 
25 
26 #include <gst/gst.h>
27 #include <gst/audio/gstaudioencoder.h>
28 
29 G_BEGIN_DECLS
30 
31 #include <twolame.h>
32 
33 #define GST_TYPE_TWO_LAME (gst_two_lame_get_type())
34 G_DECLARE_FINAL_TYPE (GstTwoLame, gst_two_lame, GST, TWO_LAME, GstAudioEncoder)
35 
36 /**
37  * GstTwoLame:
38  *
39  * Opaque data structure.
40  */
41 struct _GstTwoLame {
42   GstAudioEncoder element;
43 
44   gint samplerate;
45   gint num_channels;
46   gboolean float_input;
47   gboolean setup;
48 
49   gint mode;
50   gint psymodel;
51   gint bitrate;
52   gint padding;
53   gboolean energy_level_extension;
54   gint emphasis;
55   gboolean error_protection;
56   gboolean copyright;
57   gboolean original;
58   gboolean vbr;
59   gfloat vbr_level;
60   gfloat ath_level;
61   gint vbr_max_bitrate;
62   gboolean quick_mode;
63   gint quick_mode_count;
64 
65   twolame_options *glopts;
66 };
67 
68 GST_ELEMENT_REGISTER_DECLARE (twolamemp2enc);
69 
70 G_END_DECLS
71 
72 
73 #endif /* __GST_TWO_LAME_H__ */
74