Remove lame plugin, moved to -good
[platform/upstream/gstreamer.git] / ext / twolame / gsttwolamemp2enc.h
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 \
34   (gst_two_lame_get_type())
35 #define GST_TWO_LAME(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TWO_LAME,GstTwoLame))
37 #define GST_TWO_LAME_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TWO_LAME,GstTwoLameClass))
39 #define GST_IS_TWO_LAME(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TWO_LAME))
41 #define GST_IS_TWO_LAME_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TWO_LAME))
43
44 typedef struct _GstTwoLame GstTwoLame;
45 typedef struct _GstTwoLameClass GstTwoLameClass;
46
47 /**
48  * GstTwoLame:
49  *
50  * Opaque data structure.
51  */
52 struct _GstTwoLame {
53   GstAudioEncoder element;
54
55   gint samplerate;
56   gint num_channels;
57   gboolean float_input;
58   gboolean setup;
59
60   gint mode;
61   gint psymodel;
62   gint bitrate;
63   gint padding;
64   gboolean energy_level_extension;
65   gint emphasis;
66   gboolean error_protection;
67   gboolean copyright;
68   gboolean original;
69   gboolean vbr;
70   gfloat vbr_level;
71   gfloat ath_level;
72   gint vbr_max_bitrate;
73   gboolean quick_mode;
74   gint quick_mode_count;
75
76   twolame_options *glopts;
77 };
78
79 struct _GstTwoLameClass {
80   GstAudioEncoderClass parent_class;
81 };
82
83 GType gst_two_lame_get_type(void);
84
85 G_END_DECLS
86
87
88 #endif /* __GST_TWO_LAME_H__ */