mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
659b0d1798
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
75 lines
2 KiB
C
75 lines
2 KiB
C
/* 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 __GST_SMOOTHWAVE_H__
|
|
#define __GST_SMOOTHWAVE_H__
|
|
|
|
|
|
#include <gst/gst.h>
|
|
#include <gst/bytestream/adapter.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#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))
|
|
|
|
typedef struct _GstSmoothWave GstSmoothWave;
|
|
typedef struct _GstSmoothWaveClass GstSmoothWaveClass;
|
|
|
|
struct _GstSmoothWave {
|
|
GstElement element;
|
|
|
|
GstPad *sinkpad,*srcpad;
|
|
GstAdapter *adapter;
|
|
|
|
guchar *imagebuffer;
|
|
GstClockTime audio_basetime;
|
|
guint64 samples_consumed;
|
|
|
|
gint sample_rate;
|
|
gint width,height;
|
|
gdouble fps;
|
|
gint channels;
|
|
guint32 palette[256];
|
|
};
|
|
|
|
struct _GstSmoothWaveClass {
|
|
GstElementClass parent_class;
|
|
};
|
|
|
|
GType gst_smoothwave_get_type(void);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
#endif /* __GST_SMOOTHWAVE_H__ */
|