2005-08-23 19:29:38 +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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __AUDIORESAMPLE_H__
|
|
|
|
#define __AUDIORESAMPLE_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2005-08-24 14:08:58 +00:00
|
|
|
#include <gst/base/gstbasetransform.h>
|
2005-08-23 19:29:38 +00:00
|
|
|
|
2005-08-24 14:08:58 +00:00
|
|
|
#include "resample.h"
|
2005-08-23 19:29:38 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GST_TYPE_AUDIORESAMPLE \
|
2005-08-24 14:08:58 +00:00
|
|
|
(gst_audioresample_get_type())
|
2005-08-23 19:29:38 +00:00
|
|
|
#define GST_AUDIORESAMPLE(obj) \
|
2005-08-24 14:08:58 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIORESAMPLE,GstAudioresample))
|
2005-08-23 19:29:38 +00:00
|
|
|
#define GST_AUDIORESAMPLE_CLASS(klass) \
|
2005-08-24 14:08:58 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIORESAMPLE,GstAudioresample))
|
2005-08-23 19:29:38 +00:00
|
|
|
#define GST_IS_AUDIORESAMPLE(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIORESAMPLE))
|
|
|
|
#define GST_IS_AUDIORESAMPLE_CLASS(obj) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIORESAMPLE))
|
|
|
|
|
2005-08-24 14:08:58 +00:00
|
|
|
typedef struct _GstAudioresample GstAudioresample;
|
|
|
|
typedef struct _GstAudioresampleClass GstAudioresampleClass;
|
2005-08-23 19:29:38 +00:00
|
|
|
|
docs/plugins/: Add audioresample to docs.
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-base-plugins-docs.sgml:
* docs/plugins/gst-plugins-base-plugins-sections.txt:
Add audioresample to docs.
* gst/audioconvert/gstaudioconvert.c:
Add revision date.
* gst/audioresample/gstaudioresample.c:
(gst_audioresample_base_init), (gst_audioresample_class_init),
(gst_audioresample_init), (gst_audioresample_dispose),
(audioresample_get_unit_size), (audioresample_transform_caps),
(resample_set_state_from_caps), (audioresample_transform_size),
(audioresample_set_caps), (audioresample_event),
(audioresample_do_output), (audioresample_transform),
(audioresample_pushthrough), (gst_audioresample_set_property),
(gst_audioresample_get_property), (plugin_init):
* gst/audioresample/gstaudioresample.h:
Added docs.
Small code cleanups.
2006-03-02 18:23:55 +00:00
|
|
|
/**
|
|
|
|
* GstAudioresample:
|
|
|
|
*
|
|
|
|
* Opaque data structure.
|
|
|
|
*/
|
2005-08-24 14:08:58 +00:00
|
|
|
struct _GstAudioresample {
|
|
|
|
GstBaseTransform element;
|
2005-08-23 19:29:38 +00:00
|
|
|
|
2005-08-24 14:08:58 +00:00
|
|
|
GstCaps *srccaps, *sinkcaps;
|
2005-08-23 19:29:38 +00:00
|
|
|
|
|
|
|
gboolean passthru;
|
|
|
|
|
2005-08-25 17:20:02 +00:00
|
|
|
guint64 offset;
|
gst/audioresample/: Fix audioresample, seek torture, new segments, reverse negotiation etc.. work fine.
Original commit message from CVS:
* gst/audioresample/buffer.c: (audioresample_buffer_queue_flush):
* gst/audioresample/buffer.h:
* gst/audioresample/gstaudioresample.c:
* gst/audioresample/gstaudioresample.h:
* gst/audioresample/resample.c: (resample_input_flush),
(resample_input_pushthrough), (resample_input_eos),
(resample_get_output_size_for_input),
(resample_get_input_size_for_output), (resample_get_output_size),
(resample_get_output_data):
* gst/audioresample/resample.h:
* gst/audioresample/resample_ref.c: (resample_scale_ref):
Fix audioresample, seek torture, new segments, reverse negotiation
etc.. work fine.
2005-12-02 11:34:50 +00:00
|
|
|
guint64 ts_offset;
|
|
|
|
GstClockTime next_ts;
|
2005-08-23 19:29:38 +00:00
|
|
|
int channels;
|
|
|
|
|
|
|
|
int i_rate;
|
|
|
|
int o_rate;
|
|
|
|
int filter_length;
|
|
|
|
|
|
|
|
ResampleState * resample;
|
|
|
|
};
|
|
|
|
|
2005-08-24 14:08:58 +00:00
|
|
|
struct _GstAudioresampleClass {
|
|
|
|
GstBaseTransformClass parent_class;
|
2005-08-23 19:29:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GType gst_audioresample_get_type(void);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __AUDIORESAMPLE_H__ */
|