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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
#ifndef __LEGACYRESAMPLE_H__
|
|
|
|
#define __LEGACYRESAMPLE_H__
|
2005-08-23 19:29:38 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
#define GST_TYPE_LEGACYRESAMPLE \
|
|
|
|
(gst_legacyresample_get_type())
|
|
|
|
#define GST_LEGACYRESAMPLE(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_LEGACYRESAMPLE,GstLegacyresample))
|
|
|
|
#define GST_LEGACYRESAMPLE_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_LEGACYRESAMPLE,GstLegacyresampleClass))
|
|
|
|
#define GST_IS_LEGACYRESAMPLE(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_LEGACYRESAMPLE))
|
|
|
|
#define GST_IS_LEGACYRESAMPLE_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LEGACYRESAMPLE))
|
2005-08-23 19:29:38 +00:00
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
typedef struct _GstLegacyresample GstLegacyresample;
|
|
|
|
typedef struct _GstLegacyresampleClass GstLegacyresampleClass;
|
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
|
|
|
/**
|
2009-01-23 11:46:28 +00:00
|
|
|
* GstLegacyresample:
|
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
|
|
|
*
|
|
|
|
* Opaque data structure.
|
|
|
|
*/
|
2009-01-23 11:46:28 +00:00
|
|
|
struct _GstLegacyresample {
|
2005-08-24 14:08:58 +00:00
|
|
|
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;
|
2007-03-14 17:16:30 +00:00
|
|
|
gboolean need_discont;
|
2005-08-23 19:29:38 +00:00
|
|
|
|
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;
|
2007-03-14 17:16:30 +00:00
|
|
|
GstClockTime prev_ts, prev_duration;
|
2005-08-23 19:29:38 +00:00
|
|
|
int channels;
|
|
|
|
|
|
|
|
int i_rate;
|
|
|
|
int o_rate;
|
|
|
|
int filter_length;
|
|
|
|
|
|
|
|
ResampleState * resample;
|
|
|
|
};
|
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
struct _GstLegacyresampleClass {
|
2005-08-24 14:08:58 +00:00
|
|
|
GstBaseTransformClass parent_class;
|
2005-08-23 19:29:38 +00:00
|
|
|
};
|
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
GType gst_legacyresample_get_type(void);
|
2005-08-23 19:29:38 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2009-01-23 11:46:28 +00:00
|
|
|
#endif /* __LEGACYRESAMPLE_H__ */
|