• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2002, Iain Holmes <iain@prettypeople.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 
21 #ifndef __GST_WAV_ENC_H__
22 #define __GST_WAV_ENC_H__
23 
24 
25 #include <gst/gst.h>
26 #include <gst/audio/audio.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GST_TYPE_WAVENC \
31   (gst_wavenc_get_type())
32 #define GST_WAVENC(obj) \
33   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WAVENC,GstWavEnc))
34 #define GST_WAVENC_CLASS(klass) \
35   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_WAVENC,GstWavEncClass))
36 #define GST_IS_WAVENC(obj) \
37   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_WAVENC))
38 #define GST_IS_WAVENC_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_WAVENC))
40 
41 typedef struct _GstWavEnc GstWavEnc;
42 typedef struct _GstWavEncClass GstWavEncClass;
43 
44 struct _GstWavEnc {
45   GstElement element;
46 
47   GstPad    *sinkpad;
48   GstPad    *srcpad;
49 
50   GstTagList *tags;
51   GstToc    *toc;
52   GList     *cues;
53   GList     *labls;
54   GList     *notes;
55 
56   /* useful audio data */
57   GstAudioFormat audio_format;
58   guint16    format;
59   guint      width;
60   guint      rate;
61   guint      channels;
62   guint64    channel_mask;
63   GstAudioChannelPosition srcPos[64];
64   GstAudioChannelPosition destPos[64];
65 
66   /* data sizes */
67   guint64    audio_length;
68   guint32    meta_length;
69 
70   gboolean   use_rf64;
71   gboolean   sent_header;
72   gboolean   finished_properly;
73 };
74 
75 struct _GstWavEncClass {
76   GstElementClass parent_class;
77 };
78 
79 GType gst_wavenc_get_type (void);
80 
81 GST_ELEMENT_REGISTER_DECLARE (wavenc);
82 
83 G_END_DECLS
84 
85 #endif /* __GST_WAV_ENC_H__ */
86