2002-12-16 19:49:42 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-12-16 19:49:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
#ifndef __GST_SPEEX_DEC_H__
|
|
|
|
#define __GST_SPEEX_DEC_H__
|
2002-12-16 19:49:42 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2011-09-29 15:21:22 +00:00
|
|
|
#include <gst/audio/gstaudiodecoder.h>
|
|
|
|
|
2004-10-04 14:54:49 +00:00
|
|
|
#include <speex/speex.h>
|
|
|
|
#include <speex/speex_callbacks.h>
|
|
|
|
#include <speex/speex_header.h>
|
|
|
|
#include <speex/speex_stereo.h>
|
2002-12-16 19:49:42 +00:00
|
|
|
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
G_BEGIN_DECLS
|
2002-12-16 19:49:42 +00:00
|
|
|
|
2020-03-15 18:18:39 +00:00
|
|
|
#define GST_TYPE_SPEEX_DEC (gst_speex_dec_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (GstSpeexDec, gst_speex_dec, GST, SPEEX_DEC,
|
|
|
|
GstAudioDecoder)
|
2002-12-16 19:49:42 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstSpeexDec {
|
2011-09-29 15:21:22 +00:00
|
|
|
GstAudioDecoder element;
|
2004-12-23 14:45:25 +00:00
|
|
|
|
2005-12-06 19:44:58 +00:00
|
|
|
void *state;
|
2010-03-15 13:16:58 +00:00
|
|
|
SpeexStereoState *stereo;
|
2005-12-06 19:44:58 +00:00
|
|
|
const SpeexMode *mode;
|
|
|
|
SpeexHeader *header;
|
|
|
|
SpeexCallback callback;
|
|
|
|
SpeexBits bits;
|
2004-12-23 14:45:25 +00:00
|
|
|
|
2005-12-06 19:44:58 +00:00
|
|
|
gboolean enh;
|
2004-12-23 14:45:25 +00:00
|
|
|
|
2005-12-06 19:44:58 +00:00
|
|
|
gint frame_size;
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
GstClockTime frame_duration;
|
2005-12-06 19:44:58 +00:00
|
|
|
guint64 packetno;
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
|
2011-03-23 15:34:16 +00:00
|
|
|
GstBuffer *streamheader;
|
|
|
|
GstBuffer *vorbiscomment;
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2002-12-16 19:49:42 +00:00
|
|
|
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
G_END_DECLS
|
2002-12-16 19:49:42 +00:00
|
|
|
|
ext/speex/: Fix seeking and duration queries (#337033); clean up and refactor a bit.
Original commit message from CVS:
* ext/speex/gstspeex.c: (plugin_init):
* ext/speex/gstspeexdec.c: (gst_speex_dec_class_init),
(gst_speex_dec_reset), (gst_speex_dec_init), (speex_dec_convert),
(speex_get_sink_query_types), (speex_dec_sink_query),
(speex_get_src_query_types), (speex_dec_src_query),
(speex_dec_src_event), (speex_dec_sink_event),
(speex_dec_chain_parse_header), (speex_dec_chain_parse_comments),
(speex_dec_chain_parse_data), (speex_dec_chain),
(gst_speex_dec_get_property), (gst_speex_dec_set_property),
(speex_dec_change_state):
* ext/speex/gstspeexdec.h:
Fix seeking and duration queries (#337033); clean up and
refactor a bit.
2006-04-05 18:27:22 +00:00
|
|
|
#endif /* __GST_SPEEX_DEC_H__ */
|