borgify further clean up docs a little

Original commit message from CVS:
borgify further
clean up docs a little
parent 109cd71c
2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-base-plugins.args:
* docs/plugins/inspect/plugin-libvisual.xml:
* gst/audioconvert/plugin.h:
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_get_type),
(gst_audio_rate_base_init), (gst_audio_rate_class_init),
(gst_audio_rate_setcaps), (gst_audio_rate_init),
(gst_audio_rate_chain), (gst_audio_rate_set_property),
(gst_audio_rate_get_property), (gst_audio_rate_change_state),
(plugin_init):
* gst/audiotestsrc/gstaudiotestsrc.c:
(gst_audiostestsrc_wave_get_type), (gst_audio_test_src_base_init),
(gst_audio_test_src_class_init), (gst_audio_test_src_init),
(gst_audio_test_src_src_fixate), (gst_audio_test_src_setcaps),
(gst_audio_test_src_get_query_types),
(gst_audio_test_src_src_query), (gst_audio_test_src_create_sine),
(gst_audio_test_src_create_square),
(gst_audio_test_src_create_saw),
(gst_audio_test_src_create_triangle),
(gst_audio_test_src_create_silence),
(gst_audio_test_src_create_white_noise),
(gst_audio_test_src_init_pink_noise),
(gst_audio_test_src_generate_pink_noise_value),
(gst_audio_test_src_create_pink_noise),
(gst_audio_test_src_change_wave), (gst_audio_test_src_get_times),
(gst_audio_test_src_create), (gst_audio_test_src_set_property),
(gst_audio_test_src_get_property), (gst_audio_test_src_start),
(plugin_init):
* gst/audiotestsrc/gstaudiotestsrc.h:
* gst/subparse/gstsubparse.c: (gst_sub_parse_get_type),
(gst_sub_parse_base_init), (gst_sub_parse_class_init),
(gst_sub_parse_init), (gst_sub_parse_formats),
(gst_sub_parse_src_eventmask), (gst_sub_parse_src_event),
(convert_encoding), (get_next_line),
(gst_sub_parse_data_format_autodetect),
(gst_sub_parse_format_autodetect), (feed_textbuf), (handle_buffer),
(gst_sub_parse_loop), (gst_sub_parse_chain),
(gst_sub_parse_change_state), (gst_sub_parse_type_find),
(plugin_init):
* gst/subparse/gstsubparse.h:
* gst/videorate/gstvideorate.c: (gst_video_rate_get_type),
(gst_video_rate_base_init), (gst_video_rate_class_init),
(gst_video_rate_transformcaps), (gst_video_rate_getcaps),
(gst_video_rate_setcaps), (gst_video_rate_blank_data),
(gst_video_rate_init), (gst_video_rate_event),
(gst_video_rate_chain), (gst_video_rate_set_property),
(gst_video_rate_get_property), (gst_video_rate_change_state),
(plugin_init):
* gst/videoscale/gstvideoscale.c:
(gst_video_scale_method_get_type), (gst_video_scale_get_capslist),
(gst_video_scale_src_template_factory),
(gst_video_scale_sink_template_factory),
(gst_video_scale_get_type), (gst_video_scale_base_init),
(gst_video_scale_class_init), (gst_video_scale_init),
(gst_video_scale_set_property), (gst_video_scale_get_property),
(gst_video_scale_transform_caps), (gst_video_scale_get_format),
(gst_video_scale_prepare_size), (parse_caps),
(gst_video_scale_set_caps), (gst_video_scale_get_unit_size),
(gst_video_scale_fixate_caps), (gst_video_scale_prepare_image),
(gst_video_scale_transform), (gst_video_scale_handle_src_event),
(plugin_init):
* gst/videoscale/gstvideoscale.h:
* gst/videotestsrc/gstvideotestsrc.c:
(gst_video_test_src_pattern_get_type),
(gst_video_test_src_base_init), (gst_video_test_src_class_init),
(gst_video_test_src_init), (gst_video_test_src_src_fixate),
(gst_video_test_src_set_pattern),
(gst_video_test_src_set_property),
(gst_video_test_src_get_property), (gst_video_test_src_getcaps),
(gst_video_test_src_parse_caps), (gst_video_test_src_setcaps),
(gst_video_test_src_event), (gst_video_test_src_get_times),
(gst_video_test_src_create), (plugin_init):
* gst/videotestsrc/gstvideotestsrc.h:
* gst/videotestsrc/videotestsrc.c: (gst_video_test_src_get_size),
(gst_video_test_src_smpte), (gst_video_test_src_snow),
(gst_video_test_src_black):
* gst/videotestsrc/videotestsrc.h:
borgify further
clean up docs a little
2005-11-30 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/rtp/gstbasertpdepayload.h:
......
......@@ -14,6 +14,9 @@ a support library for audio elements
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### ENUM GstAudioFieldFlag ##### -->
<para>
......
......@@ -14,6 +14,9 @@ interface for adjusting color balance settings
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstColorBalance ##### -->
<para>
......
......@@ -14,3 +14,6 @@ gconf default elements support
</para>
<!-- ##### SECTION Stability_Level ##### -->
......@@ -14,6 +14,9 @@ interface for elements that provide mixer operations
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstMixer ##### -->
<para>
......
......@@ -14,6 +14,9 @@ an implementation of an audio ringbuffer
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstRingBuffer ##### -->
<para>
......
......@@ -14,6 +14,9 @@ interface for elements that provide tuner operations
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstTuner ##### -->
<para>
......
......@@ -14,6 +14,9 @@ interface for setting/getting a Window on elements supporting it.
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstXOverlay ##### -->
<para>
......
......@@ -80,6 +80,7 @@ EXTRA_HFILES = \
$(top_srcdir)/ext/theora/gsttheoraenc.h \
$(top_srcdir)/ext/vorbis/vorbisenc.h \
$(top_srcdir)/gst/audioconvert/gstaudioconvert.h \
$(top_srcdir)/gst/audiotestsrc/gstaudiotestsrc.h \
$(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \
$(top_srcdir)/gst/tcp/gstmultifdsink.h \
$(top_srcdir)/gst/tcp/gsttcpserversink.h \
......
......@@ -1008,3 +1008,123 @@
<DEFAULT>Sine</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoScale::method</NAME>
<TYPE>GstVideoScaleMethod</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>method</NICK>
<BLURB>method.</BLURB>
<DEFAULT>Nearest Neighbour</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::drop</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Drop</NICK>
<BLURB>Number of dropped frames.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::duplicate</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Duplicate</NICK>
<BLURB>Number of duplicated frames.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::in</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>In</NICK>
<BLURB>Number of input frames.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::new-pref</NAME>
<TYPE>gdouble</TYPE>
<RANGE>[0,1]</RANGE>
<FLAGS>rw</FLAGS>
<NICK>New Pref</NICK>
<BLURB>Value indicating how much to prefer new frames.</BLURB>
<DEFAULT>1</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::out</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Out</NICK>
<BLURB>Number of output frames.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstVideoRate::silent</NAME>
<TYPE>gboolean</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>silent</NICK>
<BLURB>Don't emit notify for dropped and duplicated frames.</BLURB>
<DEFAULT>TRUE</DEFAULT>
</ARG>
<ARG>
<NAME>GstAudioRate::add</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Add</NICK>
<BLURB>Number of added samples.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstAudioRate::drop</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Drop</NICK>
<BLURB>Number of dropped samples.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstAudioRate::in</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>In</NICK>
<BLURB>Number of input samples.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstAudioRate::out</NAME>
<TYPE>guint64</TYPE>
<RANGE></RANGE>
<FLAGS>r</FLAGS>
<NICK>Out</NICK>
<BLURB>Number of output samples.</BLURB>
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstAudioRate::silent</NAME>
<TYPE>gboolean</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>silent</NICK>
<BLURB>Don't emit notify for dropped and duplicated frames.</BLURB>
<DEFAULT>TRUE</DEFAULT>
</ARG>
......@@ -3,10 +3,10 @@
<description>libvisual visualization plugins</description>
<filename>../../ext/libvisual/.libs/libgstlibvisual.so</filename>
<basename>libgstlibvisual.so</basename>
<version>0.9.6</version>
<version>0.9.6.1</version>
<license>LGPL</license>
<source>gst-plugins-base</source>
<package>GStreamer Base Plug-ins source release</package>
<package>GStreamer Base Plug-ins CVS/prerelease</package>
<origin>Unknown package origin</origin>
<elements>
<element>
......
......@@ -20,8 +20,8 @@
*/
#ifndef __GST_PLUGIN_AUDIOCONVERT_H__
#define __GST_PLUGIN_AUDIOCONVERT_H__
#ifndef __GST_PLUGIN_AUDIO_CONVERT_H__
#define __GST_PLUGIN_AUDIO_CONVERT_H__
#include <gst/gst.h>
......@@ -32,4 +32,4 @@ GType gst_audio_convert_get_type (void);
G_END_DECLS
#endif /* __GST_PLUGIN_AUDIOCONVERT_H__ */
#endif /* __GST_PLUGIN_AUDIO_CONVERT_H__ */
......@@ -25,21 +25,21 @@
#include <gst/gst.h>
#include <gst/audio/audio.h>
#define GST_TYPE_AUDIORATE \
(gst_audiorate_get_type())
#define GST_AUDIORATE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIORATE,GstAudiorate))
#define GST_AUDIORATE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIORATE,GstAudiorate))
#define GST_IS_AUDIORATE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIORATE))
#define GST_IS_AUDIORATE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIORATE))
typedef struct _GstAudiorate GstAudiorate;
typedef struct _GstAudiorateClass GstAudiorateClass;
struct _GstAudiorate
#define GST_TYPE_AUDIO_RATE \
(gst_audio_rate_get_type())
#define GST_AUDIO_RATE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_RATE,GstAudioRate))
#define GST_AUDIO_RATE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_RATE,GstAudioRate))
#define GST_IS_AUDIO_RATE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_RATE))
#define GST_IS_AUDIO_RATE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_RATE))
typedef struct _GstAudioRate GstAudioRate;
typedef struct _GstAudioRateClass GstAudioRateClass;
struct _GstAudioRate
{
GstElement element;
......@@ -54,19 +54,19 @@ struct _GstAudiorate
gboolean silent;
};
struct _GstAudiorateClass
struct _GstAudioRateClass
{
GstElementClass parent_class;
};
/* elementfactory information */
static GstElementDetails audiorate_details =
static GstElementDetails audio_rate_details =
GST_ELEMENT_DETAILS ("Audio rate adjuster",
"Filter/Effect/Audio",
"Drops/duplicates/adjusts timestamps on audio samples to make a perfect stream",
"Wim Taymans <wim@fluendo.com>");
/* GstAudiorate signals and args */
/* GstAudioRate signals and args */
enum
{
/* FILL ME */
......@@ -86,84 +86,84 @@ enum
/* FILL ME */
};
static GstStaticPadTemplate gst_audiorate_src_template =
static GstStaticPadTemplate gst_audio_rate_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS)
);
static GstStaticPadTemplate gst_audiorate_sink_template =
static GstStaticPadTemplate gst_audio_rate_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS)
);
static void gst_audiorate_base_init (gpointer g_class);
static void gst_audiorate_class_init (GstAudiorateClass * klass);
static void gst_audiorate_init (GstAudiorate * audiorate);
static GstFlowReturn gst_audiorate_chain (GstPad * pad, GstBuffer * buf);
static void gst_audio_rate_base_init (gpointer g_class);
static void gst_audio_rate_class_init (GstAudioRateClass * klass);
static void gst_audio_rate_init (GstAudioRate * audiorate);
static GstFlowReturn gst_audio_rate_chain (GstPad * pad, GstBuffer * buf);
static void gst_audiorate_set_property (GObject * object,
static void gst_audio_rate_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
static void gst_audiorate_get_property (GObject * object,
static void gst_audio_rate_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_audiorate_change_state (GstElement * element,
static GstStateChangeReturn gst_audio_rate_change_state (GstElement * element,
GstStateChange transition);
static GstElementClass *parent_class = NULL;
/*static guint gst_audiorate_signals[LAST_SIGNAL] = { 0 }; */
/*static guint gst_audio_rate_signals[LAST_SIGNAL] = { 0 }; */
static GType
gst_audiorate_get_type (void)
gst_audio_rate_get_type (void)
{
static GType audiorate_type = 0;
static GType audio_rate_type = 0;
if (!audiorate_type) {
static const GTypeInfo audiorate_info = {
sizeof (GstAudiorateClass),
gst_audiorate_base_init,
if (!audio_rate_type) {
static const GTypeInfo audio_rate_info = {
sizeof (GstAudioRateClass),
gst_audio_rate_base_init,
NULL,
(GClassInitFunc) gst_audiorate_class_init,
(GClassInitFunc) gst_audio_rate_class_init,
NULL,
NULL,
sizeof (GstAudiorate),
sizeof (GstAudioRate),
0,
(GInstanceInitFunc) gst_audiorate_init,
(GInstanceInitFunc) gst_audio_rate_init,
};
audiorate_type = g_type_register_static (GST_TYPE_ELEMENT,
"GstAudiorate", &audiorate_info, 0);
audio_rate_type = g_type_register_static (GST_TYPE_ELEMENT,
"GstAudioRate", &audio_rate_info, 0);
}
return audiorate_type;
return audio_rate_type;
}
static void
gst_audiorate_base_init (gpointer g_class)
gst_audio_rate_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &audiorate_details);
gst_element_class_set_details (element_class, &audio_rate_details);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_audiorate_sink_template));
gst_static_pad_template_get (&gst_audio_rate_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_audiorate_src_template));
gst_static_pad_template_get (&gst_audio_rate_src_template));
}
static void
gst_audiorate_class_init (GstAudiorateClass * klass)
gst_audio_rate_class_init (GstAudioRateClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->set_property = gst_audiorate_set_property;
object_class->get_property = gst_audiorate_get_property;
object_class->set_property = gst_audio_rate_set_property;
object_class->get_property = gst_audio_rate_get_property;
g_object_class_install_property (object_class, ARG_IN,
g_param_spec_uint64 ("in", "In",
......@@ -182,18 +182,18 @@ gst_audiorate_class_init (GstAudiorateClass * klass)
"Don't emit notify for dropped and duplicated frames",
DEFAULT_SILENT, G_PARAM_READWRITE));
element_class->change_state = gst_audiorate_change_state;
element_class->change_state = gst_audio_rate_change_state;
}
static gboolean
gst_audiorate_setcaps (GstPad * pad, GstCaps * caps)
gst_audio_rate_setcaps (GstPad * pad, GstCaps * caps)
{
GstAudiorate *audiorate;
GstAudioRate *audiorate;
GstStructure *structure;
GstPad *otherpad;
gint ret, channels, depth;
audiorate = GST_AUDIORATE (gst_pad_get_parent (pad));
audiorate = GST_AUDIO_RATE (gst_pad_get_parent (pad));
otherpad = (pad == audiorate->srcpad) ? audiorate->sinkpad :
audiorate->srcpad;
......@@ -217,19 +217,19 @@ gst_audiorate_setcaps (GstPad * pad, GstCaps * caps)
}
static void
gst_audiorate_init (GstAudiorate * audiorate)
gst_audio_rate_init (GstAudioRate * audiorate)
{
audiorate->sinkpad =
gst_pad_new_from_static_template (&gst_audiorate_sink_template, "sink");
gst_pad_new_from_static_template (&gst_audio_rate_sink_template, "sink");
gst_element_add_pad (GST_ELEMENT (audiorate), audiorate->sinkpad);
gst_pad_set_chain_function (audiorate->sinkpad, gst_audiorate_chain);
gst_pad_set_setcaps_function (audiorate->sinkpad, gst_audiorate_setcaps);
gst_pad_set_chain_function (audiorate->sinkpad, gst_audio_rate_chain);
gst_pad_set_setcaps_function (audiorate->sinkpad, gst_audio_rate_setcaps);
gst_pad_set_getcaps_function (audiorate->sinkpad, gst_pad_proxy_getcaps);
audiorate->srcpad =
gst_pad_new_from_static_template (&gst_audiorate_src_template, "src");
gst_pad_new_from_static_template (&gst_audio_rate_src_template, "src");
gst_element_add_pad (GST_ELEMENT (audiorate), audiorate->srcpad);
gst_pad_set_setcaps_function (audiorate->srcpad, gst_audiorate_setcaps);
gst_pad_set_setcaps_function (audiorate->srcpad, gst_audio_rate_setcaps);
gst_pad_set_getcaps_function (audiorate->srcpad, gst_pad_proxy_getcaps);
audiorate->bytes_per_sample = 1;
......@@ -241,15 +241,15 @@ gst_audiorate_init (GstAudiorate * audiorate)
}
static GstFlowReturn
gst_audiorate_chain (GstPad * pad, GstBuffer * buf)
gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
{
GstAudiorate *audiorate;
GstAudioRate *audiorate;
GstClockTime in_time, in_duration;
guint64 in_offset, in_offset_end;
gint in_size;
GstFlowReturn ret = GST_FLOW_OK;
audiorate = GST_AUDIORATE (gst_pad_get_parent (pad));
audiorate = GST_AUDIO_RATE (gst_pad_get_parent (pad));
audiorate->in++;
......@@ -338,10 +338,10 @@ beach:
}
static void
gst_audiorate_set_property (GObject * object,
gst_audio_rate_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec)
{
GstAudiorate *audiorate = GST_AUDIORATE (object);
GstAudioRate *audiorate = GST_AUDIO_RATE (object);
switch (prop_id) {
case ARG_SILENT:
......@@ -354,10 +354,10 @@ gst_audiorate_set_property (GObject * object,
}
static void
gst_audiorate_get_property (GObject * object,
gst_audio_rate_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec)
{
GstAudiorate *audiorate = GST_AUDIORATE (object);
GstAudioRate *audiorate = GST_AUDIO_RATE (object);
switch (prop_id) {
case ARG_IN:
......@@ -382,9 +382,9 @@ gst_audiorate_get_property (GObject * object,
}
static GstStateChangeReturn
gst_audiorate_change_state (GstElement * element, GstStateChange transition)
gst_audio_rate_change_state (GstElement * element, GstStateChange transition)
{
GstAudiorate *audiorate = GST_AUDIORATE (element);
GstAudioRate *audiorate = GST_AUDIO_RATE (element);
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
......@@ -406,7 +406,7 @@ static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "audiorate", GST_RANK_NONE,
GST_TYPE_AUDIORATE);
GST_TYPE_AUDIO_RATE);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
......
......@@ -54,7 +54,7 @@
#include "gstaudiotestsrc.h"
GstElementDetails gst_audiotestsrc_details = {
GstElementDetails gst_audio_test_src_details = {
"Audio test source",
"Source/Audio",
"Creates audio test signals of given frequency and volume",
......@@ -74,7 +74,7 @@ enum
};
static GstStaticPadTemplate gst_audiotestsrc_src_template =
static GstStaticPadTemplate gst_audio_test_src_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
......@@ -86,22 +86,22 @@ GST_STATIC_PAD_TEMPLATE ("src",
);
GST_BOILERPLATE (GstAudioTestSrc, gst_audiotestsrc, GstBaseSrc,
GST_BOILERPLATE (GstAudioTestSrc, gst_audio_test_src, GstBaseSrc,
GST_TYPE_BASE_SRC);
#define GST_TYPE_AUDIOTESTSRC_WAVE (gst_audiostestsrc_wave_get_type())
#define GST_TYPE_AUDIO_TEST_SRC_WAVE (gst_audiostestsrc_wave_get_type())
static GType
gst_audiostestsrc_wave_get_type (void)
{
static GType audiostestsrc_wave_type = 0;
static GEnumValue audiostestsrc_waves[] = {
{GST_AUDIOTESTSRC_WAVE_SINE, "Sine", "sine"},
{GST_AUDIOTESTSRC_WAVE_SQUARE, "Square", "square"},
{GST_AUDIOTESTSRC_WAVE_SAW, "Saw", "saw"},
{GST_AUDIOTESTSRC_WAVE_TRIANGLE, "Triangle", "triangle"},
{GST_AUDIOTESTSRC_WAVE_SILENCE, "Silence", "silence"},
{GST_AUDIOTESTSRC_WAVE_WHITE_NOISE, "White noise", "white-noise"},
{GST_AUDIOTESTSRC_WAVE_PINK_NOISE, "Pink noise", "pink-noise"},
{GST_AUDIO_TEST_SRC_WAVE_SINE, "Sine", "sine"},
{GST_AUDIO_TEST_SRC_WAVE_SQUARE, "Square", "square"},
{GST_AUDIO_TEST_SRC_WAVE_SAW, "Saw", "saw"},
{GST_AUDIO_TEST_SRC_WAVE_TRIANGLE, "Triangle", "triangle"},
{GST_AUDIO_TEST_SRC_WAVE_SILENCE, "Silence", "silence"},
{GST_AUDIO_TEST_SRC_WAVE_WHITE_NOISE, "White noise", "white-noise"},
{GST_AUDIO_TEST_SRC_WAVE_PINK_NOISE, "Pink noise", "pink-noise"},
{0, NULL, NULL},
};
......@@ -112,38 +112,39 @@ gst_audiostestsrc_wave_get_type (void)
return audiostestsrc_wave_type;
}
static void gst_audiotestsrc_set_property (GObject * object,
static void gst_audio_test_src_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
static void gst_audiotestsrc_get_property (GObject * object,
static void gst_audio_test_src_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static gboolean gst_audiotestsrc_setcaps (GstBaseSrc * basesrc, GstCaps * caps);
static void gst_audiotestsrc_src_fixate (GstPad * pad, GstCaps * caps);
static gboolean gst_audio_test_src_setcaps (GstBaseSrc * basesrc,
GstCaps * caps);
static void gst_audio_test_src_src_fixate (GstPad * pad, GstCaps * caps);
static const GstQueryType *gst_audiotestsrc_get_query_types (GstPad * pad);
static gboolean gst_audiotestsrc_src_query (GstPad * pad, GstQuery * query);
static const GstQueryType *gst_audio_test_src_get_query_types (GstPad * pad);
static gboolean gst_audio_test_src_src_query (GstPad * pad, GstQuery * query);
static void gst_audiotestsrc_change_wave (GstAudioTestSrc * src);
static void gst_audio_test_src_change_wave (GstAudioTestSrc * src);
static void gst_audiotestsrc_get_times (GstBaseSrc * basesrc,
static void gst_audio_test_src_get_times (GstBaseSrc * basesrc,
GstBuffer * buffer, GstClockTime * start, GstClockTime * end);
static GstFlowReturn gst_audiotestsrc_create (GstBaseSrc * basesrc,