diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-12-30 01:14:29 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-12-31 01:41:18 +0000 |
commit | 222be5f0e9d13d031ff9b4a7efdaec70bd6c4735 (patch) | |
tree | c0dc538257e40097db7eee5f57ad483352207f8a | |
parent | 95597d8f0e4c6813732d3d067236f35d3debf552 (diff) |
valve: move valve element/plugin to core
https://bugzilla.gnome.org/show_bug.cgi?id=630808
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | docs/plugins/Makefile.am | 1 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins-docs.sgml | 2 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins-sections.txt | 15 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins.args | 738 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins.hierarchy | 322 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins.interfaces | 35 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins.prerequisites | 6 | ||||
-rw-r--r-- | docs/plugins/inspect/plugin-valve.xml | 34 | ||||
-rw-r--r-- | gst-plugins-bad.spec.in | 1 | ||||
-rw-r--r-- | gst/valve/Makefile.am | 9 | ||||
-rw-r--r-- | gst/valve/gstvalve.c | 284 | ||||
-rw-r--r-- | gst/valve/gstvalve.h | 82 | ||||
-rw-r--r-- | tests/check/Makefile.am | 4 | ||||
-rw-r--r-- | tests/check/elements/.gitignore | 1 | ||||
-rw-r--r-- | tests/check/elements/valve.c | 135 |
17 files changed, 1044 insertions, 638 deletions
diff --git a/Makefile.am b/Makefile.am index 93388d792..dad96866f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,12 +49,14 @@ CRUFT_FILES = \ $(top_builddir)/gst/aacparse/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/gst/amrparse/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/gst/flacparse/.libs/*.{so,dll,DLL,dylib} \ - $(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \ + $(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \ + $(top_builddir)/gst/valve/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/tests/check/elements/autocolorspace \ $(top_builddir)/tests/check/elements/capssetter \ $(top_builddir)/tests/check/elements/imagefreeze \ + $(top_builddir)/tests/check/elements/valve \ $(top_builddir)/tests/check/pipelines/metadata \ $(top_builddir)/tests/icles/test-oss4 @@ -64,6 +66,7 @@ CRUFT_DIRS = \ $(top_srcdir)/gst/flacparse \ $(top_srcdir)/gst/imagefreeze \ $(top_srcdir)/gst/shapewipe \ + $(top_srcdir)/gst/valve \ $(top_srcdir)/tests/examples/shapewipe \ $(top_srcdir)/ext/alsaspdif \ $(top_srcdir)/ext/ivorbis \ diff --git a/configure.ac b/configure.ac index 25edb9176..cde1da983 100644 --- a/configure.ac +++ b/configure.ac @@ -50,8 +50,8 @@ AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL dnl *** required versions of GStreamer stuff *** -GST_REQ=0.10.31 -GSTPB_REQ=0.10.31 +GST_REQ=0.10.31.1 +GSTPB_REQ=0.10.31.1 dnl *** autotools stuff **** @@ -178,7 +178,7 @@ AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)]) AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) dnl GLib is required -AG_GST_GLIB_CHECK([2.20]) +AG_GST_GLIB_CHECK([2.22]) dnl checks for gstreamer dnl uninstalled is selected preferentially -- see pkg-config(1) @@ -343,7 +343,6 @@ AG_GST_CHECK_PLUGIN(speed) AG_GST_CHECK_PLUGIN(subenc) AG_GST_CHECK_PLUGIN(stereo) AG_GST_CHECK_PLUGIN(tta) -AG_GST_CHECK_PLUGIN(valve) AG_GST_CHECK_PLUGIN(videomaxrate) AG_GST_CHECK_PLUGIN(videomeasure) AG_GST_CHECK_PLUGIN(videosignal) @@ -1773,7 +1772,6 @@ gst/speed/Makefile gst/subenc/Makefile gst/stereo/Makefile gst/tta/Makefile -gst/valve/Makefile gst/videomaxrate/Makefile gst/videomeasure/Makefile gst/videosignal/Makefile diff --git a/docs/plugins/Makefile.am b/docs/plugins/Makefile.am index ff940df71..478b90eb9 100644 --- a/docs/plugins/Makefile.am +++ b/docs/plugins/Makefile.am @@ -203,7 +203,6 @@ EXTRA_HFILES = \ $(top_srcdir)/gst/videosignal/gstvideoanalyse.h \ $(top_srcdir)/gst/videosignal/gstvideodetect.h \ $(top_srcdir)/gst/videosignal/gstvideomark.h \ - $(top_srcdir)/gst/valve/gstvalve.h \ $(top_srcdir)/sys/directdraw/gstdirectdrawsink.h \ $(top_srcdir)/sys/dvb/gstdvbsrc.h \ $(top_srcdir)/sys/shm/gstshmsink.h \ diff --git a/docs/plugins/gst-plugins-bad-plugins-docs.sgml b/docs/plugins/gst-plugins-bad-plugins-docs.sgml index 575afc1b1..cb2ff1a69 100644 --- a/docs/plugins/gst-plugins-bad-plugins-docs.sgml +++ b/docs/plugins/gst-plugins-bad-plugins-docs.sgml @@ -122,7 +122,6 @@ <xi:include href="xml/element-trm.xml" /> <xi:include href="xml/element-tunnel.xml" /> <xi:include href="xml/element-twirl.xml" /> - <xi:include href="xml/element-valve.xml" /> <xi:include href="xml/element-videoanalyse.xml" /> <xi:include href="xml/element-videodetect.xml" /> <xi:include href="xml/element-videomark.xml" /> @@ -215,7 +214,6 @@ <xi:include href="xml/plugin-swfdec.xml" /> <xi:include href="xml/plugin-timidity.xml" /> <xi:include href="xml/plugin-tta.xml" /> - <xi:include href="xml/plugin-valve.xml" /> <xi:include href="xml/plugin-vcdsrc.xml" /> <xi:include href="xml/plugin-videomaxrate.xml" /> <xi:include href="xml/plugin-videosignal.xml" /> diff --git a/docs/plugins/gst-plugins-bad-plugins-sections.txt b/docs/plugins/gst-plugins-bad-plugins-sections.txt index fdfb78136..8f26b09b8 100644 --- a/docs/plugins/gst-plugins-bad-plugins-sections.txt +++ b/docs/plugins/gst-plugins-bad-plugins-sections.txt @@ -1603,21 +1603,6 @@ gst_twirl_plugin_init </SECTION> <SECTION> -<FILE>element-valve</FILE> -<TITLE>valve</TITLE> -GstValve -<SUBSECTION Standard> -GstValveClass -GstValvePrivate -gst_valve_get_type -GST_IS_VALVE -GST_IS_VALVE_CLASS -GST_TYPE_VALVE -GST_VALVE -GST_VALVE_CLASS -</SECTION> - -<SECTION> <FILE>element-videoanalyse</FILE> <TITLE>videoanalyse</TITLE> GstVideoAnalyse diff --git a/docs/plugins/gst-plugins-bad-plugins.args b/docs/plugins/gst-plugins-bad-plugins.args index 4717bb9aa..73c886cbb 100644 --- a/docs/plugins/gst-plugins-bad-plugins.args +++ b/docs/plugins/gst-plugins-bad-plugins.args @@ -41,7 +41,7 @@ <ARG> <NAME>GstXvidEnc::averaging-period</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Averaging Period</NICK> <BLURB>[CBR] Number of frames for which XviD averages bitrate.</BLURB> @@ -91,7 +91,7 @@ <ARG> <NAME>GstXvidEnc::buffer</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Buffer Size</NICK> <BLURB>[CBR] Size of the video buffers.</BLURB> @@ -121,7 +121,7 @@ <ARG> <NAME>GstXvidEnc::container-frame-overhead</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Container Frame Overhead</NICK> <BLURB>[PASS2] Average container overhead per frame.</BLURB> @@ -151,7 +151,7 @@ <ARG> <NAME>GstXvidEnc::flow-control-strength</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Flow Control Strength</NICK> <BLURB>[PASS2] Overflow control strength per frame.</BLURB> @@ -211,7 +211,7 @@ <ARG> <NAME>GstXvidEnc::keyframe-reduction</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Keyframe Reduction</NICK> <BLURB>[PASS2] Keyframe size reduction in % of those within threshold.</BLURB> @@ -221,7 +221,7 @@ <ARG> <NAME>GstXvidEnc::keyframe-threshold</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Keyframe Threshold</NICK> <BLURB>[PASS2] Distance between keyframes not to be subject to reduction.</BLURB> @@ -281,7 +281,7 @@ <ARG> <NAME>GstXvidEnc::max-overflow-degradation</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Max Overflow Degradation</NICK> <BLURB>[PASS2] Amount in % that flow control can decrease frame size compared to ideal curve.</BLURB> @@ -291,7 +291,7 @@ <ARG> <NAME>GstXvidEnc::max-overflow-improvement</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Max Overflow Improvement</NICK> <BLURB>[PASS2] Amount in % that flow control can increase frame size compared to ideal curve.</BLURB> @@ -421,7 +421,7 @@ <ARG> <NAME>GstXvidEnc::reaction-delay-factor</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,100]</RANGE> +<RANGE>[G_MAXULONG,100]</RANGE> <FLAGS>rw</FLAGS> <NICK>Reaction Delay Factor</NICK> <BLURB>[CBR] Reaction delay factor.</BLURB> @@ -1731,7 +1731,7 @@ <ARG> <NAME>GstDvbSrc::diseqc-source</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,7]</RANGE> +<RANGE>[G_MAXULONG,7]</RANGE> <FLAGS>rw</FLAGS> <NICK>diseqc source</NICK> <BLURB>DISEqC selected source (-1 disabled) (DVB-S).</BLURB> @@ -17175,7 +17175,7 @@ <FLAGS>rw</FLAGS> <NICK>Path where to search for RealPlayer codecs</NICK> <BLURB>Path where to search for RealPlayer codecs.</BLURB> -<DEFAULT>"/usr/lib/win32:/usr/lib/codecs:/usr/local/RealPlayer/codecs:/usr/local/lib/win32:/usr/local/lib/codecs"</DEFAULT> +<DEFAULT>"/usr/lib64/win32:/usr/lib64/codecs:/usr/local/lib64/win32:/usr/local/lib64/codecs"</DEFAULT> </ARG> <ARG> @@ -17215,7 +17215,7 @@ <FLAGS>rw</FLAGS> <NICK>Path where to search for RealPlayer codecs</NICK> <BLURB>Path where to search for RealPlayer codecs.</BLURB> -<DEFAULT>"/usr/lib/win32:/usr/lib/codecs:/usr/local/RealPlayer/codecs:/usr/local/lib/win32:/usr/local/lib/codecs"</DEFAULT> +<DEFAULT>"/usr/lib64/win32:/usr/lib64/codecs:/usr/local/lib64/win32:/usr/local/lib64/codecs"</DEFAULT> </ARG> <ARG> @@ -17871,7 +17871,7 @@ <ARG> <NAME>DvbBaseBin::diseqc-source</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,7]</RANGE> +<RANGE>[G_MAXULONG,7]</RANGE> <FLAGS>rw</FLAGS> <NICK>diseqc source</NICK> <BLURB>DISEqC selected source (-1 disabled) (DVB-S).</BLURB> @@ -18019,6 +18019,16 @@ </ARG> <ARG> +<NAME>GstSDPDemux::redirect</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Redirect</NICK> +<BLURB>Sends a redirection message instead of using a custom session element.</BLURB> +<DEFAULT>TRUE</DEFAULT> +</ARG> + +<ARG> <NAME>GstSpeexResample::quality</NAME> <TYPE>gint</TYPE> <RANGE>[0,10]</RANGE> @@ -18099,6 +18109,16 @@ </ARG> <ARG> +<NAME>GstAudioParse::channel-positions</NAME> +<TYPE>GValueArray*</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Channel positions</NICK> +<BLURB>Channel positions used on the output.</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> <NAME>GstVideoParse::alpha-mask</NAME> <TYPE>gint</TYPE> <RANGE></RANGE> @@ -21916,11 +21936,11 @@ <ARG> <NAME>GstCeltEnc::bitrate</NAME> <TYPE>gint</TYPE> -<RANGE>[10,320]</RANGE> +<RANGE>[10000,320000]</RANGE> <FLAGS>rw</FLAGS> <NICK>Encoding Bit-rate</NICK> -<BLURB>Specify an encoding bit-rate (in Kbps).</BLURB> -<DEFAULT>64</DEFAULT> +<BLURB>Specify an encoding bit-rate (in bps).</BLURB> +<DEFAULT>64000</DEFAULT> </ARG> <ARG> @@ -21956,11 +21976,11 @@ <ARG> <NAME>GstCeltEnc::max-bitrate</NAME> <TYPE>gint</TYPE> -<RANGE>[10,320]</RANGE> +<RANGE>[10000,320000]</RANGE> <FLAGS>rw</FLAGS> <NICK>Maximum Encoding Bit-rate</NICK> -<BLURB>Specify a maximum encoding bit rate (in Kbps) for variable bit rate encoding.</BLURB> -<DEFAULT>64</DEFAULT> +<BLURB>Specify a maximum encoding bit rate (in bps) for variable bit rate encoding.</BLURB> +<DEFAULT>64000</DEFAULT> </ARG> <ARG> @@ -22066,7 +22086,7 @@ <ARG> <NAME>GstDCCPClientSrc::sockfd</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Socket fd</NICK> <BLURB>The socket file descriptor.</BLURB> @@ -22106,7 +22126,7 @@ <ARG> <NAME>GstDCCPServerSink::sockfd</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Socket fd</NICK> <BLURB>The client socket file descriptor.</BLURB> @@ -22166,7 +22186,7 @@ <ARG> <NAME>GstDCCPClientSink::sockfd</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Socket fd</NICK> <BLURB>The socket file descriptor.</BLURB> @@ -22226,7 +22246,7 @@ <ARG> <NAME>GstDCCPServerSrc::sockfd</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Socket fd</NICK> <BLURB>The client socket file descriptor.</BLURB> @@ -22286,7 +22306,7 @@ <ARG> <NAME>GstMpegTSDemux::program-number</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Program Number</NICK> <BLURB>Program number to demux for (-1 to ignore).</BLURB> @@ -22346,7 +22366,7 @@ <ARG> <NAME>GstPcapParse::dst-port</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,65535]</RANGE> +<RANGE>[G_MAXULONG,65535]</RANGE> <FLAGS>rw</FLAGS> <NICK>Destination port</NICK> <BLURB>Destination port to restrict to.</BLURB> @@ -22366,7 +22386,7 @@ <ARG> <NAME>GstPcapParse::src-port</NAME> <TYPE>gint</TYPE> -<RANGE>[-1,65535]</RANGE> +<RANGE>[G_MAXULONG,65535]</RANGE> <FLAGS>rw</FLAGS> <NICK>Source port</NICK> <BLURB>Source port to restrict to.</BLURB> @@ -22374,6 +22394,16 @@ </ARG> <ARG> +<NAME>GstPcapParse::caps</NAME> +<TYPE>GstCaps*</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Caps</NICK> +<BLURB>The caps of the source pad.</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> <NAME>MpegTsMux::m2ts-mode</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -22524,6 +22554,36 @@ </ARG> <ARG> +<NAME>GstMJ2Mux::fragment-duration</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Fragment duration</NICK> +<BLURB>Fragment durations in ms (produce a fragmented file if > 0).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstMJ2Mux::streamable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Streamable</NICK> +<BLURB>If set to true, the output should be as if it is to be streamed and hence no indexes written or duration written.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstMJ2Mux::trak-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Track timescale</NICK> +<BLURB>Timescale to use for the tracks (units per second, 0 is automatic).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> <NAME>GstGPPMux::faststart</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -22584,6 +22644,36 @@ </ARG> <ARG> +<NAME>GstGPPMux::fragment-duration</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Fragment duration</NICK> +<BLURB>Fragment durations in ms (produce a fragmented file if > 0).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstGPPMux::streamable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Streamable</NICK> +<BLURB>If set to true, the output should be as if it is to be streamed and hence no indexes written or duration written.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstGPPMux::trak-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Track timescale</NICK> +<BLURB>Timescale to use for the tracks (units per second, 0 is automatic).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> <NAME>GstMP4Mux::faststart</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -22644,6 +22734,36 @@ </ARG> <ARG> +<NAME>GstMP4Mux::fragment-duration</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Fragment duration</NICK> +<BLURB>Fragment durations in ms (produce a fragmented file if > 0).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstMP4Mux::streamable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Streamable</NICK> +<BLURB>If set to true, the output should be as if it is to be streamed and hence no indexes written or duration written.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstMP4Mux::trak-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Track timescale</NICK> +<BLURB>Timescale to use for the tracks (units per second, 0 is automatic).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> <NAME>GstQTMux::faststart</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -22704,6 +22824,36 @@ </ARG> <ARG> +<NAME>GstQTMux::fragment-duration</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Fragment duration</NICK> +<BLURB>Fragment durations in ms (produce a fragmented file if > 0).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstQTMux::streamable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Streamable</NICK> +<BLURB>If set to true, the output should be as if it is to be streamed and hence no indexes written or duration written.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstQTMux::trak-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Track timescale</NICK> +<BLURB>Timescale to use for the tracks (units per second, 0 is automatic).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> <NAME>GstAudioresample::filter-length</NAME> <TYPE>gint</TYPE> <RANGE>>= 0</RANGE> @@ -22895,12 +23045,12 @@ <ARG> <NAME>GstCameraBin::zoom</NAME> -<TYPE>gint</TYPE> -<RANGE>[100,1000]</RANGE> +<TYPE>gfloat</TYPE> +<RANGE>[1,10]</RANGE> <FLAGS>rw</FLAGS> <NICK>Zoom</NICK> -<BLURB>The zoom. 100 for 1x, 200 for 2x and so on.</BLURB> -<DEFAULT>100</DEFAULT> +<BLURB>The zoom. 1.0 for 1x, 2.0 for 2x and so on.</BLURB> +<DEFAULT>1</DEFAULT> </ARG> <ARG> @@ -23104,6 +23254,36 @@ </ARG> <ARG> +<NAME>GstCameraBin::idle</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>r</FLAGS> +<NICK>Indicates if data is being processed (recording/capturing/saving)</NICK> +<BLURB>Indicates if data is being processed (recording/capturing/saving).</BLURB> +<DEFAULT>TRUE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstCameraBin::preview-source-filter</NAME> +<TYPE>GstElement*</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>preview source filter element</NICK> +<BLURB>Optional preview source filter GStreamer element.</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> +<NAME>GstCameraBin::ready-for-capture</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>r</FLAGS> +<NICK>Indicates if preparing a new capture is possible</NICK> +<BLURB>Indicates if preparing a new capture is possible.</BLURB> +<DEFAULT>TRUE</DEFAULT> +</ARG> + +<ARG> <NAME>GstDTMFSrc::interval</NAME> <TYPE>guint</TYPE> <RANGE>[10,50]</RANGE> @@ -23166,7 +23346,7 @@ <ARG> <NAME>GstRTPDTMFSrc::seqnum-offset</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Sequence number Offset</NICK> <BLURB>Offset to add to all outgoing seqnum (-1 = random).</BLURB> @@ -23196,7 +23376,7 @@ <ARG> <NAME>GstRTPDTMFSrc::timestamp-offset</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Timestamp Offset</NICK> <BLURB>Offset to add to all outgoing timestamps (-1 = random).</BLURB> @@ -23246,7 +23426,7 @@ <ARG> <NAME>GstRTPMux::seqnum-offset</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Sequence number Offset</NICK> <BLURB>Offset to add to all outgoing seqnum (-1 = random).</BLURB> @@ -23266,7 +23446,7 @@ <ARG> <NAME>GstRTPMux::timestamp-offset</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>Timestamp Offset</NICK> <BLURB>Offset to add to all outgoing timestamps (-1 = random).</BLURB> @@ -26410,7 +26590,7 @@ <FLAGS>rw</FLAGS> <NICK>physics</NICK> <BLURB>water density: from 1 to 4.</BLURB> -<DEFAULT>8.20075e-304</DEFAULT> +<DEFAULT>0</DEFAULT> </ARG> <ARG> @@ -26450,7 +26630,7 @@ <FLAGS>rw</FLAGS> <NICK>splash</NICK> <BLURB>make a big splash in the center.</BLURB> -<DEFAULT>0</DEFAULT> +<DEFAULT>7.7486e-304</DEFAULT> </ARG> <ARG> @@ -26460,7 +26640,7 @@ <FLAGS>rw</FLAGS> <NICK>splash</NICK> <BLURB>make a big splash in the center.</BLURB> -<DEFAULT>4.77773e-299</DEFAULT> +<DEFAULT>0</DEFAULT> </ARG> <ARG> @@ -26490,7 +26670,7 @@ <FLAGS>rw</FLAGS> <NICK>ratiox</NICK> <BLURB>x-ratio.</BLURB> -<DEFAULT>8.0843e+44</DEFAULT> +<DEFAULT>8.55111e-317</DEFAULT> </ARG> <ARG> @@ -26500,7 +26680,7 @@ <FLAGS>rw</FLAGS> <NICK>ratioy</NICK> <BLURB>y-ratio.</BLURB> -<DEFAULT>9.3207e+68</DEFAULT> +<DEFAULT>2.28459e-26</DEFAULT> </ARG> <ARG> @@ -26510,7 +26690,7 @@ <FLAGS>rw</FLAGS> <NICK>DelayTime</NICK> <BLURB>the delay time.</BLURB> -<DEFAULT>1.18576e-322</DEFAULT> +<DEFAULT>0</DEFAULT> </ARG> <ARG> @@ -26560,7 +26740,7 @@ <FLAGS>rw</FLAGS> <NICK>Color-R</NICK> <BLURB>the color of the image.</BLURB> -<DEFAULT>0</DEFAULT> +<DEFAULT>2.49965e-38</DEFAULT> </ARG> <ARG> @@ -26890,7 +27070,7 @@ <FLAGS>rw</FLAGS> <NICK>lredscale</NICK> <BLURB>multiplier for downscaling non-edge brightness.</BLURB> -<DEFAULT>0</DEFAULT> +<DEFAULT>3.40216e-111</DEFAULT> </ARG> <ARG> @@ -26910,7 +27090,7 @@ <FLAGS>rw</FLAGS> <NICK>lupscale</NICK> <BLURB>multiplier for upscaling edge brightness.</BLURB> -<DEFAULT>1.34037e-317</DEFAULT> +<DEFAULT>7.54985e-96</DEFAULT> </ARG> <ARG> @@ -27080,7 +27260,7 @@ <FLAGS>rw</FLAGS> <NICK>blend</NICK> <BLURB>blend factor.</BLURB> -<DEFAULT>7.75038e-304</DEFAULT> +<DEFAULT>-5.83169e+303</DEFAULT> </ARG> <ARG> @@ -27090,7 +27270,7 @@ <FLAGS>rw</FLAGS> <NICK>fader</NICK> <BLURB>the fader position.</BLURB> -<DEFAULT>5.12056e+199</DEFAULT> +<DEFAULT>1.20296e-314</DEFAULT> </ARG> <ARG> @@ -27270,7 +27450,7 @@ <FLAGS>rw</FLAGS> <NICK>HSync</NICK> <BLURB>the hsync offset.</BLURB> -<DEFAULT>2.07558e-316</DEFAULT> +<DEFAULT>2.98023e-08</DEFAULT> </ARG> <ARG> @@ -43118,12 +43298,22 @@ <TYPE>gboolean</TYPE> <RANGE></RANGE> <FLAGS>rw</FLAGS> -<NICK>mesage</NICK> +<NICK>message</NICK> <BLURB>Post a barcode message for each detected code.</BLURB> <DEFAULT>TRUE</DEFAULT> </ARG> <ARG> +<NAME>GstZBar::cache</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>cache</NICK> +<BLURB>Enable or disable the inter-image result cache.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> <NAME>GstQTMoovRecover::broken-input</NAME> <TYPE>gchar*</TYPE> <RANGE></RANGE> @@ -45754,6 +45944,36 @@ </ARG> <ARG> +<NAME>GstPhotography::image-preview-supported-caps</NAME> +<TYPE>GstCaps*</TYPE> +<RANGE></RANGE> +<FLAGS>r</FLAGS> +<NICK>Image preview supported caps</NICK> +<BLURB>Caps describing supported image preview formats.</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> +<NAME>GstPhotography::noise-reduction</NAME> +<TYPE>GstPhotographyNoiseReduction</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Noise Reduction settings</NICK> +<BLURB>Which noise reduction modes are enabled (0 = disabled).</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> +<NAME>GstPhotography::zoom</NAME> +<TYPE>gfloat</TYPE> +<RANGE>[1,10]</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Zoom property</NICK> +<BLURB>How much the resulted image will be zoomed.</BLURB> +<DEFAULT>1</DEFAULT> +</ARG> + +<ARG> <NAME>GstWaterRipple::amplitude</NAME> <TYPE>gdouble</TYPE> <RANGE></RANGE> @@ -46114,6 +46334,36 @@ </ARG> <ARG> +<NAME>GstSolarize::end</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>End</NICK> +<BLURB>End parameter.</BLURB> +<DEFAULT>185</DEFAULT> +</ARG> + +<ARG> +<NAME>GstSolarize::start</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Start</NICK> +<BLURB>Start parameter.</BLURB> +<DEFAULT>50</DEFAULT> +</ARG> + +<ARG> +<NAME>GstSolarize::threshold</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Threshold</NICK> +<BLURB>Threshold parameter.</BLURB> +<DEFAULT>127</DEFAULT> +</ARG> + +<ARG> <NAME>GstExclusion::silent</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -46124,6 +46374,16 @@ </ARG> <ARG> +<NAME>GstExclusion::factor</NAME> +<TYPE>guint</TYPE> +<RANGE><= 175</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Factor</NICK> +<BLURB>Exclusion factor parameter.</BLURB> +<DEFAULT>175</DEFAULT> +</ARG> + +<ARG> <NAME>GstDodge::silent</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -46144,6 +46404,16 @@ </ARG> <ARG> +<NAME>GstDilate::erode</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Erode</NICK> +<BLURB>Erode parameter.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> <NAME>GstChromium::silent</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -46154,6 +46424,26 @@ </ARG> <ARG> +<NAME>GstChromium::edge-a</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Edge A</NICK> +<BLURB>First edge parameter.</BLURB> +<DEFAULT>200</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChromium::edge-b</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Edge B</NICK> +<BLURB>Second edge parameter.</BLURB> +<DEFAULT>1</DEFAULT> +</ARG> + +<ARG> <NAME>GstBurn::silent</NAME> <TYPE>gboolean</TYPE> <RANGE></RANGE> @@ -46164,6 +46454,16 @@ </ARG> <ARG> +<NAME>GstBurn::adjustment</NAME> +<TYPE>guint</TYPE> +<RANGE><= 256</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Adjustment</NICK> +<BLURB>Adjustment parameter.</BLURB> +<DEFAULT>175</DEFAULT> +</ARG> + +<ARG> <NAME>GaussBlur::sigma</NAME> <TYPE>gdouble</TYPE> <RANGE>[-20,20]</RANGE> @@ -46304,6 +46604,36 @@ </ARG> <ARG> +<NAME>GstInterlace::allow-rff</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Allow Repeat-First-Field flags</NICK> +<BLURB>Allow generation of buffers with RFF flag set, i.e., duration of 3 fields.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstInterlace::field-pattern</NAME> +<TYPE>GstInterlacePattern</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Field pattern</NICK> +<BLURB>The output field pattern.</BLURB> +<DEFAULT>2:3</DEFAULT> +</ARG> + +<ARG> +<NAME>GstInterlace::pattern-offset</NAME> +<TYPE>guint</TYPE> +<RANGE><= 12</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Pattern offset</NICK> +<BLURB>The initial field pattern offset. Counts from 0.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> <NAME>Gsttextwrite::colorB</NAME> <TYPE>gint</TYPE> <RANGE>[0,255]</RANGE> @@ -46484,6 +46814,56 @@ </ARG> <ARG> +<NAME>Gstfacedetect::flags</NAME> +<TYPE>GstOpencvFaceDetectFlags</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Flags</NICK> +<BLURB>Flags to cvHaarDetectObjects.</BLURB> +<DEFAULT></DEFAULT> +</ARG> + +<ARG> +<NAME>Gstfacedetect::min-neighbors</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Mininum neighbors</NICK> +<BLURB>Minimum number (minus 1) of neighbor rectangles that makes up an object.</BLURB> +<DEFAULT>3</DEFAULT> +</ARG> + +<ARG> +<NAME>Gstfacedetect::min-size-height</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Minimum size height</NICK> +<BLURB>Minimum window height size.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>Gstfacedetect::min-size-width</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Minimum size width</NICK> +<BLURB>Minimum window width size.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>Gstfacedetect::scale-factor</NAME> +<TYPE>gdouble</TYPE> +<RANGE>[1.1,10]</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Scale factor</NICK> +<BLURB>Factor by which the windows is scaled after each scan.</BLURB> +<DEFAULT>1.1</DEFAULT> +</ARG> + +<ARG> <NAME>Gstfaceblur::profile</NAME> <TYPE>gchar*</TYPE> <RANGE></RANGE> @@ -46546,7 +46926,7 @@ <ARG> <NAME>GstCvSobel::x-order</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>x order</NICK> <BLURB>Order of the derivative x.</BLURB> @@ -46556,7 +46936,7 @@ <ARG> <NAME>GstCvSobel::y-order</NAME> <TYPE>gint</TYPE> -<RANGE>>= -1</RANGE> +<RANGE>>= G_MAXULONG</RANGE> <FLAGS>rw</FLAGS> <NICK>y order</NICK> <BLURB>Order of the derivative y.</BLURB> @@ -46623,3 +47003,263 @@ <DEFAULT>3</DEFAULT> </ARG> +<ARG> +<NAME>GstRotate::angle</NAME> +<TYPE>gdouble</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>angle</NICK> +<BLURB>Angle at which the arc starts in radians.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstJP2kDecimator::max-decomposition-levels</NAME> +<TYPE>gint</TYPE> +<RANGE>[G_MAXULONG,32]</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Maximum Number of Decomposition Levels</NICK> +<BLURB>Maximum number of decomposition levels to keep (-1 == all).</BLURB> +<DEFAULT>-1</DEFAULT> +</ARG> + +<ARG> +<NAME>GstJP2kDecimator::max-layers</NAME> +<TYPE>gint</TYPE> +<RANGE>[0,65535]</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Maximum Number of Layers</NICK> +<BLURB>Maximum number of layers to keep (0 == all).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::faststart</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Format file to faststart</NICK> +<BLURB>If the file should be formated for faststart (headers first). .</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::faststart-file</NAME> +<TYPE>gchar*</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>File to use for storing buffers</NICK> +<BLURB>File that will be used temporarily to store data from the stream when creating a faststart file. If null a filepath will be created automatically.</BLURB> +<DEFAULT>NULL</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::fragment-duration</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Fragment duration</NICK> +<BLURB>Fragment durations in ms (produce a fragmented file if > 0).</BLURB> +<DEFAULT>2000</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::large-file</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Support for large files</NICK> +<BLURB>Uses 64bits to some fields instead of 32bits, providing support for large files.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::moov-recovery-file</NAME> +<TYPE>gchar*</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>File to store data for posterior moov atom recovery</NICK> +<BLURB>File to be used to store data for moov atom making movie file recovery possible in case of a crash during muxing. Null for disabled. (Experimental).</BLURB> +<DEFAULT>NULL</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::movie-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE>>= 1</RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Movie timescale</NICK> +<BLURB>Timescale to use in the movie (units per second).</BLURB> +<DEFAULT>1000</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::presentation-time</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Include presentation-time info</NICK> +<BLURB>Calculate and include presentation/composition time (in addition to decoding time) (use with caution).</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::streamable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Streamable</NICK> +<BLURB>If set to true, the output should be as if it is to be streamed and hence no indexes written or duration written.</BLURB> +<DEFAULT>FALSE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstISMLMux::trak-timescale</NAME> +<TYPE>guint</TYPE> +<RANGE></RANGE> +<FLAGS>rwx</FLAGS> +<NICK>Track timescale</NICK> +<BLURB>Timescale to use for the tracks (units per second, 0 is automatic).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChopMyData::max-size</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 1</RANGE> +<FLAGS>rw</FLAGS> +<NICK>max-size</NICK> +<BLURB>Maximum size of outgoing buffers.</BLURB> +<DEFAULT>4096</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChopMyData::min-size</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 1</RANGE> +<FLAGS>rw</FLAGS> +<NICK>max-size</NICK> +<BLURB>Minimum size of outgoing buffers.</BLURB> +<DEFAULT>1</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChopMyData::step-size</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 1</RANGE> +<FLAGS>rw</FLAGS> +<NICK>step-size</NICK> +<BLURB>Step increment for random buffer sizes.</BLURB> +<DEFAULT>4096</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChromaHold::target-b</NAME> +<TYPE>guint</TYPE> +<RANGE><= 255</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Target Blue</NICK> +<BLURB>The Blue target.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChromaHold::target-g</NAME> +<TYPE>guint</TYPE> +<RANGE><= 255</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Target Green</NICK> +<BLURB>The Green target.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChromaHold::target-r</NAME> +<TYPE>guint</TYPE> +<RANGE><= 255</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Target Red</NICK> +<BLURB>The Red target.</BLURB> +<DEFAULT>255</DEFAULT> +</ARG> + +<ARG> +<NAME>GstChromaHold::tolerance</NAME> +<TYPE>guint</TYPE> +<RANGE><= 180</RANGE> +<FLAGS>rw</FLAGS> +<NICK>Tolerance</NICK> +<BLURB>Tolerance for the target color.</BLURB> +<DEFAULT>30</DEFAULT> +</ARG> + +<ARG> +<NAME>GstDVBSubOverlay::enable</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>Enable</NICK> +<BLURB>Enable rendering of subtitles.</BLURB> +<DEFAULT>TRUE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstDVBSubOverlay::max-page-timeout</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>max-page-timeout</NICK> +<BLURB>Limit maximum display time of a subtitle page (0 - disabled, value in seconds).</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstRsvgOverlay::data</NAME> +<TYPE>gchar*</TYPE> +<RANGE></RANGE> +<FLAGS>w</FLAGS> +<NICK>data</NICK> +<BLURB>SVG data.</BLURB> +<DEFAULT>""</DEFAULT> +</ARG> + +<ARG> +<NAME>GstRsvgOverlay::fit-to-frame</NAME> +<TYPE>gboolean</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>fit to frame</NICK> +<BLURB>Fit the SVG to fill the whole frame.</BLURB> +<DEFAULT>TRUE</DEFAULT> +</ARG> + +<ARG> +<NAME>GstRsvgOverlay::location</NAME> +<TYPE>gchar*</TYPE> +<RANGE></RANGE> +<FLAGS>w</FLAGS> +<NICK>location</NICK> +<BLURB>SVG file location.</BLURB> +<DEFAULT>""</DEFAULT> +</ARG> + +<ARG> +<NAME>GstRsvgOverlay::x</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>x offset</NICK> +<BLURB>Specify an x offset.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + +<ARG> +<NAME>GstRsvgOverlay::y</NAME> +<TYPE>gint</TYPE> +<RANGE>>= 0</RANGE> +<FLAGS>rw</FLAGS> +<NICK>y offset</NICK> +<BLURB>Specify a y offset.</BLURB> +<DEFAULT>0</DEFAULT> +</ARG> + diff --git a/docs/plugins/gst-plugins-bad-plugins.hierarchy b/docs/plugins/gst-plugins-bad-plugins.hierarchy index c8888c290..d377a64fa 100644 --- a/docs/plugins/gst-plugins-bad-plugins.hierarchy +++ b/docs/plugins/gst-plugins-bad-plugins.hierarchy @@ -3,11 +3,14 @@ GObject GstObject GstBus GstClock + GstSystemClock + GstAudioClock GstElement ADPCMDec ADPCMEnc GstAiffMux GstAiffParse + GstAmrWbEnc GstAsfMux GstAsfParse GstAssRender @@ -15,37 +18,58 @@ GObject GstAacParse GstAc3Parse GstAmrParse + GstDcaParse GstFlacParse - GstBaseMetadata - GstMetadataDemux - GstMetadataMux + GstMpegAudioParse GstBaseRTPDepayload GstRtpDTMFDepay GstBaseRTPPayload GstRtpAsfPay GstBaseSink - AlsaSPDIFSink + GstBaseAudioSink + GstAudioSink + GstApExSink + GstNasSink + GstSDLAudioSink + GstJackAudioSink GstChecksumSink GstDCCPClientSink GstDCCPServerSink GstFBDEVSink + GstSFSink GstShmSink GstVideoSink GstDfbVideoSink + GstSDLVideoSink + VdpSink GstBaseSrc GstDTMFSrc GstDataURISrc GstPushSrc + GstBaseAudioSrc + GstJackAudioSrc GstDCCPClientSrc GstDCCPServerSrc + GstDc1394 GstDvbSrc GstMMS + GstMythtvSrc + GstNeonhttpSrc GstRfbSrc GstShmSrc GstVCDSrc + frei0r-src-ising0r + frei0r-src-lissajous0r + frei0r-src-nois0r + frei0r-src-onecol0r + frei0r-src-partik0l + frei0r-src-plasma GstRTPDTMFSrc + GstSFSrc GstBaseTransform GstAudioFilter + GstBPMDetect + GstOFA GstStereo GstBayer2RGB GstCogScale @@ -62,8 +86,10 @@ GObject GstVideoFilter GaussBlur GstBurn + GstChromaHold GstChromium GstColorEffects + GstCsp GstDilate GstDodge GstExclusion @@ -82,6 +108,7 @@ GObject GstFisheye GstMarble GstMirror + GstRotate GstSquare GstOpencvVideoFilter GstCvDilateErode @@ -92,20 +119,97 @@ GObject GstCvSmooth GstCvSobel Gstfacedetect + GstRsvgOverlay GstSolarize GstVideoAnalyse GstVideoDetect GstVideoMark + GstZBar + frei0r-filter-3-point-color-balance + frei0r-filter-3dflippo + frei0r-filter-b + frei0r-filter-baltan + frei0r-filter-bluescreen0r + frei0r-filter-brightness + frei0r-filter-bw0r + frei0r-filter-cartoon + frei0r-filter-color-distance + frei0r-filter-contrast0r + frei0r-filter-curves + frei0r-filter-dealygrab + frei0r-filter-delay0r + frei0r-filter-distort0r + frei0r-filter-edgeglow + frei0r-filter-equaliz0r + frei0r-filter-flippo + frei0r-filter-g + frei0r-filter-gamma + frei0r-filter-glow + frei0r-filter-hueshift0r + frei0r-filter-invert0r + frei0r-filter-k-means-clustering + frei0r-filter-lens-correction + frei0r-filter-letterb0xed + frei0r-filter-levels + frei0r-filter-luminance + frei0r-filter-mask0mate + frei0r-filter-nervous + frei0r-filter-nosync0r + frei0r-filter-perspective + frei0r-filter-pixeliz0r + frei0r-filter-primaries + frei0r-filter-r + frei0r-filter-rgb-parade + frei0r-filter-saturat0r + frei0r-filter-scale0tilt + frei0r-filter-scanline0r + frei0r-filter-sobel + frei0r-filter-squareblur + frei0r-filter-tehroxx0r + frei0r-filter-threelay0r + frei0r-filter-threshold0r + frei0r-filter-tint0r + frei0r-filter-transparency + frei0r-filter-twolay0r + frei0r-filter-vectorscope + frei0r-filter-vertigo + frei0r-filter-water + frei0r-filter-white-balance GstVideoMaxRate + GstBaseVideoCodec + GstBaseVideoDecoder + GstSchroDec + GstVP8Dec + GstBaseVideoEncoder + GstDiracEnc + GstSchroEnc + GstVP8Enc + GstBaseVideoParse + GstSchroParse GstBin DvbBaseBin GstAutoConvert + GstAutoVideoConvert GstFPSDisplaySink + GstGSettingsSwitchSink + GstGSettingsAudioSink + GstGSettingsVideoSink + GstGSettingsSwitchSrc + GstGSettingsAudioSrc + GstGSettingsVideoSrc GstPipeline GstCameraBin GstQTMoovRecover GstSDPDemux + RsnDvdBin + GstBz2dec + GstBz2enc + GstCDAudio GstCDXAParse + GstCeltDec + GstCeltEnc + GstChopMyData + GstDVBSubOverlay GstDVDSpu GstDtsDec GstFaac @@ -113,34 +217,46 @@ GObject GstFestival GstFreeze GstGPPMux + GstGSMDec + GstGSMEnc GstH264Parse + GstISMLMux GstId3BaseMux GstId3Mux GstInputSelector GstInterlace GstInvtelecine GstIvfParse + GstJP2kDecimator GstJifMux GstJpegParse GstKateDec GstKateEnc GstKateParse GstKateTag + GstKateTiger GstLiveAdder GstMJ2Mux GstMP4Mux GstMSE GstMXFDemux GstMXFMux + GstMimDec + GstMimEnc + GstModPlug + GstMpeg2enc GstMpeg4VParse GstMpegPSDemux GstMpegTSDemux + GstMplex + GstMusepackDec GstMveDemux GstMveMux GstNsfDec GstNuvDemux GstOutputSelector GstPcapParse + GstPitch GstPnmdec GstPnmenc GstQTMux @@ -156,18 +272,170 @@ GObject GstSegmentClip GstAudioSegmentClip GstVideoSegmentClip + GstSignalProcessor + ladspa-Chorus1 + ladspa-Chorus2 + ladspa-G2reverb + ladspa-Mvchpf-1 + ladspa-Mvclpf-1 + ladspa-Mvclpf-2 + ladspa-Mvclpf-3 + ladspa-Mvclpf-4 + ladspa-Phaser1 + ladspa-Phaser1+LFO + ladspa-TripleChorus + ladspa-alias + ladspa-allpass-c + ladspa-allpass-l + ladspa-allpass-n + ladspa-amPitchshift + ladspa-amp + ladspa-amp-mono + ladspa-amp-stereo + ladspa-analogueOsc + ladspa-artificialLatency + ladspa-autoPhaser + ladspa-bandpass-a-iir + ladspa-bandpass-iir + ladspa-bodeShifter + ladspa-bodeShifterCV + ladspa-butthigh-iir + ladspa-buttlow-iir + ladspa-bwxover-iir + ladspa-chebstortion + ladspa-comb + ladspa-comb-c + ladspa-comb-l + ladspa-comb-n + ladspa-combSplitter + ladspa-const + ladspa-crossoverDist + ladspa-dcRemove + ladspa-decay + ladspa-decimator + ladspa-declip + ladspa-delay-5s + ladspa-delay-c + ladspa-delay-l + ladspa-delay-n + ladspa-delayorama + ladspa-diode + ladspa-divider + ladspa-dj-eq + ladspa-dj-eq-mono + ladspa-djFlanger + ladspa-dysonCompress + ladspa-fadDelay + ladspa-fastLookaheadLimiter + ladspa-flanger + ladspa-fmOsc + ladspa-foldover + ladspa-fourByFourPole + ladspa-foverdrive + ladspa-freqTracker + ladspa-gate + ladspa-giantFlange + ladspa-gong + ladspa-gongBeater + ladspa-gsm + ladspa-gverb + ladspa-hardLimiter + ladspa-harmonicGen + ladspa-hermesFilter + ladspa-highpass-iir + ladspa-hilbert + ladspa-hpf + ladspa-imp + ladspa-impulse-fc + ladspa-inv + ladspa-karaoke + ladspa-lcrDelay + ladspa-lfoPhaser + ladspa-lowpass-iir + ladspa-lpf + ladspa-lsFilter + ladspa-matrixMSSt + ladspa-matrixSpatialiser + ladspa-matrixStMS + ladspa-mbeq + ladspa-modDelay + ladspa-multivoiceChorus + ladspa-noise-white + ladspa-notch-iir + ladspa-pitchScale + ladspa-pitchScaleHQ + ladspa-plate + ladspa-pointerCastDistortion + ladspa-rateShifter + ladspa-retroFlange + ladspa-revdelay + ladspa-ringmod-1i1o1l + ladspa-ringmod-2i1o + ladspa-satanMaximiser + ladspa-sc1 + ladspa-sc2 + ladspa-sc3 + ladspa-sc4 + ladspa-sc4m + ladspa-se4 + ladspa-shaper + ladspa-sifter + ladspa-sinCos + ladspa-sine-faaa + ladspa-sine-faac + ladspa-sine-fcaa + ladspa-sine-fcac + ladspa-singlePara + ladspa-sinusWavewrapper + ladspa-smoothDecimate + ladspa-split + ladspa-stepMuxer + ladspa-surroundEncoder + ladspa-svf + ladspa-tap-autopan + ladspa-tap-chorusflanger + ladspa-tap-deesser + ladspa-tap-doubler + ladspa-tap-dynamics-m + ladspa-tap-dynamics-st + ladspa-tap-equalizer + ladspa-tap-equalizer-bw + ladspa-tap-limiter + ladspa-tap-pinknoise + ladspa-tap-pitch + ladspa-tap-reflector + ladspa-tap-reverb + ladspa-tap-rotspeak + ladspa-tap-sigmoid + ladspa-tap-stereo-echo + ladspa-tap-tremolo + ladspa-tap-tubewarmth + ladspa-tap-vibrato + ladspa-tapeDelay + ladspa-transient + ladspa-triplePara + ladspa-valve + ladspa-valveRect + ladspa-vynil + ladspa-waveTerrain + ladspa-xfade + ladspa-xfade4 + ladspa-zm1 GstSirenDec GstSirenEnc GstSpeed GstSrtEnc + GstTRM GstTemplateMatch GstTtaDec GstTtaParse GstVMncDec - GstValve GstVcdParse + GstVdpVideoPostProcess + GstWildmidi GstXvidDec GstXvidEnc + GstY4mDec Gstedgedetect Gstfaceblur Gstpyramidsegment @@ -176,8 +444,46 @@ GObject MpegTSParse MpegTsMux MpegVideoParse + SatBaseVideoDecoder + GstVdpDecoder + GstVdpH264Dec + GstVdpMpeg4Dec + GstVdpMpegDec + frei0r-mixer-addition + frei0r-mixer-alpha-injection + frei0r-mixer-alphaatop + frei0r-mixer-alphain + frei0r-mixer-alphaout + frei0r-mixer-alphaover + frei0r-mixer-alphaxor + frei0r-mixer-blend + frei0r-mixer-burn + frei0r-mixer-color-only + frei0r-mixer-composition + frei0r-mixer-darken + frei0r-mixer-difference + frei0r-mixer-divide + frei0r-mixer-dodge + frei0r-mixer-grain-extract + frei0r-mixer-grain-merge + frei0r-mixer-hardlight + frei0r-mixer-hue + frei0r-mixer-lighten + frei0r-mixer-multiply + frei0r-mixer-overlay + frei0r-mixer-rgb + frei0r-mixer-saturation + frei0r-mixer-screen + frei0r-mixer-softlight + frei0r-mixer-subtract + frei0r-mixer-uv-map + frei0r-mixer-value + frei0r-mixer-xfade0r GstPad + GstVdpOutputSrcPad + GstVdpVideoSrcPad GstPadTemplate + GstSignalProcessorPadTemplate GstPlugin GstPluginFeature GstElementFactory @@ -185,9 +491,13 @@ GObject GstTypeFindFactory GstRegistry GstRingBuffer + GstAudioSinkRingBuffer + GstJackAudioSinkRingBuffer + GstJackAudioSrcRingBuffer GstTask GstTaskPool GstSignalObject + GstVdpDevice MpegTsPatInfo MpegTsPmtInfo GInterface @@ -195,9 +505,11 @@ GInterface GstChildProxy GstColorBalance GstImplementsInterface + GstMixer GstNavigation GstPhotography GstPreset GstTagSetter GstURIHandler + GstXOverlay MXFDescriptiveMetadataFrameworkInterface diff --git a/docs/plugins/gst-plugins-bad-plugins.interfaces b/docs/plugins/gst-plugins-bad-plugins.interfaces index a135859ac..bfa93f055 100644 --- a/docs/plugins/gst-plugins-bad-plugins.interfaces +++ b/docs/plugins/gst-plugins-bad-plugins.interfaces @@ -1,25 +1,44 @@ GstBin GstChildProxy GstPipeline GstChildProxy +GstCameraBin GstChildProxy GstImplementsInterface GstColorBalance GstTagSetter GstQTMoovRecover GstChildProxy -GstCameraBin GstChildProxy GstImplementsInterface GstColorBalance GstTagSetter GstPhotography +GstGSettingsSwitchSink GstChildProxy +GstGSettingsAudioSink GstChildProxy +GstGSettingsVideoSink GstChildProxy +GstGSettingsSwitchSrc GstChildProxy +GstGSettingsAudioSrc GstChildProxy +GstGSettingsVideoSrc GstChildProxy +RsnDvdBin GstChildProxy GstURIHandler DvbBaseBin GstChildProxy GstURIHandler -GstSDPDemux GstChildProxy GstAutoConvert GstChildProxy +GstAutoVideoConvert GstChildProxy +GstSDPDemux GstChildProxy GstFPSDisplaySink GstChildProxy -GstXvidEnc GstPreset +GstMpeg2enc GstPreset +GstSDLVideoSink GstImplementsInterface GstXOverlay GstNavigation GstDfbVideoSink GstImplementsInterface GstNavigation GstColorBalance -GstKateEnc GstTagSetter -GstKateTag GstTagSetter +VdpSink GstImplementsInterface GstNavigation GstXOverlay +GstApExSink GstImplementsInterface GstMixer +GstCeltEnc GstTagSetter GstPreset +GstCDAudio GstURIHandler +GstMythtvSrc GstURIHandler GstMMS GstURIHandler +GstNeonhttpSrc GstURIHandler GstVCDSrc GstURIHandler GstDataURISrc GstURIHandler -GstMetadataMux GstTagSetter +GstAmrWbEnc GstPreset GstFaac GstPreset -GstAsfMux GstTagSetter +GstXvidEnc GstPreset +GstDiracEnc GstPreset +GstVP8Enc GstTagSetter GstPreset +GstKateEnc GstTagSetter +GstKateTag GstTagSetter +GstJifMux GstTagSetter GstId3BaseMux GstTagSetter GstId3Mux GstTagSetter -GstJifMux GstTagSetter GstQTMux GstTagSetter GstMP4Mux GstTagSetter +GstISMLMux GstTagSetter GstGPPMux GstTagSetter GstMJ2Mux GstTagSetter +GstAsfMux GstTagSetter diff --git a/docs/plugins/gst-plugins-bad-plugins.prerequisites b/docs/plugins/gst-plugins-bad-plugins.prerequisites index e9203c176..f55006018 100644 --- a/docs/plugins/gst-plugins-bad-plugins.prerequisites +++ b/docs/plugins/gst-plugins-bad-plugins.prerequisites @@ -1,6 +1,8 @@ GstChildProxy GstObject GstImplementsInterface GstElement -GstColorBalance GstImplementsInterface GstElement +GstXOverlay GstImplementsInterface GstElement GstTagSetter GstElement -GstPhotography GstImplementsInterface GstElement +GstColorBalance GstImplementsInterface GstElement +GstMixer GstImplementsInterface GstElement MXFDescriptiveMetadataFrameworkInterface MXFDescriptiveMetadata +GstPhotography GstImplementsInterface GstElement diff --git a/docs/plugins/inspect/plugin-valve.xml b/docs/plugins/inspect/plugin-valve.xml deleted file mode 100644 index c67f8cc6b..000000000 --- a/docs/plugins/inspect/plugin-valve.xml +++ /dev/null @@ -1,34 +0,0 @@ -<plugin> - <name>valve</name> - <description>Valve</description> - <filename>../../gst/valve/.libs/libgstvalve.so</filename> - <basename>libgstvalve.so</basename> - <version>0.10.20.1</version> - <license>LGPL</license> - <source>gst-plugins-bad</source> - <package>GStreamer Bad Plug-ins git</package> - <origin>Unknown package origin</origin> - <elements> - <element> - <name>valve</name> - <longname>Valve element</longname> - <class>Filter</class> - <description>This element drops all packets when drop is TRUE</description> - <author>Olivier Crete <olivier.crete@collabora.co.uk></author> - <pads> - <caps> - <name>sink</name> - <direction>sink</direction> - <presence>always</presence> - <details>ANY</details> - </caps> - <caps> - <name>src</name> - <direction>source</direction> - <presence>always</presence> - <details>ANY</details> - </caps> - </pads> - </element> - </elements> -</plugin>
\ No newline at end of file diff --git a/gst-plugins-bad.spec.in b/gst-plugins-bad.spec.in index 8da39aae5..02495e184 100644 --- a/gst-plugins-bad.spec.in +++ b/gst-plugins-bad.spec.in @@ -111,7 +111,6 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gstreamer-%{majorminor}/libgstmxf.so %{_libdir}/gstreamer-%{majorminor}/libgstvmnc.so %{_libdir}/gstreamer-%{majorminor}/libgstvideosignal.so -%{_libdir}/gstreamer-%{majorminor}/libgstvalve.so %{_libdir}/gstreamer-%{majorminor}/libgstautoconvert.so %{_libdir}/gstreamer-%{majorminor}/libgstdtmf.so %{_libdir}/gstreamer-%{majorminor}/libgstliveadder.so diff --git a/gst/valve/Makefile.am b/gst/valve/Makefile.am deleted file mode 100644 index 4662a13b5..000000000 --- a/gst/valve/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -plugin_LTLIBRARIES = libgstvalve.la - -libgstvalve_la_SOURCES = gstvalve.c gstvalve.h - -libgstvalve_la_CFLAGS = $(GST_CFLAGS) -libgstvalve_la_LIBADD = $(GST_LIBS) -libgstvalve_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -libgstvalve_la_LIBTOOLFLAGS = --tag=disable-static - diff --git a/gst/valve/gstvalve.c b/gst/valve/gstvalve.c deleted file mode 100644 index 977a4afa0..000000000 --- a/gst/valve/gstvalve.c +++ /dev/null @@ -1,284 +0,0 @@ -/* GStreamer - * Copyright 2007-2009 Collabora Ltd - * @author: Olivier Crete <olivier.crete@collabora.co.uk> - * Copyright 2007-2009 Nokia Corporation - * - * 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. - * - */ - -/** - * SECTION:element-valve - * - * The valve is a simple element that drops buffers when the #GstValve::drop - * property is set to %TRUE and lets then through otherwise. - * - * Any downstream error received while the #GstValve::drop property is %FALSE - * is ignored. So downstream element can be set to %GST_STATE_NULL and removed, - * without using pad blocking. - * - * Last reviewed on 2008-02-10 (0.10.11) - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "gstvalve.h" - -#include <string.h> - -GST_DEBUG_CATEGORY (valve_debug); -#define GST_CAT_DEFAULT (valve_debug) - -static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", - GST_PAD_SINK, - GST_PAD_ALWAYS, - GST_STATIC_CAPS_ANY); - -static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", - GST_PAD_SRC, - GST_PAD_ALWAYS, - GST_STATIC_CAPS_ANY); - -/* Valve signals and args */ -enum -{ - /* FILL ME */ - LAST_SIGNAL -}; - -enum -{ - ARG_0, - ARG_DROP, -}; - - - - -static void gst_valve_set_property (GObject * object, - guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_valve_get_property (GObject * object, - guint prop_id, GValue * value, GParamSpec * pspec); - -static gboolean gst_valve_event (GstPad * pad, GstEvent * event); -static GstFlowReturn gst_valve_buffer_alloc (GstPad * pad, guint64 offset, - guint size, GstCaps * caps, GstBuffer ** buf); -static GstFlowReturn gst_valve_chain (GstPad * pad, GstBuffer * buffer); -static GstCaps *gst_valve_getcaps (GstPad * pad); - -#define _do_init(bla) \ - GST_DEBUG_CATEGORY_INIT (valve_debug, "valve", 0, "Valve"); - -GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement, - GST_TYPE_ELEMENT, _do_init); - -static void -gst_valve_base_init (gpointer klass) -{ - GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&srctemplate)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sinktemplate)); - - gst_element_class_set_details_simple (element_class, "Valve element", - "Filter", - "This element drops all packets when drop is TRUE", - "Olivier Crete <olivier.crete@collabora.co.uk>"); -} - -static void -gst_valve_class_init (GstValveClass * klass) -{ - GObjectClass *gobject_class; - - gobject_class = (GObjectClass *) klass; - - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_valve_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_valve_get_property); - - g_object_class_install_property (gobject_class, ARG_DROP, - g_param_spec_boolean ("drop", - "Drops all buffers if TRUE", - "If this property if TRUE, the element will drop all buffers, " - "if its FALSE, it will let them through", - FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); -} - -static void -gst_valve_init (GstValve * valve, GstValveClass * klass) -{ - valve->drop = FALSE; - valve->discont = FALSE; - - valve->srcpad = gst_pad_new_from_static_template (&srctemplate, "src"); - gst_pad_set_getcaps_function (valve->srcpad, - GST_DEBUG_FUNCPTR (gst_valve_getcaps)); - gst_element_add_pad (GST_ELEMENT (valve), valve->srcpad); - - valve->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink"); - gst_pad_set_chain_function (valve->sinkpad, - GST_DEBUG_FUNCPTR (gst_valve_chain)); - gst_pad_set_event_function (valve->sinkpad, - GST_DEBUG_FUNCPTR (gst_valve_event)); - gst_pad_set_bufferalloc_function (valve->sinkpad, - GST_DEBUG_FUNCPTR (gst_valve_buffer_alloc)); - gst_pad_set_getcaps_function (valve->sinkpad, - GST_DEBUG_FUNCPTR (gst_valve_getcaps)); - gst_element_add_pad (GST_ELEMENT (valve), valve->sinkpad); -} - - -static void -gst_valve_set_property (GObject * object, - guint prop_id, const GValue * value, GParamSpec * pspec) -{ - GstValve *valve = GST_VALVE (object); - - switch (prop_id) { - case ARG_DROP: - g_atomic_int_set (&valve->drop, g_value_get_boolean (value)); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -gst_valve_get_property (GObject * object, - guint prop_id, GValue * value, GParamSpec * pspec) -{ - GstValve *valve = GST_VALVE (object); - - switch (prop_id) { - case ARG_DROP: - g_value_set_boolean (value, g_atomic_int_get (&valve->drop)); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static GstFlowReturn -gst_valve_chain (GstPad * pad, GstBuffer * buffer) -{ - GstValve *valve = GST_VALVE (GST_OBJECT_PARENT (pad)); - GstFlowReturn ret = GST_FLOW_OK; - - if (g_atomic_int_get (&valve->drop)) { - gst_buffer_unref (buffer); - valve->discont = TRUE; - } else { - if (valve->discont) { - buffer = gst_buffer_make_metadata_writable (buffer); - GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT); - } - - ret = gst_pad_push (valve->srcpad, buffer); - } - - - /* Ignore errors if "drop" was changed while the thread was blocked - * downwards - */ - if (g_atomic_int_get (&valve->drop)) - ret = GST_FLOW_OK; - - return ret; -} - - -static gboolean -gst_valve_event (GstPad * pad, GstEvent * event) -{ - GstValve *valve = GST_VALVE (gst_pad_get_parent_element (pad)); - gboolean ret = TRUE; - - if (g_atomic_int_get (&valve->drop)) - gst_event_unref (event); - else - ret = gst_pad_push_event (valve->srcpad, event); - - /* Ignore errors if "drop" was changed while the thread was blocked - * downwards. - */ - if (g_atomic_int_get (&valve->drop)) - ret = TRUE; - - gst_object_unref (valve); - return ret; -} - -static GstFlowReturn -gst_valve_buffer_alloc (GstPad * pad, guint64 offset, guint size, - GstCaps * caps, GstBuffer ** buf) -{ - GstValve *valve = GST_VALVE (gst_pad_get_parent_element (pad)); - GstFlowReturn ret = GST_FLOW_OK; - - if (g_atomic_int_get (&valve->drop)) - *buf = NULL; - else - ret = gst_pad_alloc_buffer (valve->srcpad, offset, size, caps, buf); - - /* Ignore errors if "drop" was changed while the thread was blocked - * downwards - */ - if (g_atomic_int_get (&valve->drop)) - ret = GST_FLOW_OK; - - gst_object_unref (valve); - - return ret; -} - -static GstCaps * -gst_valve_getcaps (GstPad * pad) -{ - GstValve *valve = GST_VALVE (gst_pad_get_parent (pad)); - GstCaps *caps; - - if (pad == valve->sinkpad) - caps = gst_pad_peer_get_caps (valve->srcpad); - else - caps = gst_pad_peer_get_caps (valve->sinkpad); - - if (caps == NULL) - caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); - - gst_object_unref (valve); - - return caps; -} - - -static gboolean -plugin_init (GstPlugin * plugin) -{ - return gst_element_register (plugin, "valve", - GST_RANK_MARGINAL, GST_TYPE_VALVE); -} - -GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, - GST_VERSION_MINOR, - "valve", - "Valve", - plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) diff --git a/gst/valve/gstvalve.h b/gst/valve/gstvalve.h deleted file mode 100644 index 9e15df571..000000000 --- a/gst/valve/gstvalve.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Farsight Voice+Video library - * - * Copyright 2007 Collabora Ltd, - * Copyright 2007 Nokia Corporation - * @author: Olivier Crete <olivier.crete@collabora.co.uk> - * - * 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_VALVE_H__ -#define __GST_VALVE_H__ - -#include <gst/gst.h> - -G_BEGIN_DECLS -/* #define's don't like whitespacey bits */ -#define GST_TYPE_VALVE \ - (gst_valve_get_type()) -#define GST_VALVE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - GST_TYPE_VALVE,GstValve)) -#define GST_VALVE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), \ - GST_TYPE_VALVE,GstValveClass)) -#define GST_IS_VALVE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VALVE)) -#define GST_IS_VALVE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VALVE)) -typedef struct _GstValve GstValve; -typedef struct _GstValveClass GstValveClass; -typedef struct _GstValvePrivate GstValvePrivate; - -/** - * GstValve: - * - * The private valve structure - */ -struct _GstValve -{ - /*< private >*/ - GstElement parent; - - /* atomic boolean */ - volatile gint drop; - - /* Protected by the stream lock */ - gboolean discont; - - GstPad *srcpad; - GstPad *sinkpad; - - /*< private > */ - gpointer _gst_reserved[GST_PADDING]; -}; - -struct _GstValveClass -{ - GstElementClass parent_class; - - /*< private > */ - gpointer _gst_reserved[GST_PADDING]; -}; - -GType gst_valve_get_type (void); - -G_END_DECLS -#endif /* __GST_VALVE_H__ */ diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 947513b2b..45678f384 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -171,7 +171,6 @@ check_PROGRAMS = \ $(check_mimic) \ elements/rtpmux \ $(check_schro) \ - elements/valve \ $(check_vp8) \ $(check_zbar) \ $(check_orc) \ @@ -235,9 +234,6 @@ elements_kate_LDADD = $(GST_BASE_LIBS) $(LDADD) elements_rtpmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS) elements_rtpmux_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstrtp-0.10 -elements_valve_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS) -elements_valve_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstrtp-0.10 - elements_assrender_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS) elements_assrender_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstvideo-0.10 -lgstapp-0.10 diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore index d9250b84b..ec35d9b79 100644 --- a/tests/check/elements/.gitignore +++ b/tests/check/elements/.gitignore @@ -38,7 +38,6 @@ selector spectrum timidity y4menc -valve videorecordingbin viewfinderbin vp8dec diff --git a/tests/check/elements/valve.c b/tests/check/elements/valve.c deleted file mode 100644 index d7971bd5a..000000000 --- a/tests/check/elements/valve.c +++ /dev/null @@ -1,135 +0,0 @@ -/* GStreamer - * - * unit test for the valve element - * - * Copyright 2009 Collabora Ltd. - * @author: Olivier Crete <olivier.crete@collabora.co.uk> - * Copyright 2009 Nokia Corp. - * - * 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. - */ - -#include <gst/check/gstcheck.h> -#include <gst/rtp/gstrtpbuffer.h> -#include <gst/gst.h> - - -static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", - GST_PAD_SINK, - GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-raw-int")); - -static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", - GST_PAD_SRC, - GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-raw-int")); - -gboolean event_received = FALSE; -gboolean buffer_allocated = FALSE; - -static gboolean -event_func (GstPad * pad, GstEvent * event) -{ - event_received = TRUE; - gst_event_unref (event); - return TRUE; -} - -static GstFlowReturn -bufferalloc_func (GstPad * pad, guint64 offset, guint size, GstCaps * caps, - GstBuffer ** buf) -{ - buffer_allocated = TRUE; - *buf = gst_buffer_new_and_alloc (size); - GST_BUFFER_OFFSET (*buf) = offset; - gst_buffer_set_caps (*buf, caps); - - return GST_FLOW_OK; -} - -GST_START_TEST (test_valve_basic) -{ - GstElement *valve; - GstPad *sink; - GstPad *src; - GstBuffer *buf; - GstCaps *caps; - - valve = gst_check_setup_element ("valve"); - - sink = gst_check_setup_sink_pad_by_name (valve, &sinktemplate, "src"); - src = gst_check_setup_src_pad_by_name (valve, &srctemplate, "sink"); - gst_pad_set_event_function (sink, event_func); - gst_pad_set_bufferalloc_function (sink, bufferalloc_func); - gst_pad_set_active (src, TRUE); - gst_pad_set_active (sink, TRUE); - gst_element_set_state (valve, GST_STATE_PLAYING); - - g_object_set (valve, "drop", FALSE, NULL); - - fail_unless (gst_pad_push_event (src, gst_event_new_eos ()) == TRUE); - fail_unless (event_received == TRUE); - fail_unless (gst_pad_alloc_buffer (src, 0, 10, NULL, &buf) == GST_FLOW_OK); - fail_unless (buffer_allocated == TRUE); - gst_buffer_unref (buf); - fail_unless (gst_pad_push (src, gst_buffer_new ()) == GST_FLOW_OK); - fail_unless (gst_pad_push (src, gst_buffer_new ()) == GST_FLOW_OK); - fail_unless (g_list_length (buffers) == 2); - caps = gst_pad_get_caps (src); - fail_unless (caps && gst_caps_is_equal (caps, - gst_pad_get_pad_template_caps (src))); - gst_caps_unref (caps); - - gst_check_drop_buffers (); - event_received = buffer_allocated = FALSE; - - g_object_set (valve, "drop", TRUE, NULL); - fail_unless (gst_pad_push_event (src, gst_event_new_eos ()) == TRUE); - fail_unless (event_received == FALSE); - fail_unless (gst_pad_alloc_buffer (src, 0, 10, NULL, &buf) == GST_FLOW_OK); - fail_unless (buffer_allocated == FALSE); - gst_buffer_unref (buf); - fail_unless (gst_pad_push (src, gst_buffer_new ()) == GST_FLOW_OK); - fail_unless (gst_pad_push (src, gst_buffer_new ()) == GST_FLOW_OK); - fail_unless (buffers == NULL); - caps = gst_pad_get_caps (src); - fail_unless (caps && gst_caps_is_equal (caps, - gst_pad_get_pad_template_caps (src))); - gst_caps_unref (caps); - - gst_pad_set_active (src, FALSE); - gst_pad_set_active (sink, FALSE); - gst_check_teardown_src_pad (valve); - gst_check_teardown_sink_pad (valve); - gst_check_teardown_element (valve); -} - -GST_END_TEST; - -static Suite * -valve_suite (void) -{ - Suite *s = suite_create ("valve"); - TCase *tc_chain; - - tc_chain = tcase_create ("valve_basic"); - tcase_add_test (tc_chain, test_valve_basic); - suite_add_tcase (s, tc_chain); - - return s; -} - -GST_CHECK_MAIN (valve) |