blob: 2a357d9fd0869d55d7caa6828acd6ab84ba18118 [file] [log] [blame]
Olivier Naudanb28313f2012-04-16 08:10:18 -04001/* GStreamer
2 * Copyright (C) 2007 Sebastian Dröge <slomo@circular-chaos.org>
3 *
4 * gstaudioparse.h:
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
Sebastian Drögee6513c12013-07-14 12:12:42 +020018 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
Olivier Naudanb28313f2012-04-16 08:10:18 -040020 */
21
22#ifndef __GST_AUDIO_PARSE_H__
23#define __GST_AUDIO_PARSE_H__
24
25#include <gst/gst.h>
26#include <gst/base/gstbasetransform.h>
27#include <gst/base/gstadapter.h>
28#include <gst/audio/audio.h>
29
30#include "gstrawparse.h"
31
32#define GST_TYPE_AUDIO_PARSE \
33 (gst_audio_parse_get_type())
34#define GST_AUDIO_PARSE(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_PARSE,GstAudioParse))
36#define GST_AUDIO_PARSE_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_PARSE,GstAudioParseClass))
38#define GST_IS_AUDIO_PARSE(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_PARSE))
40#define GST_IS_AUDIO_PARSE_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_PARSE))
42
43typedef struct _GstAudioParse GstAudioParse;
44typedef struct _GstAudioParseClass GstAudioParseClass;
45
46struct _GstAudioParse
47{
48 GstRawParse parent;
49
50 /* properties */
Sebastian Dröge6a5ec012012-10-25 14:10:09 +020051 gboolean use_sink_caps;
Olivier Naudanb28313f2012-04-16 08:10:18 -040052 gint format;
53 GstAudioFormat raw_format;
54 gint channels;
55 gboolean interleaved;
56 GValueArray *channel_positions;
57
58 GstAudioChannelPosition *channel_pos;
59 GstAudioChannelPosition *channel_order;
60};
61
62struct _GstAudioParseClass
63{
64 GstRawParseClass parent_class;
65};
66
67
68GType gst_audio_parse_get_type (void);
69
70#endif /* __GST_AUDIO_PARSE_H__ */