2002-03-20 21:45:04 +00:00
|
|
|
/* GStreamer
|
2001-12-30 20:10:15 +00:00
|
|
|
* 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 __GST_SMOOTHWAVE_H__
|
|
|
|
#define __GST_SMOOTHWAVE_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
Original commit message from CVS:
* configure.ac:
* ext/libvisual/visual.c: (gst_visual_get_type),
(libvisual_log_handler), (gst_visual_getcaps),
(gst_visual_srclink), (gst_visual_change_state), (make_valid_name),
(plugin_init):
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
* ext/smoothwave/Makefile.am:
* ext/smoothwave/demo-osssrc.c: (main):
* ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_class_init),
(gst_smoothwave_init), (gst_smoothwave_dispose), (gst_sw_sinklink),
(gst_sw_srclink), (gst_smoothwave_chain), (gst_sw_change_state),
(plugin_init):
* ext/smoothwave/gstsmoothwave.h:
Make gstsmoothwave a working element in the 20th century.
* gst/chart/gstchart.c: (gst_chart_init), (gst_chart_srcconnect):
Fix incorrect link function
2004-11-12 17:37:49 +00:00
|
|
|
#include <gst/bytestream/adapter.h>
|
2001-12-30 20:10:15 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2004-03-15 16:32:54 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2001-12-30 20:10:15 +00:00
|
|
|
|
|
|
|
#define GST_TYPE_SMOOTHWAVE \
|
|
|
|
(gst_smoothwave_get_type())
|
|
|
|
#define GST_SMOOTHWAVE(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SMOOTHWAVE,GstSmoothWave))
|
|
|
|
#define GST_SMOOTHWAVE_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SMOOTHWAVE,GstSmoothWave))
|
|
|
|
#define GST_IS_SMOOTHWAVE(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SMOOTHWAVE))
|
|
|
|
#define GST_IS_SMOOTHWAVE_CLASS(obj) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SMOOTHWAVE))
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstSmoothWave GstSmoothWave;
|
|
|
|
typedef struct _GstSmoothWaveClass GstSmoothWaveClass;
|
2001-12-30 20:10:15 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstSmoothWave {
|
|
|
|
GstElement element;
|
2001-12-30 20:10:15 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
GstPad *sinkpad,*srcpad;
|
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
Original commit message from CVS:
* configure.ac:
* ext/libvisual/visual.c: (gst_visual_get_type),
(libvisual_log_handler), (gst_visual_getcaps),
(gst_visual_srclink), (gst_visual_change_state), (make_valid_name),
(plugin_init):
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
* ext/smoothwave/Makefile.am:
* ext/smoothwave/demo-osssrc.c: (main):
* ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_class_init),
(gst_smoothwave_init), (gst_smoothwave_dispose), (gst_sw_sinklink),
(gst_sw_srclink), (gst_smoothwave_chain), (gst_sw_change_state),
(plugin_init):
* ext/smoothwave/gstsmoothwave.h:
Make gstsmoothwave a working element in the 20th century.
* gst/chart/gstchart.c: (gst_chart_init), (gst_chart_srcconnect):
Fix incorrect link function
2004-11-12 17:37:49 +00:00
|
|
|
GstAdapter *adapter;
|
2001-12-30 20:10:15 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
guchar *imagebuffer;
|
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
Original commit message from CVS:
* configure.ac:
* ext/libvisual/visual.c: (gst_visual_get_type),
(libvisual_log_handler), (gst_visual_getcaps),
(gst_visual_srclink), (gst_visual_change_state), (make_valid_name),
(plugin_init):
Update libvisual to 0.1.7. Link in the debug handling to gstreamer
* ext/smoothwave/Makefile.am:
* ext/smoothwave/demo-osssrc.c: (main):
* ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_class_init),
(gst_smoothwave_init), (gst_smoothwave_dispose), (gst_sw_sinklink),
(gst_sw_srclink), (gst_smoothwave_chain), (gst_sw_change_state),
(plugin_init):
* ext/smoothwave/gstsmoothwave.h:
Make gstsmoothwave a working element in the 20th century.
* gst/chart/gstchart.c: (gst_chart_init), (gst_chart_srcconnect):
Fix incorrect link function
2004-11-12 17:37:49 +00:00
|
|
|
GstClockTime audio_basetime;
|
|
|
|
guint64 samples_consumed;
|
|
|
|
|
|
|
|
gint sample_rate;
|
|
|
|
gint width,height;
|
|
|
|
gdouble fps;
|
|
|
|
gint channels;
|
|
|
|
guint32 palette[256];
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2001-12-30 20:10:15 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstSmoothWaveClass {
|
|
|
|
GstElementClass parent_class;
|
|
|
|
};
|
2001-12-30 20:10:15 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
GType gst_smoothwave_get_type(void);
|
2001-12-30 20:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __cplusplus */
|
2001-12-30 20:10:15 +00:00
|
|
|
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_SMOOTHWAVE_H__ */
|