videomaxrate: Add to docs
authorOlivier Crête <olivier.crete@collabora.co.uk>
Mon, 14 Jun 2010 19:15:09 +0000 (15:15 -0400)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Fri, 2 Jul 2010 04:06:44 +0000 (00:06 -0400)
docs/plugins/Makefile.am
docs/plugins/gst-plugins-bad-plugins-docs.sgml
docs/plugins/gst-plugins-bad-plugins-sections.txt
gst/videomaxrate/videomaxrate.c
gst/videomaxrate/videomaxrate.h

index 93aa454..0f9a065 100644 (file)
@@ -161,6 +161,7 @@ EXTRA_HFILES = \
        $(top_srcdir)/gst/selector/gstoutputselector.h \
        $(top_srcdir)/gst/speed/gstspeed.h \
        $(top_srcdir)/gst/stereo/gststereo.h \
+       $(top_srcdir)/gst/videomaxrate/videomaxrate.h \
        $(top_srcdir)/gst/videosignal/gstvideoanalyse.h \
        $(top_srcdir)/gst/videosignal/gstvideodetect.h \
        $(top_srcdir)/gst/videosignal/gstvideomark.h \
index c565459..342391d 100644 (file)
@@ -89,6 +89,7 @@
     <xi:include href="xml/element-videoanalyse.xml" />
     <xi:include href="xml/element-videodetect.xml" />
     <xi:include href="xml/element-videomark.xml" />
+    <xi:include href="xml/element-videomaxrate.xml" />
     <xi:include href="xml/element-videoparse.xml" />
     <xi:include href="xml/element-wildmidi.xml" />
     <xi:include href="xml/element-zbar.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" />
     <xi:include href="xml/plugin-vmnc.xml" />
     <xi:include href="xml/plugin-wildmidi.xml" />
index 4302877..49535e6 100644 (file)
@@ -1117,6 +1117,20 @@ GST_IS_VIDEO_DETECT_CLASS
 </SECTION>
 
 <SECTION>
+<FILE>element-videomaxrate</FILE>
+<TITLE>videomaxrate</TITLE>
+GstVideoMaxRate
+<SUBSECTION Standard>
+GstVideoMaxRateClass
+GST_VIDEO_MAX_RATE
+GST_IS_VIDEO_MAX_RATE
+GST_TYPE_VIDEO_MAX_RATE
+gst_video_max_rate_get_type
+GST_VIDEO_MAX_RATE_CLASS
+GST_IS_VIDEO_MAX_RATE_CLASS
+</SECTION>
+
+<SECTION>
 <FILE>element-videomark</FILE>
 <TITLE>videomark</TITLE>
 GstVideoMark
index 52edbce..0d7bb4f 100644 (file)
  *
  */
 
+
+/**
+ * SECTION:element-videomaxrate
+ * @see_also: videorate
+ *
+ * This object will drop buffers that go beyond a certain buffer rate
+ * (ie frame rate). It should work with any kind of data where each buffer
+ * is independent. This currently means raw video frames and still image
+ * formats.
+ *
+ * The framerate is computed using a moving average. The period over which this
+ * average is computed is configurable using the "average-period" property.
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
index 03b1733..ec8fb8d 100644 (file)
@@ -45,6 +45,8 @@ struct _GstVideoMaxRate
 {
   GstBaseTransform parent;
 
+  /*< private >*/
+
   GstClockTimeDiff wanted_diff;
   GstClockTime average_period;