Olivier Naudan | b28313f | 2012-04-16 08:10:18 -0400 | [diff] [blame] | 1 | /* 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öge | e6513c1 | 2013-07-14 12:12:42 +0200 | [diff] [blame] | 18 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 19 | * Boston, MA 02110-1301, USA. |
Olivier Naudan | b28313f | 2012-04-16 08:10:18 -0400 | [diff] [blame] | 20 | */ |
| 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 | |
| 43 | typedef struct _GstAudioParse GstAudioParse; |
| 44 | typedef struct _GstAudioParseClass GstAudioParseClass; |
| 45 | |
| 46 | struct _GstAudioParse |
| 47 | { |
| 48 | GstRawParse parent; |
| 49 | |
| 50 | /* properties */ |
Sebastian Dröge | 6a5ec01 | 2012-10-25 14:10:09 +0200 | [diff] [blame] | 51 | gboolean use_sink_caps; |
Olivier Naudan | b28313f | 2012-04-16 08:10:18 -0400 | [diff] [blame] | 52 | 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 | |
| 62 | struct _GstAudioParseClass |
| 63 | { |
| 64 | GstRawParseClass parent_class; |
| 65 | }; |
| 66 | |
| 67 | |
| 68 | GType gst_audio_parse_get_type (void); |
| 69 | |
| 70 | #endif /* __GST_AUDIO_PARSE_H__ */ |