<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Gst" version="0.10"/>
  <package name="gstreamer-base-0.10"/>
  <c:include name="gst/base/gstadapter.h"/>
  <c:include name="gst/base/gstbaseparse.h"/>
  <c:include name="gst/base/gstbasesink.h"/>
  <c:include name="gst/base/gstbasesrc.h"/>
  <c:include name="gst/base/gstbasetransform.h"/>
  <c:include name="gst/base/gstbitreader.h"/>
  <c:include name="gst/base/gstbytereader.h"/>
  <c:include name="gst/base/gstbytewriter.h"/>
  <c:include name="gst/base/gstcollectpads.h"/>
  <c:include name="gst/base/gstcollectpads2.h"/>
  <c:include name="gst/base/gstdataqueue.h"/>
  <c:include name="gst/base/gstpushsrc.h"/>
  <c:include name="gst/base/gsttypefindhelper.h"/>
  <namespace name="GstBase"
             version="0.10"
             shared-library="libgstreamer-0.10.so.0,libgstbase-0.10.so.0"
             c:identifier-prefixes="Gst"
             c:symbol-prefixes="gst">
    <function-macro name="ADAPTER"
                    c:identifier="GST_ADAPTER"
                    introspectable="0">
      <source-position filename="gstadapter.h" line="29"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="ADAPTER_CLASS"
                    c:identifier="GST_ADAPTER_CLASS"
                    introspectable="0">
      <source-position filename="gstadapter.h" line="31"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="ADAPTER_GET_CLASS"
                    c:identifier="GST_ADAPTER_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstadapter.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <class name="Adapter"
           c:symbol-prefix="adapter"
           c:type="GstAdapter"
           parent="GObject.Object"
           glib:type-name="GstAdapter"
           glib:get-type="gst_adapter_get_type"
           glib:type-struct="AdapterClass">
      <doc xml:space="preserve"
           filename="gstadapter.c"
           line="21">This class is for elements that receive buffers in an undesired size.
While for example raw video contains one image per buffer, the same is not
true for a lot of other formats, especially those that come directly from
a file. So if you have undefined buffer sizes and require a specific size,
this object is for you.

An adapter is created with gst_adapter_new(). It can be freed again with
g_object_unref().

The theory of operation is like this: All buffers received are put
into the adapter using gst_adapter_push() and the data is then read back
in chunks of the desired size using gst_adapter_peek(). After the data is
processed, it is freed using gst_adapter_flush().

Other methods such as gst_adapter_take() and gst_adapter_take_buffer()
combine gst_adapter_peek() and gst_adapter_flush() in one method and are
potentially more convenient for some use cases.

For example, a sink pad's chain function that needs to pass data to a library
in 512-byte chunks could be implemented like this:
|[
static GstFlowReturn
sink_pad_chain (GstPad *pad, GstBuffer *buffer)
{
  MyElement *this;
  GstAdapter *adapter;
  GstFlowReturn ret = GST_FLOW_OK;

  // will give the element an extra ref; remember to drop it
  this = MY_ELEMENT (gst_pad_get_parent (pad));
  adapter = this-&gt;adapter;

  // put buffer into adapter
  gst_adapter_push (adapter, buffer);
  // while we can read out 512 bytes, process them
  while (gst_adapter_available (adapter) &gt;= 512 &amp;&amp; ret == GST_FLOW_OK) {
    // use flowreturn as an error value
    ret = my_library_foo (gst_adapter_peek (adapter, 512));
    gst_adapter_flush (adapter, 512);
  }

  gst_object_unref (this);
  return ret;
}
]|

For another example, a simple element inside GStreamer that uses GstAdapter
is the libvisual element.

An element using GstAdapter in its sink pad chain function should ensure that
when the FLUSH_STOP event is received, that any queued data is cleared using
gst_adapter_clear(). Data should also be cleared or processed on EOS and
when changing state from #GST_STATE_PAUSED to #GST_STATE_READY.

Also check the GST_BUFFER_FLAG_DISCONT flag on the buffer. Some elements might
need to clear the adapter after a discontinuity.

Since 0.10.24, the adapter will keep track of the timestamps of the buffers
that were pushed. The last seen timestamp before the current position
can be queried with gst_adapter_prev_timestamp(). This function can
optionally return the amount of bytes between the start of the buffer that
carried the timestamp and the current adapter position. The distance is
useful when dealing with, for example, raw audio samples because it allows
you to calculate the timestamp of the current adapter position by using the
last seen timestamp and the amount of bytes since.

A last thing to note is that while GstAdapter is pretty optimized,
merging buffers still might be an operation that requires a malloc() and
memcpy() operation, and these operations are not the fastest. Because of
this, some functions like gst_adapter_available_fast() are provided to help
speed up such cases should you want to. To avoid repeated memory allocations,
gst_adapter_copy() can be used to copy data into a (statically allocated)
user provided buffer.

GstAdapter is not MT safe. All operations on an adapter must be serialized by
the caller. This is not normally a problem, however, as the normal use case
of GstAdapter is inside one pad's chain function, in which case access is
serialized via the pad's STREAM_LOCK.

Note that gst_adapter_push() takes ownership of the buffer passed. Use
gst_buffer_ref() before pushing it into the adapter if you still want to
access the buffer later. The adapter will never modify the data in the
buffer pushed in it.

Last reviewed on 2009-05-13 (0.10.24).</doc>
      <source-position filename="gstadapter.h" line="78"/>
      <constructor name="new" c:identifier="gst_adapter_new">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="189">Creates a new #GstAdapter. Free with g_object_unref().</doc>
        <source-position filename="gstadapter.h" line="82"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="194">a new #GstAdapter</doc>
          <type name="Adapter" c:type="GstAdapter*"/>
        </return-value>
      </constructor>
      <method name="available" c:identifier="gst_adapter_available">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="763">Gets the maximum amount of bytes available, that is it returns the maximum
value that can be supplied to gst_adapter_peek() without that function
returning NULL.</doc>
        <source-position filename="gstadapter.h" line="93"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="771">number of bytes available in @adapter</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="765">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="available_fast" c:identifier="gst_adapter_available_fast">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="781">Gets the maximum number of bytes that are immediately available without
requiring any expensive operations (like copying the data into a
temporary buffer).</doc>
        <source-position filename="gstadapter.h" line="94"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="789">number of bytes that are available in @adapter without expensive
operations</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="783">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="clear" c:identifier="gst_adapter_clear">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="202">Removes all buffers from @adapter.</doc>
        <source-position filename="gstadapter.h" line="84"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="204">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="copy" c:identifier="gst_adapter_copy" version="0.10.12">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="460">Copies @size bytes of data starting at @offset out of the buffers
contained in @GstAdapter into an array @dest provided by the caller.

The array @dest should be large enough to contain @size bytes.
The user should check that the adapter has (@offset + @size) bytes
available before calling this function.</doc>
        <source-position filename="gstadapter.h" line="87"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="462">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="dest"
                     direction="out"
                     caller-allocates="1"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="463">the memory to copy into</doc>
            <array length="2" zero-terminated="0" c:type="guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="464">the bytes offset in the adapter to start from</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="465">the number of bytes to copy</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="flush" c:identifier="gst_adapter_flush">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="486">Flushes the first @flush bytes in the @adapter. The caller must ensure that
at least this many bytes are available.

See also: gst_adapter_peek().</doc>
        <source-position filename="gstadapter.h" line="89"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="488">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="flush" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="489">the number of bytes to flush</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="masked_scan_uint32"
              c:identifier="gst_adapter_masked_scan_uint32"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="958">Scan for pattern @pattern with applied mask @mask in the adapter data,
starting from offset @offset.

The bytes in @pattern and @mask are interpreted left-to-right, regardless
of endianness.  All four bytes of the pattern must be present in the
adapter for it to match, even if the first or last bytes are masked out.

It is an error to call this function without making sure that there is
enough data (offset+size bytes) in the adapter.

This function calls gst_adapter_masked_scan_uint32_peek() passing NULL
for value.</doc>
        <source-position filename="gstadapter.h" line="98"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="980">offset of the first match, or -1 if no match was found.

Example:
&lt;programlisting&gt;
// Assume the adapter contains 0x00 0x01 0x02 ... 0xfe 0xff

gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 0, 256);
// -&gt; returns 0
gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 1, 255);
// -&gt; returns -1
gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x01020304, 1, 255);
// -&gt; returns 1
gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0001, 0, 256);
// -&gt; returns -1
gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0203, 0, 256);
// -&gt; returns 0
gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 256);
// -&gt; returns 2
gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 4);
// -&gt; returns -1
&lt;/programlisting&gt;</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="960">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="mask" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="961">mask to apply to data before matching against @pattern</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="pattern" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="962">pattern to match (after mask is applied)</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="963">offset into the adapter data from which to start scanning, returns
         the last scanned position.</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="965">number of bytes to scan from offset</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="masked_scan_uint32_peek"
              c:identifier="gst_adapter_masked_scan_uint32_peek"
              version="0.10.30">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="852">Scan for pattern @pattern with applied mask @mask in the adapter data,
starting from offset @offset.  If a match is found, the value that matched
is returned through @value, otherwise @value is left untouched.

The bytes in @pattern and @mask are interpreted left-to-right, regardless
of endianness.  All four bytes of the pattern must be present in the
adapter for it to match, even if the first or last bytes are masked out.

It is an error to call this function without making sure that there is
enough data (offset+size bytes) in the adapter.</doc>
        <source-position filename="gstadapter.h" line="101"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="873">offset of the first match, or -1 if no match was found.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="854">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="mask" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="855">mask to apply to data before matching against @pattern</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="pattern" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="856">pattern to match (after mask is applied)</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="857">offset into the adapter data from which to start scanning, returns
         the last scanned position.</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="859">number of bytes to scan from offset</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="value" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="860">pointer to uint32 to return matching data</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek" c:identifier="gst_adapter_peek">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="370">Gets the first @size bytes stored in the @adapter. The returned pointer is
valid until the next function is called on the adapter.

Note that setting the returned pointer as the data of a #GstBuffer is
incorrect for general-purpose plugins. The reason is that if a downstream
element stores the buffer so that it has access to it outside of the bounds
of its chain function, the buffer will have an invalid data pointer after
your element flushes the bytes. In that case you should use
gst_adapter_take(), which returns a freshly-allocated buffer that you can set
as #GstBuffer malloc_data or the potentially more performant
gst_adapter_take_buffer().

Returns #NULL if @size bytes are not available.</doc>
        <source-position filename="gstadapter.h" line="86"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="389">a pointer to the first
    @size bytes of data, or NULL</doc>
          <array length="0" zero-terminated="0" c:type="const guint8*">
            <type name="guint8" c:type="guint8"/>
          </array>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="372">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="373">the number of bytes to peek</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="prev_timestamp"
              c:identifier="gst_adapter_prev_timestamp"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="823">Get the timestamp that was before the current byte in the adapter. When
@distance is given, the amount of bytes between the timestamp and the current
position is returned.

The timestamp is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when
the adapter is first created or when it is cleared. This also means that before
the first byte with a timestamp is removed from the adapter, the timestamp
and distance returned are GST_CLOCK_TIME_NONE and 0 respectively.</doc>
        <source-position filename="gstadapter.h" line="96"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="837">The previously seen timestamp.</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="825">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="distance"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="826">pointer to location for distance, or NULL</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="push" c:identifier="gst_adapter_push">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="285">Adds the data from @buf to the data stored inside @adapter and takes
ownership of the buffer.</doc>
        <source-position filename="gstadapter.h" line="85"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="287">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="buf" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="288">a #GstBuffer to add to queue in the adapter</doc>
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </method>
      <method name="take" c:identifier="gst_adapter_take">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="602">Returns a freshly allocated buffer containing the first @nbytes bytes of the
@adapter. The returned bytes will be flushed from the adapter.

Caller owns returned value. g_free after usage.

Free-function: g_free</doc>
        <source-position filename="gstadapter.h" line="90"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="614">oven-fresh hot data, or
    #NULL if @nbytes bytes are not available</doc>
          <array length="0" zero-terminated="0" c:type="guint8*">
            <type name="guint8" c:type="guint8"/>
          </array>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="604">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="nbytes"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="605">the number of bytes to take</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="take_buffer"
              c:identifier="gst_adapter_take_buffer"
              version="0.10.6">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="638">Returns a #GstBuffer containing the first @nbytes bytes of the
@adapter. The returned bytes will be flushed from the adapter.
This function is potentially more performant than gst_adapter_take()
since it can reuse the memory in pushed buffers by subbuffering
or merging.

Caller owns returned value. gst_buffer_unref() after usage.

Free-function: gst_buffer_unref</doc>
        <source-position filename="gstadapter.h" line="91"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="653">a #GstBuffer containing the first @nbytes of
    the adapter, or #NULL if @nbytes bytes are not available</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="640">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="nbytes" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="641">the number of bytes to take</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="take_list"
              c:identifier="gst_adapter_take_list"
              version="0.10.31">
        <doc xml:space="preserve"
             filename="gstadapter.c"
             line="718">Returns a #GList of buffers containing the first @nbytes bytes of the
@adapter. The returned bytes will be flushed from the adapter.
When the caller can deal with individual buffers, this function is more
performant because no memory should be copied.

Caller owns returned list and contained buffers. gst_buffer_unref() each
buffer in the list before freeing the list after usage.</doc>
        <source-position filename="gstadapter.h" line="92"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstadapter.c"
               line="731">a #GList of buffers
    containing the first @nbytes of the adapter, or #NULL if @nbytes bytes
    are not available</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="Gst.Buffer"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="adapter" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="720">a #GstAdapter</doc>
            <type name="Adapter" c:type="GstAdapter*"/>
          </instance-parameter>
          <parameter name="nbytes" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstadapter.c"
                 line="721">the number of bytes to take</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <field name="object">
        <type name="GObject.Object" c:type="GObject"/>
      </field>
      <field name="buflist" readable="0" private="1">
        <type name="GLib.SList" c:type="GSList*">
          <type name="gpointer" c:type="gpointer"/>
        </type>
      </field>
      <field name="size" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="skip" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="assembled_data" readable="0" private="1">
        <type name="guint8" c:type="guint8*"/>
      </field>
      <field name="assembled_size" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="assembled_len" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="buflist_end" readable="0" private="1">
        <type name="GLib.SList" c:type="GSList*">
          <type name="gpointer" c:type="gpointer"/>
        </type>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="AdapterPrivate" c:type="GstAdapterPrivate*"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="2">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <record name="AdapterClass"
            c:type="GstAdapterClass"
            glib:is-gtype-struct-for="Adapter">
      <source-position filename="gstadapter.h" line="78"/>
      <field name="parent_class">
        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <record name="AdapterPrivate" c:type="GstAdapterPrivate" disguised="1">
      <source-position filename="gstadapter.h" line="43"/>
    </record>
    <function-macro name="BASE_PARSE"
                    c:identifier="GST_BASE_PARSE"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="30"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_CAST"
                    c:identifier="GST_BASE_PARSE_CAST"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_CLASS"
                    c:identifier="GST_BASE_PARSE_CLASS"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="31"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_DRAINING"
                    c:identifier="GST_BASE_PARSE_DRAINING"
                    version="0.10.33"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="92">Obtains current drain status (ie. whether EOS has been received and
the parser is now processing the frames at the end of the stream)</doc>
      <source-position filename="gstbaseparse.h" line="101"/>
      <parameters>
        <parameter name="parse">
          <doc xml:space="preserve"
               filename="gstbaseparse.h"
               line="94">base parse instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <constant name="BASE_PARSE_FLAG_DRAINING"
              value="2"
              c:type="GST_BASE_PARSE_FLAG_DRAINING">
      <source-position filename="gstbaseparse.h" line="80"/>
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="BASE_PARSE_FLAG_LOST_SYNC"
              value="1"
              c:type="GST_BASE_PARSE_FLAG_LOST_SYNC">
      <source-position filename="gstbaseparse.h" line="79"/>
      <type name="gint" c:type="gint"/>
    </constant>
    <function-macro name="BASE_PARSE_GET_CLASS"
                    c:identifier="GST_BASE_PARSE_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_LOST_SYNC"
                    c:identifier="GST_BASE_PARSE_LOST_SYNC"
                    version="0.10.33"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="82">Obtains current sync status.</doc>
      <source-position filename="gstbaseparse.h" line="90"/>
      <parameters>
        <parameter name="parse">
          <doc xml:space="preserve"
               filename="gstbaseparse.h"
               line="84">base parse instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_SINK_PAD"
                    c:identifier="GST_BASE_PARSE_SINK_PAD"
                    version="0.10.33"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="47">Gives the pointer to the sink #GstPad object of the element.</doc>
      <source-position filename="gstbaseparse.h" line="55"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbaseparse.h"
               line="49">base parse instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_PARSE_SRC_PAD"
                    c:identifier="GST_BASE_PARSE_SRC_PAD"
                    version="0.10.33"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="37">Gives the pointer to the source #GstPad object of the element.</doc>
      <source-position filename="gstbaseparse.h" line="45"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbaseparse.h"
               line="39">base parse instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SINK"
                    c:identifier="GST_BASE_SINK"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SINK_CAST"
                    c:identifier="GST_BASE_SINK_CAST"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="37"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SINK_CLASS"
                    c:identifier="GST_BASE_SINK_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="33"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SINK_GET_CLASS"
                    c:identifier="GST_BASE_SINK_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="34"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SINK_PAD"
                    c:identifier="GST_BASE_SINK_PAD"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasesink.h"
           line="39">Gives the pointer to the #GstPad object of the element.</doc>
      <source-position filename="gstbasesink.h" line="45"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasesink.h"
               line="41">base sink instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SRC"
                    c:identifier="GST_BASE_SRC"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SRC_CAST"
                    c:identifier="GST_BASE_SRC_CAST"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="37"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SRC_CLASS"
                    c:identifier="GST_BASE_SRC_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="33"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SRC_GET_CLASS"
                    c:identifier="GST_BASE_SRC_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="34"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_SRC_PAD"
                    c:identifier="GST_BASE_SRC_PAD"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasesrc.h"
           line="56">Gives the pointer to the #GstPad object of the element.</doc>
      <source-position filename="gstbasesrc.h" line="62"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasesrc.h"
               line="58">base source instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM"
                    c:identifier="GST_BASE_TRANSFORM"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="29"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM_CAST"
                    c:identifier="GST_BASE_TRANSFORM_CAST"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM_CLASS"
                    c:identifier="GST_BASE_TRANSFORM_CLASS"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="30"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM_GET_CLASS"
                    c:identifier="GST_BASE_TRANSFORM_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="31"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM_LOCK"
                    c:identifier="GST_BASE_TRANSFORM_LOCK"
                    version="0.10.13"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="80">Obtain a lock to protect the transform function from concurrent access.</doc>
      <source-position filename="gstbasetransform.h" line="88"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasetransform.h"
               line="82">base transform instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <constant name="BASE_TRANSFORM_SINK_NAME"
              value="sink"
              c:type="GST_BASE_TRANSFORM_SINK_NAME">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="37">The name of the templates for the sink pad.</doc>
      <source-position filename="gstbasetransform.h" line="42"/>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <function-macro name="BASE_TRANSFORM_SINK_PAD"
                    c:identifier="GST_BASE_TRANSFORM_SINK_PAD"
                    version="0.10.4"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="60">Gives the pointer to the sink #GstPad object of the element.</doc>
      <source-position filename="gstbasetransform.h" line="68"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasetransform.h"
               line="62">base transform instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <constant name="BASE_TRANSFORM_SRC_NAME"
              value="src"
              c:type="GST_BASE_TRANSFORM_SRC_NAME">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="43">The name of the templates for the source pad.</doc>
      <source-position filename="gstbasetransform.h" line="48"/>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <function-macro name="BASE_TRANSFORM_SRC_PAD"
                    c:identifier="GST_BASE_TRANSFORM_SRC_PAD"
                    version="0.10.4"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="50">Gives the pointer to the source #GstPad object of the element.</doc>
      <source-position filename="gstbasetransform.h" line="58"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasetransform.h"
               line="52">base transform instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BASE_TRANSFORM_UNLOCK"
                    c:identifier="GST_BASE_TRANSFORM_UNLOCK"
                    version="0.10.13"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="90">Release the lock that protects the transform function from concurrent access.</doc>
      <source-position filename="gstbasetransform.h" line="98"/>
      <parameters>
        <parameter name="obj">
          <doc xml:space="preserve"
               filename="gstbasetransform.h"
               line="92">base transform instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BIT_READER"
                    c:identifier="GST_BIT_READER"
                    introspectable="0">
      <source-position filename="gstbitreader.h" line="30"/>
      <parameters>
        <parameter name="reader">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BIT_READER_INIT"
                    c:identifier="GST_BIT_READER_INIT"
                    version="0.10.22"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbitreader.h"
           line="76">A #GstBitReader must be initialized with this macro, before it can be
used. This macro can used be to initialize a variable, but it cannot
be assigned to a variable. In that case you have to use
gst_bit_reader_init().</doc>
      <source-position filename="gstbitreader.h" line="88"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstbitreader.h"
               line="78">Data from which the #GstBitReader should read</doc>
        </parameter>
        <parameter name="size">
          <doc xml:space="preserve"
               filename="gstbitreader.h"
               line="79">Size of @data in bytes</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BIT_READER_INIT_FROM_BUFFER"
                    c:identifier="GST_BIT_READER_INIT_FROM_BUFFER"
                    version="0.10.22"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbitreader.h"
           line="90">A #GstBitReader must be initialized with this macro, before it can be
used. This macro can used be to initialize a variable, but it cannot
be assigned to a variable. In that case you have to use
gst_bit_reader_init().</doc>
      <source-position filename="gstbitreader.h" line="101"/>
      <parameters>
        <parameter name="buffer">
          <doc xml:space="preserve"
               filename="gstbitreader.h"
               line="92">Buffer from which the #GstBitReader should read</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BYTE_READER"
                    c:identifier="GST_BYTE_READER"
                    introspectable="0">
      <source-position filename="gstbytereader.h" line="29"/>
      <parameters>
        <parameter name="reader">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BYTE_READER_INIT"
                    c:identifier="GST_BYTE_READER_INIT"
                    version="0.10.22"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbytereader.h"
           line="143">A #GstByteReader must be initialized with this macro, before it can be
used. This macro can used be to initialize a variable, but it cannot
be assigned to a variable. In that case you have to use
gst_byte_reader_init().</doc>
      <source-position filename="gstbytereader.h" line="155"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstbytereader.h"
               line="145">Data from which the #GstByteReader should read</doc>
        </parameter>
        <parameter name="size">
          <doc xml:space="preserve"
               filename="gstbytereader.h"
               line="146">Size of @data in bytes</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BYTE_READER_INIT_FROM_BUFFER"
                    c:identifier="GST_BYTE_READER_INIT_FROM_BUFFER"
                    version="0.10.22"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbytereader.h"
           line="157">A #GstByteReader must be initialized with this macro, before it can be
used. This macro can used be to initialize a variable, but it cannot
be assigned to a variable. In that case you have to use
gst_byte_reader_init().</doc>
      <source-position filename="gstbytereader.h" line="168"/>
      <parameters>
        <parameter name="buffer">
          <doc xml:space="preserve"
               filename="gstbytereader.h"
               line="159">Buffer from which the #GstByteReader should read</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="BYTE_WRITER"
                    c:identifier="GST_BYTE_WRITER"
                    introspectable="0">
      <source-position filename="gstbytewriter.h" line="31"/>
      <parameters>
        <parameter name="writer">
        </parameter>
      </parameters>
    </function-macro>
    <class name="BaseParse"
           c:symbol-prefix="base_parse"
           c:type="GstBaseParse"
           parent="Gst.Element"
           abstract="1"
           glib:type-name="GstBaseParse"
           glib:get-type="gst_base_parse_get_type"
           glib:type-struct="BaseParseClass">
      <doc xml:space="preserve"
           filename="gstbaseparse.c"
           line="24">This base class is for parser elements that process data and splits it
into separate audio/video/whatever frames.

It provides for:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;provides one sink pad and one source pad&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;handles state changes&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;can operate in pull mode or push mode&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;handles seeking in both modes&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;handles events (NEWSEGMENT/EOS/FLUSH)&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
       handles queries (POSITION/DURATION/SEEKING/FORMAT/CONVERT)
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;handles flushing&lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

The purpose of this base class is to provide the basic functionality of
a parser and share a lot of rather complex code.

Description of the parsing mechanism:
&lt;orderedlist&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;&lt;title&gt;Set-up phase&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    GstBaseParse class calls @set_sink_caps to inform the subclass about
    incoming sinkpad caps. Subclass should set the srcpad caps accordingly.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    GstBaseParse calls @start to inform subclass that data processing is
    about to start now.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     At least at this point subclass needs to tell the GstBaseParse class
     how big data chunks it wants to receive (min_frame_size). It can do
     this with gst_base_parse_set_min_frame_size().
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     GstBaseParse class sets up appropriate data passing mode (pull/push)
     and starts to process the data.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Parsing phase&lt;/title&gt;
    &lt;listitem&gt;&lt;para&gt;
      GstBaseParse gathers at least min_frame_size bytes of data either
      by pulling it from upstream or collecting buffers in an internal
      #GstAdapter.
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      A buffer of (at least) min_frame_size bytes is passed to subclass with
      @check_valid_frame. Subclass checks the contents and returns TRUE
      if the buffer contains a valid frame. It also needs to set the
      @framesize according to the detected frame size. If buffer didn't
      contain a valid frame, this call must return FALSE and optionally
      set the @skipsize value to inform base class that how many bytes
      it needs to skip in order to find a valid frame. @framesize can always
      indicate a new minimum for current frame parsing.  Indicating G_MAXUINT
      for requested amount means subclass simply needs best available
      subsequent data.  In push mode this amounts to an additional input buffer
      (thus minimal additional latency), in pull mode this amounts to some
      arbitrary reasonable buffer size increase.  The passed buffer
      is read-only.  Note that @check_valid_frame might receive any small
      amount of input data when leftover data is being drained (e.g. at EOS).
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      After valid frame is found, it will be passed again to subclass with
      @parse_frame call. Now subclass is responsible for parsing the
      frame contents and setting the caps, and buffer metadata (e.g.
      buffer timestamp and duration, or keyframe if applicable).
      (although the latter can also be done by GstBaseParse if it is
      appropriately configured, see below).  Frame is provided with
      timestamp derived from upstream (as much as generally possible),
      duration obtained from configuration (see below), and offset
      if meaningful (in pull mode).
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      Finally the buffer can be pushed downstream and the parsing loop starts
      over again.  Just prior to actually pushing the buffer in question,
      it is passed to @pre_push_frame which gives subclass yet one
      last chance to examine buffer metadata, or to send some custom (tag)
      events, or to perform custom (segment) filtering.
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      During the parsing process GstBaseParseClass will handle both srcpad
      and sinkpad events. They will be passed to subclass if @event or
      @src_event callbacks have been provided.
    &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;&lt;title&gt;Shutdown phase&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    GstBaseParse class calls @stop to inform the subclass that data
    parsing will be stopped.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;/orderedlist&gt;

Subclass is responsible for providing pad template caps for
source and sink pads. The pads need to be named "sink" and "src". It also
needs to set the fixed caps on srcpad, when the format is ensured (e.g.
when base class calls subclass' @set_sink_caps function).

This base class uses #GST_FORMAT_DEFAULT as a meaning of frames. So,
subclass conversion routine needs to know that conversion from
#GST_FORMAT_TIME to #GST_FORMAT_DEFAULT must return the
frame number that can be found from the given byte position.

GstBaseParse uses subclasses conversion methods also for seeking (or
otherwise uses its own default one, see also below).

Subclass @start and @stop functions will be called to inform the beginning
and end of data processing.

Things that subclass need to take care of:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;Provide pad templates&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Fixate the source pad caps when appropriate
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Inform base class how big data chunks should be retrieved. This is
     done with gst_base_parse_set_min_frame_size() function.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Examine data chunks passed to subclass with @check_valid_frame
     and tell if they contain a valid frame
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Set the caps and timestamp to frame that is passed to subclass with
     @parse_frame function.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;Provide conversion functions&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Update the duration information with gst_base_parse_set_duration()
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Optionally passthrough using gst_base_parse_set_passthrough()
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Configure various baseparse parameters using
     gst_base_parse_set_average_bitrate(), gst_base_parse_set_syncable()
     and gst_base_parse_set_frame_rate().
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     In particular, if subclass is unable to determine a duration, but
     parsing (or specs) yields a frames per seconds rate, then this can be
     provided to GstBaseParse to enable it to cater for
     buffer time metadata (which will be taken from upstream as much as
     possible). Internally keeping track of frame durations and respective
     sizes that have been pushed provides GstBaseParse with an estimated
     bitrate. A default @convert (used if not overriden) will then use these
     rates to perform obvious conversions.  These rates are also used to
     update (estimated) duration at regular frame intervals.
  &lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;</doc>
      <source-position filename="gstbaseparse.h" line="268"/>
      <virtual-method name="check_valid_frame">
        <source-position filename="gstbaseparse.h" line="238"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="frame" transfer-ownership="none">
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </parameter>
          <parameter name="framesize" transfer-ownership="none">
            <type name="guint" c:type="guint*"/>
          </parameter>
          <parameter name="skipsize" transfer-ownership="none">
            <type name="gint" c:type="gint*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="convert">
        <source-position filename="gstbaseparse.h" line="249"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="src_format" transfer-ownership="none">
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
          <parameter name="src_value" transfer-ownership="none">
            <type name="gint64" c:type="gint64"/>
          </parameter>
          <parameter name="dest_format" transfer-ownership="none">
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
          <parameter name="dest_value" transfer-ownership="none">
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="detect">
        <source-position filename="gstbaseparse.h" line="263"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="event">
        <source-position filename="gstbaseparse.h" line="255"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_sink_caps">
        <source-position filename="gstbaseparse.h" line="261"/>
        <return-value transfer-ownership="full">
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="parse_frame">
        <source-position filename="gstbaseparse.h" line="243"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="frame" transfer-ownership="none">
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="pre_push_frame">
        <source-position filename="gstbaseparse.h" line="246"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="frame" transfer-ownership="none">
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="set_sink_caps">
        <source-position filename="gstbaseparse.h" line="235"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="src_event">
        <source-position filename="gstbaseparse.h" line="258"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="start">
        <source-position filename="gstbaseparse.h" line="231"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="stop">
        <source-position filename="gstbaseparse.h" line="233"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <method name="add_index_entry"
              c:identifier="gst_base_parse_add_index_entry"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="1440">Adds an entry to the index associating @offset to @ts.  It is recommended
to only add keyframe entries.  @force allows to bypass checks, such as
whether the stream is (upstream) seekable, another entry is already "close"
to the new entry, etc.</doc>
        <source-position filename="gstbaseparse.h" line="321"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbaseparse.c"
               line="1453">#gboolean indicating whether entry was added</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1442">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1443">offset of entry</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
          <parameter name="ts" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1444">timestamp associated with offset</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
          <parameter name="key" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1445">whether entry refers to keyframe</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
          <parameter name="force" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1446">add entry disregarding sanity checks</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="convert_default"
              c:identifier="gst_base_parse_convert_default"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="1193">Default implementation of "convert" vmethod in #GstBaseParse class.</doc>
        <source-position filename="gstbaseparse.h" line="315"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbaseparse.c"
               line="1203">TRUE if conversion was successful.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1195">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="src_format" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1196">#GstFormat describing the source format.</doc>
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
          <parameter name="src_value" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1197">Source value to be converted.</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
          <parameter name="dest_format" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1198">#GstFormat defining the converted format.</doc>
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
          <parameter name="dest_value" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1199">Pointer where the conversion result will be put.</doc>
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="push_frame"
              c:identifier="gst_base_parse_push_frame"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="1768">Pushes the frame downstream, sends any pending events and
does some timestamp and segment handling. Takes ownership
of @frame and will clear it (if it was initialised with
gst_base_parse_frame_init()) or free it.

This must be called with sinkpad STREAM_LOCK held.</doc>
        <source-position filename="gstbaseparse.h" line="282"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbaseparse.c"
               line="1780">#GstFlowReturn</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1770">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="frame" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="1771">a #GstBaseParseFrame</doc>
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_average_bitrate"
              c:identifier="gst_base_parse_set_average_bitrate"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3065">Optionally sets the average bitrate detected in media (if non-zero),
e.g. based on metadata, as it will be posted to the application.

By default, announced average bitrate is estimated. The average bitrate
is used to estimate the total duration of the stream and to estimate
a seek position, if there's no index and the format is syncable
(see gst_base_parse_set_syncable()).</doc>
        <source-position filename="gstbaseparse.h" line="290"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3067">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="bitrate" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3068">average bitrate in bits/second</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_duration"
              c:identifier="gst_base_parse_set_duration"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3016">Sets the duration of the currently playing media. Subclass can use this
when it is able to determine duration and/or notices a change in the media
duration.  Alternatively, if @interval is non-zero (default), then stream
duration is determined based on estimated bitrate, and updated every @interval
frames.</doc>
        <source-position filename="gstbaseparse.h" line="285"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3018">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="fmt" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3019">#GstFormat.</doc>
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
          <parameter name="duration" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3020">duration value.</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
          <parameter name="interval" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3021">how often to update the duration estimate based on bitrate, or 0.</doc>
            <type name="gint" c:type="gint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_frame_rate"
              c:identifier="gst_base_parse_set_frame_rate"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3107">If frames per second is configured, parser can take care of buffer duration
and timestamping.  When performing segment clipping, or seeking to a specific
location, a corresponding decoder might need an initial @lead_in and a
following @lead_out number of frames to ensure the desired segment is
entirely filled upon decoding.</doc>
        <source-position filename="gstbaseparse.h" line="305"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3109">the #GstBaseParse to set</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="fps_num" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3110">frames per second (numerator).</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="fps_den" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3111">frames per second (denominator).</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="lead_in" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3112">frames needed before a segment for subsequent decode</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="lead_out" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3113">frames needed after a segment</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_has_timing_info"
              c:identifier="gst_base_parse_set_has_timing_info"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3162">Set if frames carry timing information which the subclass can (generally)
parse and provide.  In particular, intrinsic (rather than estimated) time
can be obtained following a seek.</doc>
        <source-position filename="gstbaseparse.h" line="296"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3164">a #GstBaseParse</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="has_timing" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3165">whether frames carry timing information</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_latency"
              c:identifier="gst_base_parse_set_latency"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3220">Sets the minimum and maximum (which may likely be equal) latency introduced
by the parsing process.  If there is such a latency, which depends on the
particular parsing of the format, it typically corresponds to 1 frame duration.</doc>
        <source-position filename="gstbaseparse.h" line="311"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3222">a #GstBaseParse</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="min_latency" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3223">minimum parse latency</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
          <parameter name="max_latency" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3224">maximum parse latency</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_min_frame_size"
              c:identifier="gst_base_parse_set_min_frame_size"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3087">Subclass can use this function to tell the base class that it needs to
give at least #min_size buffers.</doc>
        <source-position filename="gstbaseparse.h" line="293"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3089">#GstBaseParse.</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="min_size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3090">Minimum size of the data that this base class should give to
           subclass.</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_passthrough"
              c:identifier="gst_base_parse_set_passthrough"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3198">Set if the nature of the format or configuration does not allow (much)
parsing, and the parser should operate in passthrough mode (which only
applies when operating in push mode). That is, incoming buffers are
pushed through unmodified, i.e. no @check_valid_frame or @parse_frame
callbacks will be invoked, but @pre_push_frame will still be invoked,
so subclass can perform as much or as little is appropriate for
passthrough semantics in @pre_push_frame.</doc>
        <source-position filename="gstbaseparse.h" line="302"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3200">a #GstBaseParse</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="passthrough" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3201">%TRUE if parser should run in passthrough mode</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_syncable"
              c:identifier="gst_base_parse_set_syncable"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="3180">Set if frame starts can be identified. This is set by default and
determines whether seeking based on bitrate averages
is possible for a format/stream.</doc>
        <source-position filename="gstbaseparse.h" line="299"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="parse" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3182">a #GstBaseParse</doc>
            <type name="BaseParse" c:type="GstBaseParse*"/>
          </instance-parameter>
          <parameter name="syncable" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="3183">set if frame starts can be identified</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <field name="element">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="162">the parent element.</doc>
        <type name="Gst.Element" c:type="GstElement"/>
      </field>
      <field name="sinkpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="srcpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="flags">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="segment">
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="20">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="BaseParsePrivate" c:type="GstBaseParsePrivate*"/>
      </field>
    </class>
    <record name="BaseParseClass"
            c:type="GstBaseParseClass"
            glib:is-gtype-struct-for="BaseParse">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="184">Subclasses can override any of the available virtual methods or not, as
needed. At minimum @check_valid_frame and @parse_frame needs to be
overridden.</doc>
      <source-position filename="gstbaseparse.h" line="268"/>
      <field name="parent_class">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="186">the parent class</doc>
        <type name="Gst.ElementClass" c:type="GstElementClass"/>
      </field>
      <field name="start">
        <callback name="start">
          <source-position filename="gstbaseparse.h" line="231"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="stop">
        <callback name="stop">
          <source-position filename="gstbaseparse.h" line="233"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="set_sink_caps">
        <callback name="set_sink_caps">
          <source-position filename="gstbaseparse.h" line="235"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="check_valid_frame">
        <callback name="check_valid_frame">
          <source-position filename="gstbaseparse.h" line="238"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="frame" transfer-ownership="none">
              <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
            </parameter>
            <parameter name="framesize" transfer-ownership="none">
              <type name="guint" c:type="guint*"/>
            </parameter>
            <parameter name="skipsize" transfer-ownership="none">
              <type name="gint" c:type="gint*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="parse_frame">
        <callback name="parse_frame">
          <source-position filename="gstbaseparse.h" line="243"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="frame" transfer-ownership="none">
              <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="pre_push_frame">
        <callback name="pre_push_frame">
          <source-position filename="gstbaseparse.h" line="246"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="frame" transfer-ownership="none">
              <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="convert">
        <callback name="convert">
          <source-position filename="gstbaseparse.h" line="249"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="src_format" transfer-ownership="none">
              <type name="Gst.Format" c:type="GstFormat"/>
            </parameter>
            <parameter name="src_value" transfer-ownership="none">
              <type name="gint64" c:type="gint64"/>
            </parameter>
            <parameter name="dest_format" transfer-ownership="none">
              <type name="Gst.Format" c:type="GstFormat"/>
            </parameter>
            <parameter name="dest_value" transfer-ownership="none">
              <type name="gint64" c:type="gint64*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="event">
        <callback name="event">
          <source-position filename="gstbaseparse.h" line="255"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="src_event">
        <callback name="src_event">
          <source-position filename="gstbaseparse.h" line="258"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="get_sink_caps">
        <callback name="get_sink_caps">
          <source-position filename="gstbaseparse.h" line="261"/>
          <return-value transfer-ownership="full">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="detect">
        <callback name="detect">
          <source-position filename="gstbaseparse.h" line="263"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="parse" transfer-ownership="none">
              <type name="BaseParse" c:type="GstBaseParse*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="18">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <record name="BaseParseFrame"
            c:type="GstBaseParseFrame"
            version="0.10.33"
            glib:type-name="GstBaseParseFrame"
            glib:get-type="gst_base_parse_frame_get_type"
            c:symbol-prefix="base_parse_frame">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="124">Frame (context) data passed to each frame parsing virtual methods.  In
addition to providing the data to be checked for a valid frame or an already
identified frame, it conveys additional metadata or control information
from and to the subclass w.r.t. the particular frame in question (rather
than global parameters).  Some of these may apply to each parsing stage, others
only to some a particular one.  These parameters are effectively zeroed at start
of each frame's processing, i.e. parsing virtual method invocation sequence.</doc>
      <source-position filename="gstbaseparse.h" line="154"/>
      <field name="buffer" writable="1">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="126">data to check for valid frame or parsed frame.
  Subclass is allowed to replace this buffer.</doc>
        <type name="Gst.Buffer" c:type="GstBuffer*"/>
      </field>
      <field name="flags" writable="1">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="132">a combination of input and output #GstBaseParseFrameFlags that
 convey additional context to subclass or allow subclass to tune
 subsequent #GstBaseParse actions.</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="overhead" writable="1">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="128">subclass can set this to indicates the metadata overhead
  for the given frame, which is then used to enable more accurate bitrate
  computations. If this is -1, it is assumed that this frame should be
  skipped in bitrate calculation.</doc>
        <type name="gint" c:type="gint"/>
      </field>
      <field name="_gst_reserved_i" readable="0" private="1">
        <array zero-terminated="0" fixed-size="2">
          <type name="guint" c:type="guint"/>
        </array>
      </field>
      <field name="_gst_reserved_p" readable="0" private="1">
        <array zero-terminated="0" fixed-size="2">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
      <field name="_private_flags" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <constructor name="new"
                   c:identifier="gst_base_parse_frame_new"
                   version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="663">Allocates a new #GstBaseParseFrame. This function is mainly for bindings,
elements written in C should usually allocate the frame on the stack and
then use gst_base_parse_frame_init() to initialise it.</doc>
        <source-position filename="gstbaseparse.h" line="274"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbaseparse.c"
               line="675">a newly-allocated #GstBaseParseFrame. Free with
    gst_base_parse_frame_free() when no longer needed, unless you gave
    away ownership to gst_base_parse_push_frame().</doc>
          <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
        </return-value>
        <parameters>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="665">a #GstBuffer</doc>
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="flags" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="666">the flags</doc>
            <type name="BaseParseFrameFlags" c:type="GstBaseParseFrameFlags"/>
          </parameter>
          <parameter name="overhead" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="667">number of bytes in this frame which should be counted as
    metadata overhead, ie. not used to calculate the average bitrate.
    Set to -1 to mark the entire frame as metadata. If in doubt, set to 0.</doc>
            <type name="gint" c:type="gint"/>
          </parameter>
        </parameters>
      </constructor>
      <method name="free" c:identifier="gst_base_parse_frame_free">
        <source-position filename="gstbaseparse.h" line="280"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="frame" transfer-ownership="none">
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="init"
              c:identifier="gst_base_parse_frame_init"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbaseparse.c"
             line="643">Sets a #GstBaseParseFrame to initial state.  Currently this means
all public fields are zero-ed and a private flag is set to make
sure gst_base_parse_frame_free() only frees the contents but not
the actual frame. Use this function to initialise a #GstBaseParseFrame
allocated on the stack.</doc>
        <source-position filename="gstbaseparse.h" line="278"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="frame" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbaseparse.c"
                 line="645">#GstBaseParseFrame.</doc>
            <type name="BaseParseFrame" c:type="GstBaseParseFrame*"/>
          </instance-parameter>
        </parameters>
      </method>
    </record>
    <bitfield name="BaseParseFrameFlags"
              version="0.10.33"
              c:type="GstBaseParseFrameFlags">
      <doc xml:space="preserve"
           filename="gstbaseparse.h"
           line="103">Flags to be used in a #GstBaseParseFrame.</doc>
      <source-position filename="gstbaseparse.h" line="122"/>
      <member name="none"
              value="0"
              c:identifier="GST_BASE_PARSE_FRAME_FLAG_NONE">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="105">no flag</doc>
      </member>
      <member name="no_frame"
              value="1"
              c:identifier="GST_BASE_PARSE_FRAME_FLAG_NO_FRAME">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="106">set to indicate this buffer should not be
  counted as frame, e.g. if this frame is dependent on a previous one.
  As it is not counted as a frame, bitrate increases but frame to time
  conversions are maintained.</doc>
      </member>
      <member name="clip"
              value="2"
              c:identifier="GST_BASE_PARSE_FRAME_FLAG_CLIP">
        <doc xml:space="preserve"
             filename="gstbaseparse.h"
             line="110">@pre_push_frame can set this to indicate
   that regular segment clipping can still be performed (as opposed to
   any custom one having been done).</doc>
      </member>
    </bitfield>
    <record name="BaseParsePrivate" c:type="GstBaseParsePrivate" disguised="1">
      <source-position filename="gstbaseparse.h" line="158"/>
    </record>
    <class name="BaseSink"
           c:symbol-prefix="base_sink"
           c:type="GstBaseSink"
           parent="Gst.Element"
           abstract="1"
           glib:type-name="GstBaseSink"
           glib:get-type="gst_base_sink_get_type"
           glib:type-struct="BaseSinkClass">
      <doc xml:space="preserve"
           filename="gstbasesink.c"
           line="22">#GstBaseSink is the base class for sink elements in GStreamer, such as
xvimagesink or filesink. It is a layer on top of #GstElement that provides a
simplified interface to plugin writers. #GstBaseSink handles many details
for you, for example: preroll, clock synchronization, state changes,
activation in push or pull mode, and queries.

In most cases, when writing sink elements, there is no need to implement
class methods from #GstElement or to set functions on pads, because the
#GstBaseSink infrastructure should be sufficient.

#GstBaseSink provides support for exactly one sink pad, which should be
named "sink". A sink implementation (subclass of #GstBaseSink) should
install a pad template in its base_init function, like so:
|[
static void
my_element_base_init (gpointer g_class)
{
  GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);

  // sinktemplate should be a #GstStaticPadTemplate with direction
  // #GST_PAD_SINK and name "sink"
  gst_element_class_add_pad_template (gstelement_class,
      gst_static_pad_template_get (&amp;amp;sinktemplate));
  // see #GstElementDetails
  gst_element_class_set_details (gstelement_class, &amp;amp;details);
}
]|

#GstBaseSink will handle the prerolling correctly. This means that it will
return #GST_STATE_CHANGE_ASYNC from a state change to PAUSED until the first
buffer arrives in this element. The base class will call the
#GstBaseSinkClass.preroll() vmethod with this preroll buffer and will then
commit the state change to the next asynchronously pending state.

When the element is set to PLAYING, #GstBaseSink will synchronise on the
clock using the times returned from #GstBaseSinkClass.get_times(). If this
function returns #GST_CLOCK_TIME_NONE for the start time, no synchronisation
will be done. Synchronisation can be disabled entirely by setting the object
#GstBaseSink:sync property to %FALSE.

After synchronisation the virtual method #GstBaseSinkClass.render() will be
called. Subclasses should minimally implement this method.

Since 0.10.3 subclasses that synchronise on the clock in the
#GstBaseSinkClass.render() method are supported as well. These classes
typically receive a buffer in the render method and can then potentially
block on the clock while rendering. A typical example is an audiosink.
Since 0.10.11 these subclasses can use gst_base_sink_wait_preroll() to
perform the blocking wait.

Upon receiving the EOS event in the PLAYING state, #GstBaseSink will wait
for the clock to reach the time indicated by the stop time of the last
#GstBaseSinkClass.get_times() call before posting an EOS message. When the
element receives EOS in PAUSED, preroll completes, the event is queued and an
EOS message is posted when going to PLAYING.

#GstBaseSink will internally use the #GST_EVENT_NEWSEGMENT events to schedule
synchronisation and clipping of buffers. Buffers that fall completely outside
of the current segment are dropped. Buffers that fall partially in the
segment are rendered (and prerolled). Subclasses should do any subbuffer
clipping themselves when needed.

#GstBaseSink will by default report the current playback position in
#GST_FORMAT_TIME based on the current clock time and segment information.
If no clock has been set on the element, the query will be forwarded
upstream.

The #GstBaseSinkClass.set_caps() function will be called when the subclass
should configure itself to process a specific media type.

The #GstBaseSinkClass.start() and #GstBaseSinkClass.stop() virtual methods
will be called when resources should be allocated. Any
#GstBaseSinkClass.preroll(), #GstBaseSinkClass.render() and
#GstBaseSinkClass.set_caps() function will be called between the
#GstBaseSinkClass.start() and #GstBaseSinkClass.stop() calls.

The #GstBaseSinkClass.event() virtual method will be called when an event is
received by #GstBaseSink. Normally this method should only be overriden by
very specific elements (such as file sinks) which need to handle the
newsegment event specially.

#GstBaseSink provides an overridable #GstBaseSinkClass.buffer_alloc()
function that can be used by sinks that want to do reverse negotiation or to
provide custom buffers (hardware buffers for example) to upstream elements.

The #GstBaseSinkClass.unlock() method is called when the elements should
unblock any blocking operations they perform in the
#GstBaseSinkClass.render() method. This is mostly useful when the
#GstBaseSinkClass.render() method performs a blocking write on a file
descriptor, for example.

The #GstBaseSink:max-lateness property affects how the sink deals with
buffers that arrive too late in the sink. A buffer arrives too late in the
sink when the presentation time (as a combination of the last segment, buffer
timestamp and element base_time) plus the duration is before the current
time of the clock.
If the frame is later than max-lateness, the sink will drop the buffer
without calling the render method.
This feature is disabled if sync is disabled, the
#GstBaseSinkClass.get_times() method does not return a valid start time or
max-lateness is set to -1 (the default).
Subclasses can use gst_base_sink_set_max_lateness() to configure the
max-lateness value.

The #GstBaseSink:qos property will enable the quality-of-service features of
the basesink which gather statistics about the real-time performance of the
clock synchronisation. For each buffer received in the sink, statistics are
gathered and a QOS event is sent upstream with these numbers. This
information can then be used by upstream elements to reduce their processing
rate, for example.

Since 0.10.15 the #GstBaseSink:async property can be used to instruct the
sink to never perform an ASYNC state change. This feature is mostly usable
when dealing with non-synchronized streams or sparse streams.

Last reviewed on 2007-08-29 (0.10.15)</doc>
      <source-position filename="gstbasesink.h" line="195"/>
      <virtual-method name="activate_pull">
        <source-position filename="gstbasesink.h" line="177"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="active" transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="async_play">
        <source-position filename="gstbasesink.h" line="174"/>
        <return-value transfer-ownership="none">
          <type name="Gst.StateChangeReturn" c:type="GstStateChangeReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="buffer_alloc">
        <source-position filename="gstbasesink.h" line="151"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <type name="guint64" c:type="guint64"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="buf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer**"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="event">
        <source-position filename="gstbasesink.h" line="167"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="fixate">
        <source-position filename="gstbasesink.h" line="180"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_caps">
        <source-position filename="gstbasesink.h" line="146"/>
        <return-value transfer-ownership="full">
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_times">
        <source-position filename="gstbasesink.h" line="155"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="start" transfer-ownership="none">
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
          <parameter name="end" transfer-ownership="none">
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="preroll">
        <source-position filename="gstbasesink.h" line="168"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="query">
        <source-position filename="gstbasesink.h" line="191"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="query" transfer-ownership="none">
            <type name="Gst.Query" c:type="GstQuery*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="render">
        <source-position filename="gstbasesink.h" line="169"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="render_list">
        <source-position filename="gstbasesink.h" line="188"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="buffer_list" transfer-ownership="none">
            <type name="Gst.BufferList" c:type="GstBufferList*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="set_caps">
        <source-position filename="gstbasesink.h" line="148"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="start">
        <source-position filename="gstbasesink.h" line="159"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="stop">
        <source-position filename="gstbasesink.h" line="160"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="unlock">
        <source-position filename="gstbasesink.h" line="164"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="unlock_stop">
        <source-position filename="gstbasesink.h" line="185"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <method name="do_preroll"
              c:identifier="gst_base_sink_do_preroll"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="2320">If the @sink spawns its own thread for pulling buffers from upstream it
should call this method after it has pulled a buffer. If the element needed
to preroll, this function will perform the preroll and will then block
until the element state is changed.

This function should be called with the PREROLL_LOCK held.</doc>
        <source-position filename="gstbasesink.h" line="199"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="2332">#GST_FLOW_OK if the preroll completed and processing can
continue. Any other return value should be returned from the render vmethod.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2322">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="obj" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2323">the mini object that caused the preroll</doc>
            <type name="Gst.MiniObject" c:type="GstMiniObject*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_blocksize"
              c:identifier="gst_base_sink_get_blocksize"
              glib:get-property="blocksize"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1296">Get the number of bytes that the sink will pull when it is operating in pull
mode.</doc>
        <source-position filename="gstbasesink.h" line="238"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1303">the number of bytes @sink will pull in pull mode.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1298">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_last_buffer"
              c:identifier="gst_base_sink_get_last_buffer"
              glib:get-property="last-buffer"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="976">Get the last buffer that arrived in the sink and was used for preroll or for
rendering. This property can be used to generate thumbnails.

The #GstCaps on the buffer can be used to determine the type of the buffer.

Free-function: gst_buffer_unref</doc>
        <source-position filename="gstbasesink.h" line="223"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="987">a #GstBuffer. gst_buffer_unref() after usage.
    This function returns NULL when no buffer has arrived in the sink yet
    or when the sink is not in PAUSED or PLAYING.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="978">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_latency"
              c:identifier="gst_base_sink_get_latency"
              version="0.10.12">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1086">Get the currently configured latency.</doc>
        <source-position filename="gstbasesink.h" line="230"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1092">The configured latency.</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1088">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_max_lateness"
              c:identifier="gst_base_sink_get_max_lateness"
              glib:get-property="max-lateness"
              version="0.10.4">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="815">Gets the max lateness value. See gst_base_sink_set_max_lateness for
more details.</doc>
        <source-position filename="gstbasesink.h" line="208"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="822">The maximum time in nanoseconds that a buffer can be late
before it is dropped and not rendered. A value of -1 means an
unlimited time.</doc>
          <type name="gint64" c:type="gint64"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="817">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_render_delay"
              c:identifier="gst_base_sink_get_render_delay"
              glib:get-property="render-delay"
              version="0.10.21">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1249">Get the render delay of @sink. see gst_base_sink_set_render_delay() for more
information about the render delay.</doc>
        <source-position filename="gstbasesink.h" line="234"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1256">the render delay of @sink.</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1251">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_sync"
              c:identifier="gst_base_sink_get_sync"
              glib:get-property="sync"
              version="0.10.4">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="768">Checks if @sink is currently configured to synchronize against the
clock.</doc>
        <source-position filename="gstbasesink.h" line="204"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="775">TRUE if the sink is configured to synchronize against the clock.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="770">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_throttle_time"
              c:identifier="gst_base_sink_get_throttle_time"
              glib:get-property="throttle-time"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1344">Get the time that will be inserted between frames to control the
maximum buffers per second.</doc>
        <source-position filename="gstbasesink.h" line="242"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1351">the number of nanoseconds @sink will put between frames.</doc>
          <type name="guint64" c:type="guint64"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1346">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_ts_offset"
              c:identifier="gst_base_sink_get_ts_offset"
              glib:get-property="ts-offset"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="952">Get the synchronisation offset of @sink.</doc>
        <source-position filename="gstbasesink.h" line="220"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="958">The synchronisation offset.</doc>
          <type name="Gst.ClockTimeDiff" c:type="GstClockTimeDiff"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="954">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_async_enabled"
              c:identifier="gst_base_sink_is_async_enabled"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="905">Checks if @sink is currently configured to perform asynchronous state
changes to PAUSED.</doc>
        <source-position filename="gstbasesink.h" line="216"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="912">TRUE if the sink is configured to perform asynchronous state
changes.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="907">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_last_buffer_enabled"
              c:identifier="gst_base_sink_is_last_buffer_enabled"
              version="0.10.30">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1067">Checks if @sink is currently configured to store the last received buffer in
the last-buffer property.</doc>
        <source-position filename="gstbasesink.h" line="225"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1074">TRUE if the sink is configured to store the last received buffer.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1069">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_qos_enabled"
              c:identifier="gst_base_sink_is_qos_enabled"
              version="0.10.5">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="859">Checks if @sink is currently configured to send Quality-of-Service events
upstream.</doc>
        <source-position filename="gstbasesink.h" line="212"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="866">TRUE if the sink is configured to perform Quality-of-Service.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="861">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="query_latency"
              c:identifier="gst_base_sink_query_latency"
              version="0.10.12">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1108">Query the sink for the latency parameters. The latency will be queried from
the upstream elements. @live will be TRUE if @sink is configured to
synchronize against the clock. @upstream_live will be TRUE if an upstream
element is live.

If both @live and @upstream_live are TRUE, the sink will want to compensate
for the latency introduced by the upstream elements by setting the
@min_latency to a strictly possitive value.

This function is mostly used by subclasses.</doc>
        <source-position filename="gstbasesink.h" line="228"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="1127">TRUE if the query succeeded.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1110">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="live"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1111">if the sink is live</doc>
            <type name="gboolean" c:type="gboolean*"/>
          </parameter>
          <parameter name="upstream_live"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1112">if an upstream element is live</doc>
            <type name="gboolean" c:type="gboolean*"/>
          </parameter>
          <parameter name="min_latency"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1113">the min latency of the upstream elements</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
          <parameter name="max_latency"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1114">the max latency of the upstream elements</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_async_enabled"
              c:identifier="gst_base_sink_set_async_enabled"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="882">Configures @sink to perform all state changes asynchronusly. When async is
disabled, the sink will immediately go to PAUSED instead of waiting for a
preroll buffer. This feature is useful if the sink does not synchronize
against the clock or when it is dealing with sparse streams.</doc>
        <source-position filename="gstbasesink.h" line="215"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="884">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="enabled" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="885">the new async value.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_blocksize"
              c:identifier="gst_base_sink_set_blocksize"
              glib:set-property="blocksize"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1274">Set the number of bytes that the sink will pull when it is operating in pull
mode.</doc>
        <source-position filename="gstbasesink.h" line="237"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1276">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="blocksize" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1277">the blocksize in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_last_buffer_enabled"
              c:identifier="gst_base_sink_set_last_buffer_enabled"
              version="0.10.30">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1043">Configures @sink to store the last received buffer in the last-buffer
property.</doc>
        <source-position filename="gstbasesink.h" line="224"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1045">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="enabled" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1046">the new enable-last-buffer value.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_max_lateness"
              c:identifier="gst_base_sink_set_max_lateness"
              glib:set-property="max-lateness"
              version="0.10.4">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="793">Sets the new max lateness value to @max_lateness. This value is
used to decide if a buffer should be dropped or not based on the
buffer timestamp and the current clock time. A value of -1 means
an unlimited time.</doc>
        <source-position filename="gstbasesink.h" line="207"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="795">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="max_lateness" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="796">the new max lateness value.</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_qos_enabled"
              c:identifier="gst_base_sink_set_qos_enabled"
              version="0.10.5">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="842">Configures @sink to send Quality-of-Service events upstream.</doc>
        <source-position filename="gstbasesink.h" line="211"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="844">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="enabled" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="845">the new qos value.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_render_delay"
              c:identifier="gst_base_sink_set_render_delay"
              glib:set-property="render-delay"
              version="0.10.21">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1211">Set the render delay in @sink to @delay. The render delay is the time
between actual rendering of a buffer and its synchronisation time. Some
devices might delay media rendering which can be compensated for with this
function.

After calling this function, this sink will report additional latency and
other sinks will adjust their latency to delay the rendering of their media.

This function is usually called by subclasses.</doc>
        <source-position filename="gstbasesink.h" line="233"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1213">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="delay" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1214">the new delay</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_sync"
              c:identifier="gst_base_sink_set_sync"
              glib:set-property="sync"
              version="0.10.4">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="745">Configures @sink to synchronize on the clock or not. When
@sync is FALSE, incoming samples will be played as fast as
possible. If @sync is TRUE, the timestamps of the incomming
buffers will be used to schedule the exact render time of its
contents.</doc>
        <source-position filename="gstbasesink.h" line="203"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="747">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="sync" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="748">the new sync value.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_throttle_time"
              c:identifier="gst_base_sink_set_throttle_time"
              glib:set-property="throttle-time"
              version="0.10.33">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="1322">Set the time that will be inserted between rendered buffers. This
can be used to control the maximum buffers per second that the sink
will render.</doc>
        <source-position filename="gstbasesink.h" line="241"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1324">a #GstBaseSink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="throttle" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="1325">the throttle time in nanoseconds</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_ts_offset"
              c:identifier="gst_base_sink_set_ts_offset"
              glib:set-property="ts-offset"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="929">Adjust the synchronisation of @sink with @offset. A negative value will
render buffers earlier than their timestamp. A positive value will delay
rendering. This function can be used to fix playback of badly timestamped
buffers.</doc>
        <source-position filename="gstbasesink.h" line="219"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="931">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="932">the new offset</doc>
            <type name="Gst.ClockTimeDiff" c:type="GstClockTimeDiff"/>
          </parameter>
        </parameters>
      </method>
      <method name="wait_clock"
              c:identifier="gst_base_sink_wait_clock"
              version="0.10.20">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="2147">This function will block until @time is reached. It is usually called by
subclasses that use their own internal synchronisation.

If @time is not valid, no sycnhronisation is done and #GST_CLOCK_BADTIME is
returned. Likewise, if synchronisation is disabled in the element or there
is no clock, no synchronisation is done and #GST_CLOCK_BADTIME is returned.

This function should only be called with the PREROLL_LOCK held, like when
receiving an EOS event in the #GstBaseSinkClass.event() vmethod or when
receiving a buffer in
the #GstBaseSinkClass.render() vmethod.

The @time argument should be the running_time of when this method should
return and is not adjusted with any latency or offset configured in the
sink.</doc>
        <source-position filename="gstbasesink.h" line="244"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="2171">#GstClockReturn</doc>
          <type name="Gst.ClockReturn" c:type="GstClockReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2149">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="time" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2150">the running_time to be reached</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
          <parameter name="jitter"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2151">the jitter to be filled with time diff, or NULL</doc>
            <type name="Gst.ClockTimeDiff" c:type="GstClockTimeDiff*"/>
          </parameter>
        </parameters>
      </method>
      <method name="wait_eos"
              c:identifier="gst_base_sink_wait_eos"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="2371">This function will block until @time is reached. It is usually called by
subclasses that use their own internal synchronisation but want to let the
EOS be handled by the base class.

This function should only be called with the PREROLL_LOCK held, like when
receiving an EOS event in the ::event vmethod.

The @time argument should be the running_time of when the EOS should happen
and will be adjusted with any latency and offset configured in the sink.</doc>
        <source-position filename="gstbasesink.h" line="246"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="2387">#GstFlowReturn</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2373">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
          <parameter name="time" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2374">the running_time to be reached</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
          <parameter name="jitter"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2375">the jitter to be filled with time diff, or NULL</doc>
            <type name="Gst.ClockTimeDiff" c:type="GstClockTimeDiff*"/>
          </parameter>
        </parameters>
      </method>
      <method name="wait_preroll"
              c:identifier="gst_base_sink_wait_preroll"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="2252">If the #GstBaseSinkClass.render() method performs its own synchronisation
against the clock it must unblock when going from PLAYING to the PAUSED state
and call this method before continuing to render the remaining data.

This function will block until a state change to PLAYING happens (in which
case this function returns #GST_FLOW_OK) or the processing must be stopped due
to a state change to READY or a FLUSH event (in which case this function
returns #GST_FLOW_WRONG_STATE).

This function should only be called with the PREROLL_LOCK held, like in the
render function.</doc>
        <source-position filename="gstbasesink.h" line="200"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesink.c"
               line="2268">#GST_FLOW_OK if the preroll completed and processing can
continue. Any other return value should be returned from the render vmethod.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="sink" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesink.c"
                 line="2254">the sink</doc>
            <type name="BaseSink" c:type="GstBaseSink*"/>
          </instance-parameter>
        </parameters>
      </method>
      <property name="async"
                version="0.10.15"
                writable="1"
                transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="463">If set to #TRUE, the basesink will perform asynchronous state changes.
When set to #FALSE, the sink will not signal the parent when it prerolls.
Use this option when dealing with sparse streams or when synchronisation is
not required.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="blocksize"
                version="0.10.22"
                writable="1"
                transfer-ownership="none"
                setter="set_blocksize"
                getter="get_blocksize">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="519">The amount of bytes to pull when operating in pull mode.</doc>
        <type name="guint" c:type="guint"/>
      </property>
      <property name="enable-last-buffer"
                version="0.10.30"
                writable="1"
                transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="491">Enable the last-buffer property. If FALSE, basesink doesn't keep a
reference to the last buffer arrived and the last-buffer property is always
set to NULL. This can be useful if you need buffers to be released as soon
as possible, eg. if you're using a buffer pool.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="last-buffer"
                version="0.10.15"
                transfer-ownership="none"
                getter="get_last_buffer">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="506">The last buffer that arrived in the sink and was used for preroll or for
rendering. This property can be used to generate thumbnails. This property
can be NULL when the sink has not yet received a bufer.</doc>
        <type name="Gst.Buffer"/>
      </property>
      <property name="max-lateness"
                writable="1"
                transfer-ownership="none"
                setter="set_max_lateness"
                getter="get_max_lateness">
        <type name="gint64" c:type="gint64"/>
      </property>
      <property name="preroll-queue-len"
                writable="1"
                construct="1"
                transfer-ownership="none">
        <type name="guint" c:type="guint"/>
      </property>
      <property name="qos" writable="1" transfer-ownership="none">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="render-delay"
                version="0.10.22"
                writable="1"
                transfer-ownership="none"
                setter="set_render_delay"
                getter="get_render_delay">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="531">The additional delay between synchronisation and actual rendering of the
media. This property will add additional latency to the device in order to
make other sinks compensate for the delay.</doc>
        <type name="guint64" c:type="guint64"/>
      </property>
      <property name="sync"
                writable="1"
                transfer-ownership="none"
                setter="set_sync"
                getter="get_sync">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="throttle-time"
                version="0.10.33"
                writable="1"
                transfer-ownership="none"
                setter="set_throttle_time"
                getter="get_throttle_time">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="544">The time to insert between buffers. This property can be used to control
the maximum amount of buffers per second to render. Setting this property
to a value bigger than 0 will make the sink create THROTTLE QoS events.</doc>
        <type name="guint64" c:type="guint64"/>
      </property>
      <property name="ts-offset"
                version="0.10.15"
                writable="1"
                transfer-ownership="none"
                setter="set_ts_offset"
                getter="get_ts_offset">
        <doc xml:space="preserve"
             filename="gstbasesink.c"
             line="477">Controls the final synchronisation, a negative value will render the buffer
earlier while a positive value delays playback. This property can be
used to fix synchronisation in bad files.</doc>
        <type name="gint64" c:type="gint64"/>
      </property>
      <field name="element">
        <type name="Gst.Element" c:type="GstElement"/>
      </field>
      <field name="sinkpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="pad_mode">
        <type name="Gst.ActivateMode" c:type="GstActivateMode"/>
      </field>
      <field name="offset">
        <type name="guint64" c:type="guint64"/>
      </field>
      <field name="can_activate_pull">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="can_activate_push">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="preroll_queue">
        <type name="GLib.Queue" c:type="GQueue*"/>
      </field>
      <field name="preroll_queue_max_len">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="preroll_queued">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="buffers_queued">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="events_queued">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="eos">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="eos_queued">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="need_preroll">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="have_preroll">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="playing_async">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="have_newsegment">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="segment">
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <field name="clock_id" readable="0" private="1">
        <type name="Gst.ClockID" c:type="GstClockID"/>
      </field>
      <field name="end_time" readable="0" private="1">
        <type name="Gst.ClockTime" c:type="GstClockTime"/>
      </field>
      <field name="sync" readable="0" private="1">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="flushing" readable="0" private="1">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <union name="abidata" c:type="abidata">
        <source-position filename="gstbasesink.h" line="100"/>
        <record name="ABI" c:type="ABI">
          <source-position filename="gstbasesink.h" line="98"/>
          <field name="clip_segment" writable="1">
            <type name="Gst.Segment" c:type="GstSegment*"/>
          </field>
          <field name="max_lateness" writable="1">
            <type name="gint64" c:type="gint64"/>
          </field>
          <field name="running" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
        </record>
        <field name="_gst_reserved" writable="1">
          <array zero-terminated="0" fixed-size="19">
            <type name="gpointer" c:type="gpointer"/>
          </array>
        </field>
      </union>
      <field name="priv">
        <type name="BaseSinkPrivate" c:type="GstBaseSinkPrivate*"/>
      </field>
    </class>
    <record name="BaseSinkClass"
            c:type="GstBaseSinkClass"
            glib:is-gtype-struct-for="BaseSink">
      <doc xml:space="preserve"
           filename="gstbasesink.h"
           line="105">Subclasses can override any of the available virtual methods or not, as
needed. At the minimum, the @render method should be overridden to
output/present buffers.</doc>
      <source-position filename="gstbasesink.h" line="195"/>
      <field name="parent_class">
        <doc xml:space="preserve"
             filename="gstbasesink.h"
             line="107">Element parent class</doc>
        <type name="Gst.ElementClass" c:type="GstElementClass"/>
      </field>
      <field name="get_caps">
        <callback name="get_caps">
          <source-position filename="gstbasesink.h" line="146"/>
          <return-value transfer-ownership="full">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="set_caps">
        <callback name="set_caps">
          <source-position filename="gstbasesink.h" line="148"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="buffer_alloc">
        <callback name="buffer_alloc">
          <source-position filename="gstbasesink.h" line="151"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="offset" transfer-ownership="none">
              <type name="guint64" c:type="guint64"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="guint" c:type="guint"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="buf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer**"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="get_times">
        <callback name="get_times">
          <source-position filename="gstbasesink.h" line="155"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
            <parameter name="start" transfer-ownership="none">
              <type name="Gst.ClockTime" c:type="GstClockTime*"/>
            </parameter>
            <parameter name="end" transfer-ownership="none">
              <type name="Gst.ClockTime" c:type="GstClockTime*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="start">
        <callback name="start">
          <source-position filename="gstbasesink.h" line="159"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="stop">
        <callback name="stop">
          <source-position filename="gstbasesink.h" line="160"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="unlock">
        <callback name="unlock">
          <source-position filename="gstbasesink.h" line="164"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="event">
        <callback name="event">
          <source-position filename="gstbasesink.h" line="167"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="preroll">
        <callback name="preroll">
          <source-position filename="gstbasesink.h" line="168"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="render">
        <callback name="render">
          <source-position filename="gstbasesink.h" line="169"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="async_play">
        <callback name="async_play">
          <source-position filename="gstbasesink.h" line="174"/>
          <return-value transfer-ownership="none">
            <type name="Gst.StateChangeReturn" c:type="GstStateChangeReturn"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="activate_pull">
        <callback name="activate_pull">
          <source-position filename="gstbasesink.h" line="177"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="active" transfer-ownership="none">
              <type name="gboolean" c:type="gboolean"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="fixate">
        <callback name="fixate">
          <source-position filename="gstbasesink.h" line="180"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="unlock_stop">
        <callback name="unlock_stop">
          <source-position filename="gstbasesink.h" line="185"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="render_list">
        <callback name="render_list">
          <source-position filename="gstbasesink.h" line="188"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="buffer_list" transfer-ownership="none">
              <type name="Gst.BufferList" c:type="GstBufferList*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="query">
        <callback name="query">
          <source-position filename="gstbasesink.h" line="191"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="sink" transfer-ownership="none">
              <type name="BaseSink" c:type="GstBaseSink*"/>
            </parameter>
            <parameter name="query" transfer-ownership="none">
              <type name="Gst.Query" c:type="GstQuery*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="14">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <record name="BaseSinkPrivate" c:type="GstBaseSinkPrivate" disguised="1">
      <source-position filename="gstbasesink.h" line="49"/>
    </record>
    <class name="BaseSrc"
           c:symbol-prefix="base_src"
           c:type="GstBaseSrc"
           parent="Gst.Element"
           abstract="1"
           glib:type-name="GstBaseSrc"
           glib:get-type="gst_base_src_get_type"
           glib:type-struct="BaseSrcClass">
      <doc xml:space="preserve"
           filename="gstbasesrc.c"
           line="23">This is a generice base class for source elements. The following
types of sources are supported:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;random access sources like files&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;seekable sources&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;live sources&lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

The source can be configured to operate in any #GstFormat with the
gst_base_src_set_format() method. The currently set format determines
the format of the internal #GstSegment and any #GST_EVENT_NEWSEGMENT
events. The default format for #GstBaseSrc is #GST_FORMAT_BYTES.

#GstBaseSrc always supports push mode scheduling. If the following
conditions are met, it also supports pull mode scheduling:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;The format is set to #GST_FORMAT_BYTES (default).&lt;/para&gt;
  &lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;#GstBaseSrcClass.is_seekable() returns %TRUE.&lt;/para&gt;
  &lt;/listitem&gt;
&lt;/itemizedlist&gt;

Since 0.10.9, any #GstBaseSrc can enable pull based scheduling at any time
by overriding #GstBaseSrcClass.check_get_range() so that it returns %TRUE.

If all the conditions are met for operating in pull mode, #GstBaseSrc is
automatically seekable in push mode as well. The following conditions must
be met to make the element seekable in push mode when the format is not
#GST_FORMAT_BYTES:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;
    #GstBaseSrcClass.is_seekable() returns %TRUE.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    #GstBaseSrcClass.query() can convert all supported seek formats to the
    internal format as set with gst_base_src_set_format().
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    #GstBaseSrcClass.do_seek() is implemented, performs the seek and returns
     %TRUE.
  &lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

When the element does not meet the requirements to operate in pull mode, the
offset and length in the #GstBaseSrcClass.create() method should be ignored.
It is recommended to subclass #GstPushSrc instead, in this situation. If the
element can operate in pull mode but only with specific offsets and
lengths, it is allowed to generate an error when the wrong values are passed
to the #GstBaseSrcClass.create() function.

#GstBaseSrc has support for live sources. Live sources are sources that when
paused discard data, such as audio or video capture devices. A typical live
source also produces data at a fixed rate and thus provides a clock to publish
this rate.
Use gst_base_src_set_live() to activate the live source mode.

A live source does not produce data in the PAUSED state. This means that the
#GstBaseSrcClass.create() method will not be called in PAUSED but only in
PLAYING. To signal the pipeline that the element will not produce data, the
return value from the READY to PAUSED state will be
#GST_STATE_CHANGE_NO_PREROLL.

A typical live source will timestamp the buffers it creates with the
current running time of the pipeline. This is one reason why a live source
can only produce data in the PLAYING state, when the clock is actually
distributed and running.

Live sources that synchronize and block on the clock (an audio source, for
example) can since 0.10.12 use gst_base_src_wait_playing() when the
#GstBaseSrcClass.create() function was interrupted by a state change to
PAUSED.

The #GstBaseSrcClass.get_times() method can be used to implement pseudo-live
sources. It only makes sense to implement the #GstBaseSrcClass.get_times()
function if the source is a live source. The #GstBaseSrcClass.get_times()
function should return timestamps starting from 0, as if it were a non-live
source. The base class will make sure that the timestamps are transformed
into the current running_time. The base source will then wait for the
calculated running_time before pushing out the buffer.

For live sources, the base class will by default report a latency of 0.
For pseudo live sources, the base class will by default measure the difference
between the first buffer timestamp and the start time of get_times and will
report this value as the latency.
Subclasses should override the query function when this behaviour is not
acceptable.

There is only support in #GstBaseSrc for exactly one source pad, which
should be named "src". A source implementation (subclass of #GstBaseSrc)
should install a pad template in its class_init function, like so:
|[
static void
my_element_class_init (GstMyElementClass *klass)
{
  GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
  // srctemplate should be a #GstStaticPadTemplate with direction
  // #GST_PAD_SRC and name "src"
  gst_element_class_add_pad_template (gstelement_class,
      gst_static_pad_template_get (&amp;amp;srctemplate));
  // see #GstElementDetails
  gst_element_class_set_details (gstelement_class, &amp;amp;details);
}
]|

&lt;refsect2&gt;
&lt;title&gt;Controlled shutdown of live sources in applications&lt;/title&gt;
&lt;para&gt;
Applications that record from a live source may want to stop recording
in a controlled way, so that the recording is stopped, but the data
already in the pipeline is processed to the end (remember that many live
sources would go on recording forever otherwise). For that to happen the
application needs to make the source stop recording and send an EOS
event down the pipeline. The application would then wait for an
EOS message posted on the pipeline's bus to know when all data has
been processed and the pipeline can safely be stopped.

Since GStreamer 0.10.16 an application may send an EOS event to a source
element to make it perform the EOS logic (send EOS event downstream or post a
#GST_MESSAGE_SEGMENT_DONE on the bus). This can typically be done
with the gst_element_send_event() function on the element or its parent bin.

After the EOS has been sent to the element, the application should wait for
an EOS message to be posted on the pipeline's bus. Once this EOS message is
received, it may safely shut down the entire pipeline.

The old behaviour for controlled shutdown introduced since GStreamer 0.10.3
is still available but deprecated as it is dangerous and less flexible.

Last reviewed on 2007-12-19 (0.10.16)
&lt;/para&gt;
&lt;/refsect2&gt;</doc>
      <source-position filename="gstbasesrc.h" line="237"/>
      <virtual-method name="check_get_range">
        <source-position filename="gstbasesrc.h" line="222"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="create">
        <source-position filename="gstbasesrc.h" line="207"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <type name="guint64" c:type="guint64"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="buf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer**"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="do_seek">
        <source-position filename="gstbasesrc.h" line="212"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="segment" transfer-ownership="none">
            <type name="Gst.Segment" c:type="GstSegment*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="event">
        <source-position filename="gstbasesrc.h" line="204"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="fixate">
        <source-position filename="gstbasesrc.h" line="225"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_caps">
        <source-position filename="gstbasesrc.h" line="175"/>
        <return-value transfer-ownership="full">
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_size">
        <source-position filename="gstbasesrc.h" line="195"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_times">
        <source-position filename="gstbasesrc.h" line="191"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="start" transfer-ownership="none">
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
          <parameter name="end" transfer-ownership="none">
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="is_seekable">
        <source-position filename="gstbasesrc.h" line="198"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="negotiate">
        <source-position filename="gstbasesrc.h" line="180"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="newsegment">
        <source-position filename="gstbasesrc.h" line="183"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="prepare_seek_segment">
        <source-position filename="gstbasesrc.h" line="232"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="seek" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
          <parameter name="segment" transfer-ownership="none">
            <type name="Gst.Segment" c:type="GstSegment*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="query">
        <source-position filename="gstbasesrc.h" line="214"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="query" transfer-ownership="none">
            <type name="Gst.Query" c:type="GstQuery*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="set_caps">
        <source-position filename="gstbasesrc.h" line="177"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="start">
        <source-position filename="gstbasesrc.h" line="186"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="stop">
        <source-position filename="gstbasesrc.h" line="187"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="unlock">
        <source-position filename="gstbasesrc.h" line="201"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="unlock_stop">
        <source-position filename="gstbasesrc.h" line="228"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <method name="get_blocksize"
              c:identifier="gst_base_src_get_blocksize"
              glib:get-property="blocksize"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="685">Get the number of bytes that @src will push out with each buffer.</doc>
        <source-position filename="gstbasesrc.h" line="255"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="691">the number of bytes pushed with each buffer.</doc>
          <type name="gulong" c:type="gulong"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="687">the source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_do_timestamp"
              c:identifier="gst_base_src_get_do_timestamp"
              glib:get-property="do-timestamp"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="732">Query if @src timestamps outgoing buffers based on the current running_time.</doc>
        <source-position filename="gstbasesrc.h" line="258"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="738">%TRUE if the base class will automatically timestamp outgoing buffers.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="734">the source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_live" c:identifier="gst_base_src_is_live">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="546">Check if an element is in live mode.</doc>
        <source-position filename="gstbasesrc.h" line="244"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="552">%TRUE if element is in live mode.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="548">base source instance</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="new_seamless_segment"
              c:identifier="gst_base_src_new_seamless_segment"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="756">Prepare a new seamless segment for emission downstream. This function must
only be called by derived sub-classes, and only from the create() function,
as the stream-lock needs to be held.

The format for the new segment will be the current format of the source, as
configured with gst_base_src_set_format()</doc>
        <source-position filename="gstbasesrc.h" line="260"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="770">%TRUE if preparation of the seamless segment succeeded.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="758">The source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="start" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="759">The new start value for the segment</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
          <parameter name="stop" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="760">Stop value for the new segment</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
          <parameter name="position" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="761">The position value for the new segent</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="query_latency"
              c:identifier="gst_base_src_query_latency"
              version="0.10.13">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="613">Query the source for the latency parameters. @live will be TRUE when @src is
configured as a live source. @min_latency will be set to the difference
between the running time and the timestamp of the first buffer.
@max_latency is always the undefined value of -1.

This function is mostly used by subclasses.</doc>
        <source-position filename="gstbasesrc.h" line="250"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="627">TRUE if the query succeeded.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="615">the source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="live"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="616">if the source is live</doc>
            <type name="gboolean" c:type="gboolean*"/>
          </parameter>
          <parameter name="min_latency"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="617">the min latency of the source</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
          <parameter name="max_latency"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full"
                     optional="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="618">the max latency of the source</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_blocksize"
              c:identifier="gst_base_src_set_blocksize"
              glib:set-property="blocksize"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="664">Set the number of bytes that @src will push out with each buffer. When
@blocksize is set to -1, a default length will be used.</doc>
        <source-position filename="gstbasesrc.h" line="254"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="666">the source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="blocksize" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="667">the new blocksize in bytes</doc>
            <type name="gulong" c:type="gulong"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_do_timestamp"
              c:identifier="gst_base_src_set_do_timestamp"
              glib:set-property="do-timestamp"
              version="0.10.15">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="711">Configure @src to automatically timestamp outgoing buffers based on the
current running_time of the pipeline. This property is mostly useful for live
sources.</doc>
        <source-position filename="gstbasesrc.h" line="257"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="713">the source</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="timestamp" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="714">enable or disable timestamping</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_dynamic_size"
              c:identifier="gst_base_src_set_dynamic_size"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="594">If not @dynamic, size is only updated when needed, such as when trying to
read past current tracked size.  Otherwise, size is checked for upon each
read.</doc>
        <source-position filename="gstbasesrc.h" line="248"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="596">base source instance</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="dynamic" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="597">new dynamic size mode</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_format"
              c:identifier="gst_base_src_set_format"
              version="0.10.1">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="568">Sets the default format of the source. This will be the format used
for sending NEW_SEGMENT events and for performing seeks.

If a format of GST_FORMAT_BYTES is set, the element will be able to
operate in pull mode if the #GstBaseSrcClass.is_seekable() returns TRUE.

This function must only be called in states &lt; %GST_STATE_PAUSED.</doc>
        <source-position filename="gstbasesrc.h" line="246"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="570">base source instance</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="format" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="571">the format to use</doc>
            <type name="Gst.Format" c:type="GstFormat"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_live" c:identifier="gst_base_src_set_live">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="522">If the element listens to a live source, @live should
be set to %TRUE.

A live source will not produce data in the PAUSED state and
will therefore not be able to participate in the PREROLL phase
of a pipeline. To signal this fact to the application and the
pipeline, the state change return value of the live source will
be GST_STATE_CHANGE_NO_PREROLL.</doc>
        <source-position filename="gstbasesrc.h" line="243"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="524">base source instance</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
          <parameter name="live" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="525">new live-mode</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="wait_playing"
              c:identifier="gst_base_src_wait_playing"
              version="0.10.12">
        <doc xml:space="preserve"
             filename="gstbasesrc.c"
             line="480">If the #GstBaseSrcClass.create() method performs its own synchronisation
against the clock it must unblock when going from PLAYING to the PAUSED state
and call this method before continuing to produce the remaining data.

This function will block until a state change to PLAYING happens (in which
case this function returns #GST_FLOW_OK) or the processing must be stopped due
to a state change to READY or a FLUSH event (in which case this function
returns #GST_FLOW_WRONG_STATE).</doc>
        <source-position filename="gstbasesrc.h" line="241"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasesrc.c"
               line="495">#GST_FLOW_OK if @src is PLAYING and processing can
continue. Any other return value should be returned from the create vmethod.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasesrc.c"
                 line="482">the src</doc>
            <type name="BaseSrc" c:type="GstBaseSrc*"/>
          </instance-parameter>
        </parameters>
      </method>
      <property name="blocksize"
                writable="1"
                transfer-ownership="none"
                setter="set_blocksize"
                getter="get_blocksize">
        <type name="gulong" c:type="gulong"/>
      </property>
      <property name="do-timestamp"
                writable="1"
                transfer-ownership="none"
                setter="set_do_timestamp"
                getter="get_do_timestamp">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="num-buffers" writable="1" transfer-ownership="none">
        <type name="gint" c:type="gint"/>
      </property>
      <property name="typefind" writable="1" transfer-ownership="none">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <field name="element">
        <type name="Gst.Element" c:type="GstElement"/>
      </field>
      <field name="srcpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="live_lock">
        <type name="GLib.Mutex" c:type="GMutex*"/>
      </field>
      <field name="live_cond">
        <type name="GLib.Cond" c:type="GCond*"/>
      </field>
      <field name="is_live">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="live_running">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="blocksize">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="can_activate_push">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="pad_mode">
        <type name="Gst.ActivateMode" c:type="GstActivateMode"/>
      </field>
      <field name="seekable">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="random_access">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="clock_id">
        <type name="Gst.ClockID" c:type="GstClockID"/>
      </field>
      <field name="end_time">
        <type name="Gst.ClockTime" c:type="GstClockTime"/>
      </field>
      <field name="segment">
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <field name="need_newsegment">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="offset">
        <type name="guint64" c:type="guint64"/>
      </field>
      <field name="size">
        <type name="guint64" c:type="guint64"/>
      </field>
      <field name="num_buffers">
        <type name="gint" c:type="gint"/>
      </field>
      <field name="num_buffers_left">
        <type name="gint" c:type="gint"/>
      </field>
      <union name="data" c:type="data">
        <source-position filename="gstbasesrc.h" line="113"/>
        <record name="ABI" c:type="ABI">
          <source-position filename="gstbasesrc.h" line="111"/>
          <field name="typefind" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="running" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="pending_seek" writable="1">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </field>
        </record>
        <field name="_gst_reserved" writable="1">
          <array zero-terminated="0" fixed-size="19">
            <type name="gpointer" c:type="gpointer"/>
          </array>
        </field>
      </union>
      <field name="priv">
        <type name="BaseSrcPrivate" c:type="GstBaseSrcPrivate*"/>
      </field>
    </class>
    <record name="BaseSrcClass"
            c:type="GstBaseSrcClass"
            glib:is-gtype-struct-for="BaseSrc">
      <doc xml:space="preserve"
           filename="gstbasesrc.h"
           line="118">Subclasses can override any of the available virtual methods or not, as
needed. At the minimum, the @create method should be overridden to produce
buffers.</doc>
      <source-position filename="gstbasesrc.h" line="237"/>
      <field name="parent_class">
        <doc xml:space="preserve"
             filename="gstbasesrc.h"
             line="120">Element parent class</doc>
        <type name="Gst.ElementClass" c:type="GstElementClass"/>
      </field>
      <field name="get_caps">
        <callback name="get_caps">
          <source-position filename="gstbasesrc.h" line="175"/>
          <return-value transfer-ownership="full">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="set_caps">
        <callback name="set_caps">
          <source-position filename="gstbasesrc.h" line="177"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="negotiate">
        <callback name="negotiate">
          <source-position filename="gstbasesrc.h" line="180"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="newsegment">
        <callback name="newsegment">
          <source-position filename="gstbasesrc.h" line="183"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="start">
        <callback name="start">
          <source-position filename="gstbasesrc.h" line="186"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="stop">
        <callback name="stop">
          <source-position filename="gstbasesrc.h" line="187"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="get_times">
        <callback name="get_times">
          <source-position filename="gstbasesrc.h" line="191"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
            <parameter name="start" transfer-ownership="none">
              <type name="Gst.ClockTime" c:type="GstClockTime*"/>
            </parameter>
            <parameter name="end" transfer-ownership="none">
              <type name="Gst.ClockTime" c:type="GstClockTime*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="get_size">
        <callback name="get_size">
          <source-position filename="gstbasesrc.h" line="195"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="guint64" c:type="guint64*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="is_seekable">
        <callback name="is_seekable">
          <source-position filename="gstbasesrc.h" line="198"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="unlock">
        <callback name="unlock">
          <source-position filename="gstbasesrc.h" line="201"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="event">
        <callback name="event">
          <source-position filename="gstbasesrc.h" line="204"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="create">
        <callback name="create">
          <source-position filename="gstbasesrc.h" line="207"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="offset" transfer-ownership="none">
              <type name="guint64" c:type="guint64"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="guint" c:type="guint"/>
            </parameter>
            <parameter name="buf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer**"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="do_seek">
        <callback name="do_seek">
          <source-position filename="gstbasesrc.h" line="212"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="segment" transfer-ownership="none">
              <type name="Gst.Segment" c:type="GstSegment*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="query">
        <callback name="query">
          <source-position filename="gstbasesrc.h" line="214"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="query" transfer-ownership="none">
              <type name="Gst.Query" c:type="GstQuery*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="check_get_range">
        <callback name="check_get_range">
          <source-position filename="gstbasesrc.h" line="222"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="fixate">
        <callback name="fixate">
          <source-position filename="gstbasesrc.h" line="225"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="unlock_stop">
        <callback name="unlock_stop">
          <source-position filename="gstbasesrc.h" line="228"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="prepare_seek_segment">
        <callback name="prepare_seek_segment">
          <source-position filename="gstbasesrc.h" line="232"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="BaseSrc" c:type="GstBaseSrc*"/>
            </parameter>
            <parameter name="seek" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
            <parameter name="segment" transfer-ownership="none">
              <type name="Gst.Segment" c:type="GstSegment*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="14">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <bitfield name="BaseSrcFlags" c:type="GstBaseSrcFlags">
      <doc xml:space="preserve"
           filename="gstbasesrc.h"
           line="39">The #GstElement flags that a basesrc element may have.</doc>
      <source-position filename="gstbasesrc.h" line="50"/>
      <member name="started"
              value="1048576"
              c:identifier="GST_BASE_SRC_STARTED">
        <doc xml:space="preserve"
             filename="gstbasesrc.h"
             line="41">has source been started</doc>
      </member>
      <member name="flag_last"
              value="4194304"
              c:identifier="GST_BASE_SRC_FLAG_LAST">
        <doc xml:space="preserve"
             filename="gstbasesrc.h"
             line="42">offset to define more flags</doc>
      </member>
    </bitfield>
    <record name="BaseSrcPrivate" c:type="GstBaseSrcPrivate" disguised="1">
      <source-position filename="gstbasesrc.h" line="54"/>
    </record>
    <class name="BaseTransform"
           c:symbol-prefix="base_transform"
           c:type="GstBaseTransform"
           parent="Gst.Element"
           abstract="1"
           glib:type-name="GstBaseTransform"
           glib:get-type="gst_base_transform_get_type"
           glib:type-struct="BaseTransformClass">
      <doc xml:space="preserve"
           filename="gstbasetransform.c"
           line="24">This base class is for filter elements that process data.

It provides for:
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;one sinkpad and one srcpad&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
     Possible formats on sink and source pad implemented
     with custom transform_caps function. By default uses
     same format on sink and source.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;Handles state changes&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;Does flushing&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;Push mode&lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
      Pull mode if the sub-class transform can operate on arbitrary data
   &lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

&lt;refsect2&gt;
&lt;title&gt;Use Cases&lt;/title&gt;
&lt;para&gt;
&lt;orderedlist&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;&lt;title&gt;Passthrough mode&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    Element has no interest in modifying the buffer. It may want to inspect it,
    in which case the element should have a transform_ip function. If there
    is no transform_ip function in passthrough mode, the buffer is pushed
    intact.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    On the GstBaseTransformClass is the passthrough_on_same_caps variable
    which will automatically set/unset passthrough based on whether the
    element negotiates the same caps on both pads.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    passthrough_on_same_caps on an element that doesn't implement a
    transform_caps function is useful for elements that only inspect data
    (such as level)
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Example elements&lt;/title&gt;
    &lt;listitem&gt;Level&lt;/listitem&gt;
    &lt;listitem&gt;Videoscale, audioconvert, ffmpegcolorspace, audioresample in
    certain modes.&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;
    &lt;title&gt;Modifications in-place - input buffer and output buffer are the
    same thing.&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    The element must implement a transform_ip function.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Output buffer size must &lt;= input buffer size
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    If the always_in_place flag is set, non-writable buffers will be copied
    and passed to the transform_ip function, otherwise a new buffer will be
    created and the transform function called.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Incoming writable buffers will be passed to the transform_ip function
    immediately.  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    only implementing transform_ip and not transform implies always_in_place
    = TRUE
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Example elements&lt;/title&gt;
    &lt;listitem&gt;Volume&lt;/listitem&gt;
    &lt;listitem&gt;Audioconvert in certain modes (signed/unsigned
    conversion)&lt;/listitem&gt;
    &lt;listitem&gt;ffmpegcolorspace in certain modes (endianness
    swapping)&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
 &lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Modifications only to the caps/metadata of a buffer&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    The element does not require writable data, but non-writable buffers
    should be subbuffered so that the meta-information can be replaced.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Elements wishing to operate in this mode should replace the
    prepare_output_buffer method to create subbuffers of the input buffer
    and set always_in_place to TRUE
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Example elements&lt;/title&gt;
    &lt;listitem&gt;Capsfilter when setting caps on outgoing buffers that have
    none.&lt;/listitem&gt;
    &lt;listitem&gt;identity when it is going to re-timestamp buffers by
    datarate.&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;&lt;title&gt;Normal mode&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    always_in_place flag is not set, or there is no transform_ip function
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Element will receive an input buffer and output buffer to operate on.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Output buffer is allocated by calling the prepare_output_buffer function.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Example elements&lt;/title&gt;
    &lt;listitem&gt;Videoscale, ffmpegcolorspace, audioconvert when doing
    scaling/conversions&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
  &lt;itemizedlist&gt;&lt;title&gt;Special output buffer allocations&lt;/title&gt;
  &lt;listitem&gt;&lt;para&gt;
    Elements which need to do special allocation of their output buffers
    other than what gst_buffer_pad_alloc allows should implement a
    prepare_output_buffer method, which calls the parent implementation and
    passes the newly allocated buffer.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
  &lt;itemizedlist&gt;
  &lt;title&gt;Example elements&lt;/title&gt;
    &lt;listitem&gt;efence&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/listitem&gt;
&lt;/orderedlist&gt;
&lt;/para&gt;
&lt;/refsect2&gt;
&lt;refsect2&gt;
&lt;title&gt;Sub-class settable flags on GstBaseTransform&lt;/title&gt;
&lt;para&gt;
&lt;itemizedlist&gt;
&lt;listitem&gt;&lt;para&gt;
  &lt;itemizedlist&gt;&lt;title&gt;passthrough&lt;/title&gt;
    &lt;listitem&gt;&lt;para&gt;
      Implies that in the current configuration, the sub-class is not
      interested in modifying the buffers.
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      Elements which are always in passthrough mode whenever the same caps
      has been negotiated on both pads can set the class variable
      passthrough_on_same_caps to have this behaviour automatically.
    &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/para&gt;&lt;/listitem&gt;
&lt;listitem&gt;&lt;para&gt;
  &lt;itemizedlist&gt;&lt;title&gt;always_in_place&lt;/title&gt;
    &lt;listitem&gt;&lt;para&gt;
      Determines whether a non-writable buffer will be copied before passing
      to the transform_ip function.
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      Implied TRUE if no transform function is implemented.
    &lt;/para&gt;&lt;/listitem&gt;
    &lt;listitem&gt;&lt;para&gt;
      Implied FALSE if ONLY transform function is implemented.
    &lt;/para&gt;&lt;/listitem&gt;
  &lt;/itemizedlist&gt;
&lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;
&lt;/para&gt;
&lt;/refsect2&gt;</doc>
      <source-position filename="gstbasetransform.h" line="255"/>
      <virtual-method name="accept_caps">
        <source-position filename="gstbasetransform.h" line="248"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="direction" transfer-ownership="none">
            <type name="Gst.PadDirection" c:type="GstPadDirection"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="before_transform">
        <source-position filename="gstbasetransform.h" line="246"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="event">
        <source-position filename="gstbasetransform.h" line="231"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="fixate_caps">
        <source-position filename="gstbasetransform.h" line="213"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="direction" transfer-ownership="none">
            <type name="Gst.PadDirection" c:type="GstPadDirection"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="othercaps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="get_unit_size">
        <source-position filename="gstbasetransform.h" line="222"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="guint" c:type="guint*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="prepare_output_buffer">
        <source-position filename="gstbasetransform.h" line="240"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="input" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="gint" c:type="gint"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="buf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer**"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="query">
        <source-position filename="gstbasetransform.h" line="250"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="direction" transfer-ownership="none">
            <type name="Gst.PadDirection" c:type="GstPadDirection"/>
          </parameter>
          <parameter name="query" transfer-ownership="none">
            <type name="Gst.Query" c:type="GstQuery*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="set_caps">
        <source-position filename="gstbasetransform.h" line="225"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="incaps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="outcaps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="src_event">
        <source-position filename="gstbasetransform.h" line="244"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="event" transfer-ownership="none">
            <type name="Gst.Event" c:type="GstEvent*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="start">
        <source-position filename="gstbasetransform.h" line="228"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="stop">
        <source-position filename="gstbasetransform.h" line="229"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="transform">
        <source-position filename="gstbasetransform.h" line="233"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="inbuf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="outbuf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="transform_caps">
        <source-position filename="gstbasetransform.h" line="209"/>
        <return-value transfer-ownership="full">
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="direction" transfer-ownership="none">
            <type name="Gst.PadDirection" c:type="GstPadDirection"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="transform_ip">
        <source-position filename="gstbasetransform.h" line="235"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="buf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="transform_size">
        <source-position filename="gstbasetransform.h" line="217"/>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="direction" transfer-ownership="none">
            <type name="Gst.PadDirection" c:type="GstPadDirection"/>
          </parameter>
          <parameter name="caps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="othercaps" transfer-ownership="none">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="othersize" transfer-ownership="none">
            <type name="guint" c:type="guint*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <method name="is_in_place" c:identifier="gst_base_transform_is_in_place">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2929">See if @trans is configured as a in_place transform.</doc>
        <source-position filename="gstbasetransform.h" line="265"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasetransform.c"
               line="2935">TRUE is the transform is configured in in_place mode.

MT safe.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2931">the #GstBaseTransform to query</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_passthrough"
              c:identifier="gst_base_transform_is_passthrough">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2864">See if @trans is configured as a passthrough transform.</doc>
        <source-position filename="gstbasetransform.h" line="261"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasetransform.c"
               line="2870">TRUE is the transform is configured in passthrough mode.

MT safe.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2866">the #GstBaseTransform to query</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_qos_enabled"
              c:identifier="gst_base_transform_is_qos_enabled"
              version="0.10.5">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="3009">Queries if the transform will handle QoS.</doc>
        <source-position filename="gstbasetransform.h" line="273"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbasetransform.c"
               line="3015">TRUE if QoS is enabled.

MT safe.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3011">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="reconfigure"
              c:identifier="gst_base_transform_reconfigure"
              version="0.10.21">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="3092">Instructs @trans to renegotiate a new downstream transform on the next
buffer. This function is typically called after properties on the transform
were set that influence the output format.</doc>
        <source-position filename="gstbasetransform.h" line="280"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3094">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="set_gap_aware"
              c:identifier="gst_base_transform_set_gap_aware"
              version="0.10.16">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="3035">If @gap_aware is %FALSE (the default), output buffers will have the
%GST_BUFFER_FLAG_GAP flag unset.

If set to %TRUE, the element must handle output buffers with this flag set
correctly, i.e. it can assume that the buffer contains neutral data but must
unset the flag if the output is no neutral data.

MT safe.</doc>
        <source-position filename="gstbasetransform.h" line="275"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3037">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="gap_aware" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3038">New state</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_in_place"
              c:identifier="gst_base_transform_set_in_place">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2888">Determines whether a non-writable buffer will be copied before passing
to the transform_ip function.
&lt;itemizedlist&gt;
  &lt;listitem&gt;Always TRUE if no transform function is implemented.&lt;/listitem&gt;
  &lt;listitem&gt;Always FALSE if ONLY transform function is implemented.&lt;/listitem&gt;
&lt;/itemizedlist&gt;

MT safe.</doc>
        <source-position filename="gstbasetransform.h" line="263"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2890">the #GstBaseTransform to modify</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="in_place" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2891">Boolean value indicating that we would like to operate
on in_place buffers.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_passthrough"
              c:identifier="gst_base_transform_set_passthrough">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2829">Set passthrough mode for this filter by default. This is mostly
useful for filters that do not care about negotiation.

Always TRUE for filters which don't implement either a transform
or transform_ip method.

MT safe.</doc>
        <source-position filename="gstbasetransform.h" line="259"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2831">the #GstBaseTransform to set</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="passthrough" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2832">boolean indicating passthrough mode.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_qos_enabled"
              c:identifier="gst_base_transform_set_qos_enabled"
              version="0.10.5">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2986">Enable or disable QoS handling in the transform.

MT safe.</doc>
        <source-position filename="gstbasetransform.h" line="271"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2988">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="enabled" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2989">new state</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="suggest"
              c:identifier="gst_base_transform_suggest"
              version="0.10.21">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="3062">Instructs @trans to suggest new @caps upstream. A copy of @caps will be
taken.</doc>
        <source-position filename="gstbasetransform.h" line="278"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3064">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="caps" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3065">caps to suggest</doc>
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="3066">buffer size to suggest</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="update_qos"
              c:identifier="gst_base_transform_update_qos"
              version="0.10.5">
        <doc xml:space="preserve"
             filename="gstbasetransform.c"
             line="2953">Set the QoS parameters in the transform. This function is called internally
when a QOS event is received but subclasses can provide custom information
when needed.

MT safe.</doc>
        <source-position filename="gstbasetransform.h" line="267"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="trans" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2955">a #GstBaseTransform</doc>
            <type name="BaseTransform" c:type="GstBaseTransform*"/>
          </instance-parameter>
          <parameter name="proportion" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2956">the proportion</doc>
            <type name="gdouble" c:type="gdouble"/>
          </parameter>
          <parameter name="diff" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2957">the diff against the clock</doc>
            <type name="Gst.ClockTimeDiff" c:type="GstClockTimeDiff"/>
          </parameter>
          <parameter name="timestamp" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbasetransform.c"
                 line="2958">the timestamp of the buffer generating the QoS expressed in
running_time.</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
        </parameters>
      </method>
      <property name="qos" writable="1" transfer-ownership="none">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <field name="element">
        <type name="Gst.Element" c:type="GstElement"/>
      </field>
      <field name="sinkpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="srcpad">
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="passthrough">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="always_in_place">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="cache_caps1">
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </field>
      <field name="cache_caps1_size">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="cache_caps2">
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </field>
      <field name="cache_caps2_size">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="have_same_caps">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="delay_configure">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="pending_configure">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="negotiated">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="have_newsegment">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="segment">
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <field name="transform_lock">
        <type name="GLib.Mutex" c:type="GMutex*"/>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="BaseTransformPrivate" c:type="GstBaseTransformPrivate*"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="19">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <record name="BaseTransformClass"
            c:type="GstBaseTransformClass"
            glib:is-gtype-struct-for="BaseTransform">
      <doc xml:space="preserve"
           filename="gstbasetransform.h"
           line="144">Subclasses can override any of the available virtual methods or not, as
needed. At minimum either @transform or @transform_ip need to be overridden.
If the element can overwrite the input data with the results (data is of the
same type and quantity) it should provide @transform_ip.</doc>
      <source-position filename="gstbasetransform.h" line="255"/>
      <field name="parent_class">
        <doc xml:space="preserve"
             filename="gstbasetransform.h"
             line="146">Element parent class</doc>
        <type name="Gst.ElementClass" c:type="GstElementClass"/>
      </field>
      <field name="transform_caps">
        <callback name="transform_caps">
          <source-position filename="gstbasetransform.h" line="209"/>
          <return-value transfer-ownership="full">
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="direction" transfer-ownership="none">
              <type name="Gst.PadDirection" c:type="GstPadDirection"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="fixate_caps">
        <callback name="fixate_caps">
          <source-position filename="gstbasetransform.h" line="213"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="direction" transfer-ownership="none">
              <type name="Gst.PadDirection" c:type="GstPadDirection"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="othercaps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="transform_size">
        <callback name="transform_size">
          <source-position filename="gstbasetransform.h" line="217"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="direction" transfer-ownership="none">
              <type name="Gst.PadDirection" c:type="GstPadDirection"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="guint" c:type="guint"/>
            </parameter>
            <parameter name="othercaps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="othersize" transfer-ownership="none">
              <type name="guint" c:type="guint*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="get_unit_size">
        <callback name="get_unit_size">
          <source-position filename="gstbasetransform.h" line="222"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="guint" c:type="guint*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="set_caps">
        <callback name="set_caps">
          <source-position filename="gstbasetransform.h" line="225"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="incaps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="outcaps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="start">
        <callback name="start">
          <source-position filename="gstbasetransform.h" line="228"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="stop">
        <callback name="stop">
          <source-position filename="gstbasetransform.h" line="229"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="event">
        <callback name="event">
          <source-position filename="gstbasetransform.h" line="231"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="transform">
        <callback name="transform">
          <source-position filename="gstbasetransform.h" line="233"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="inbuf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
            <parameter name="outbuf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="transform_ip">
        <callback name="transform_ip">
          <source-position filename="gstbasetransform.h" line="235"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="buf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="passthrough_on_same_caps">
        <doc xml:space="preserve"
             filename="gstbasetransform.h"
             line="177">If set to TRUE, passthrough mode will be
                           automatically enabled if the caps are the same.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="prepare_output_buffer">
        <callback name="prepare_output_buffer">
          <source-position filename="gstbasetransform.h" line="240"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="input" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
            <parameter name="size" transfer-ownership="none">
              <type name="gint" c:type="gint"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
            <parameter name="buf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer**"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="src_event">
        <callback name="src_event">
          <source-position filename="gstbasetransform.h" line="244"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="event" transfer-ownership="none">
              <type name="Gst.Event" c:type="GstEvent*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="before_transform">
        <callback name="before_transform">
          <source-position filename="gstbasetransform.h" line="246"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="buffer" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="accept_caps">
        <callback name="accept_caps">
          <source-position filename="gstbasetransform.h" line="248"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="direction" transfer-ownership="none">
              <type name="Gst.PadDirection" c:type="GstPadDirection"/>
            </parameter>
            <parameter name="caps" transfer-ownership="none">
              <type name="Gst.Caps" c:type="GstCaps*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="query">
        <callback name="query">
          <source-position filename="gstbasetransform.h" line="250"/>
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="trans" transfer-ownership="none">
              <type name="BaseTransform" c:type="GstBaseTransform*"/>
            </parameter>
            <parameter name="direction" transfer-ownership="none">
              <type name="Gst.PadDirection" c:type="GstPadDirection"/>
            </parameter>
            <parameter name="query" transfer-ownership="none">
              <type name="Gst.Query" c:type="GstQuery*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="16">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <record name="BaseTransformPrivate"
            c:type="GstBaseTransformPrivate"
            disguised="1">
      <source-position filename="gstbasetransform.h" line="102"/>
    </record>
    <record name="BitReader" c:type="GstBitReader">
      <doc xml:space="preserve"
           filename="gstbitreader.c"
           line="30">#GstBitReader provides a bit reader that can read any number of bits
from a memory buffer. It provides functions for reading any number of bits
into 8, 16, 32 and 64 bit variables.</doc>
      <source-position filename="gstbitreader.h" line="47"/>
      <field name="data" writable="1">
        <doc xml:space="preserve"
             filename="gstbitreader.h"
             line="34">Data from which the bit reader will read</doc>
        <type name="guint8" c:type="const guint8*"/>
      </field>
      <field name="size" writable="1">
        <doc xml:space="preserve"
             filename="gstbitreader.h"
             line="35">Size of @data in bytes</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="byte" writable="1">
        <doc xml:space="preserve"
             filename="gstbitreader.h"
             line="36">Current byte position</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="bit" writable="1">
        <doc xml:space="preserve"
             filename="gstbitreader.h"
             line="37">Bit position in the current byte</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <method name="free" c:identifier="gst_bit_reader_free" version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="85">Frees a #GstBitReader instance, which was previously allocated by
gst_bit_reader_new() or gst_bit_reader_new_from_buffer().</doc>
        <source-position filename="gstbitreader.h" line="51"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="87">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_bits_uint16"
              c:identifier="gst_bit_reader_get_bits_uint16"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="263">Read @nbits bits into @val and update the current position.</doc>
        <source-position filename="gstbitreader.h" line="67"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="271">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="265">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="266">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="267">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_bits_uint32"
              c:identifier="gst_bit_reader_get_bits_uint32"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="276">Read @nbits bits into @val and update the current position.</doc>
        <source-position filename="gstbitreader.h" line="68"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="284">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="278">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="279">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="280">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_bits_uint64"
              c:identifier="gst_bit_reader_get_bits_uint64"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="289">Read @nbits bits into @val and update the current position.</doc>
        <source-position filename="gstbitreader.h" line="69"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="297">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="291">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="292">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="293">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_bits_uint8"
              c:identifier="gst_bit_reader_get_bits_uint8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="250">Read @nbits bits into @val and update the current position.</doc>
        <source-position filename="gstbitreader.h" line="66"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="258">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="252">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="253">Pointer to a #guint8 to store the result</doc>
            <type name="guint8" c:type="guint8*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="254">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_pos"
              c:identifier="gst_bit_reader_get_pos"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="169">Returns the current position of a #GstBitReader instance in bits.</doc>
        <source-position filename="gstbitreader.h" line="58"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="175">The current position of @reader in bits.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="171">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_remaining"
              c:identifier="gst_bit_reader_get_remaining"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="185">Returns the remaining number of bits of a #GstBitReader instance.</doc>
        <source-position filename="gstbitreader.h" line="59"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="191">The remaining number of bits of @reader instance.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="187">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_size"
              c:identifier="gst_bit_reader_get_size"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="201">Returns the total number of bits of a #GstBitReader instance.</doc>
        <source-position filename="gstbitreader.h" line="61"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="207">The total number of bits of @reader instance.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="203">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="init" c:identifier="gst_bit_reader_init" version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="102">Initializes a #GstBitReader instance to read from @data. This function
can be called on already initialized instances.</doc>
        <source-position filename="gstbitreader.h" line="53"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="104">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="105">data from which the bit reader should read</doc>
            <array length="1" zero-terminated="0" c:type="const guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="106">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="init_from_buffer"
              c:identifier="gst_bit_reader_init_from_buffer"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="123">Initializes a #GstBitReader instance to read from @buffer. This function
can be called on already initialized instances.</doc>
        <source-position filename="gstbitreader.h" line="54"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="125">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="126">Buffer from which the #GstBitReader should read</doc>
            <type name="Gst.Buffer" c:type="const GstBuffer*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_bits_uint16"
              c:identifier="gst_bit_reader_peek_bits_uint16"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="315">Read @nbits bits into @val but keep the current position.</doc>
        <source-position filename="gstbitreader.h" line="72"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="323">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="317">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="318">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="319">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_bits_uint32"
              c:identifier="gst_bit_reader_peek_bits_uint32"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="328">Read @nbits bits into @val but keep the current position.</doc>
        <source-position filename="gstbitreader.h" line="73"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="336">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="330">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="331">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="332">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_bits_uint64"
              c:identifier="gst_bit_reader_peek_bits_uint64"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="341">Read @nbits bits into @val but keep the current position.</doc>
        <source-position filename="gstbitreader.h" line="74"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="349">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="343">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="344">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="345">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_bits_uint8"
              c:identifier="gst_bit_reader_peek_bits_uint8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="302">Read @nbits bits into @val but keep the current position.</doc>
        <source-position filename="gstbitreader.h" line="71"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="310">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="304">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="const GstBitReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="305">Pointer to a #guint8 to store the result</doc>
            <type name="guint8" c:type="guint8*"/>
          </parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="306">number of bits to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_pos"
              c:identifier="gst_bit_reader_set_pos"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="143">Sets the new position of a #GstBitReader instance to @pos in bits.</doc>
        <source-position filename="gstbitreader.h" line="56"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="150">%TRUE if the position could be set successfully, %FALSE
otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="145">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="pos" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="146">The new position in bits</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="skip" c:identifier="gst_bit_reader_skip" version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="217">Skips @nbits bits of the #GstBitReader instance.</doc>
        <source-position filename="gstbitreader.h" line="63"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="224">%TRUE if @nbits bits could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="219">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
          <parameter name="nbits" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="220">the number of bits to skip</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="skip_to_byte"
              c:identifier="gst_bit_reader_skip_to_byte"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="234">Skips until the next byte.</doc>
        <source-position filename="gstbitreader.h" line="64"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="240">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="236">a #GstBitReader instance</doc>
            <type name="BitReader" c:type="GstBitReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <function name="new"
                c:identifier="gst_bit_reader_new"
                version="0.10.22"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="39">Create a new #GstBitReader instance, which will read from @data.

Free-function: gst_bit_reader_free</doc>
        <source-position filename="gstbitreader.h" line="49"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="48">a new #GstBitReader instance</doc>
          <type name="BitReader" c:type="GstBitReader*"/>
        </return-value>
        <parameters>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="41">Data from which the #GstBitReader should read</doc>
            <type name="guint8" c:type="const guint8*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="42">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </function>
      <function name="new_from_buffer"
                c:identifier="gst_bit_reader_new_from_buffer"
                version="0.10.22"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbitreader.c"
             line="63">Create a new #GstBitReader instance, which will read from the
#GstBuffer @buffer.

Free-function: gst_bit_reader_free</doc>
        <source-position filename="gstbitreader.h" line="50"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbitreader.c"
               line="72">a new #GstBitReader instance</doc>
          <type name="BitReader" c:type="GstBitReader*"/>
        </return-value>
        <parameters>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbitreader.c"
                 line="65">Buffer from which the #GstBitReader should read</doc>
            <type name="Gst.Buffer" c:type="const GstBuffer*"/>
          </parameter>
        </parameters>
      </function>
    </record>
    <record name="ByteReader" c:type="GstByteReader">
      <doc xml:space="preserve"
           filename="gstbytereader.c"
           line="31">#GstByteReader provides a byte reader that can read different integer and
floating point types from a memory buffer. It provides functions for reading
signed/unsigned, little/big endian integers of 8, 16, 24, 32 and 64 bits
and functions for reading little/big endian floating points numbers of
32 and 64 bits. It also provides functions to read NUL-terminated strings
in various character encodings.</doc>
      <source-position filename="gstbytereader.h" line="44"/>
      <field name="data" writable="1">
        <doc xml:space="preserve"
             filename="gstbytereader.h"
             line="33">Data from which the bit reader will read</doc>
        <type name="guint8" c:type="const guint8*"/>
      </field>
      <field name="size" writable="1">
        <doc xml:space="preserve"
             filename="gstbytereader.h"
             line="34">Size of @data in bytes</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="byte" writable="1">
        <doc xml:space="preserve"
             filename="gstbytereader.h"
             line="35">Current byte position</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <method name="dup_data"
              c:identifier="gst_byte_reader_dup_data"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="903">Free-function: g_free

Returns a newly-allocated copy of the current data
position if at least @size bytes are left and
updates the current position. Free with g_free() when no longer needed.</doc>
        <source-position filename="gstbytereader.h" line="110"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="916">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="905">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="906">Size in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="907">address of a
    #guint8 pointer variable in which to store the result</doc>
            <array length="0" zero-terminated="0" c:type="guint8**">
              <type name="guint8" c:type="guint8*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="dup_string_utf16"
              c:identifier="gst_byte_reader_dup_string_utf16"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1251">Free-function: g_free

Returns a newly-allocated copy of the current data position if there is
a NUL-terminated UTF-16 string in the data (this could be an empty string
as well), and advances the current position.

No input checking for valid UTF-16 is done. This function is endianness
agnostic - you should not assume the UTF-16 characters are in host
endianness.

This function will fail if no NUL-terminator was found in in the data.

Note: there is no peek or get variant of this function to ensure correct
byte alignment of the UTF-16 string.</doc>
        <source-position filename="gstbytereader.h" line="118"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1272">%TRUE if a string could be read, %FALSE otherwise. The
    string put into @str must be freed with g_free() when no longer needed.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1253">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="str"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1254">address of a
    #guint16 pointer varieble in which to store the result</doc>
            <array c:type="guint16**">
              <type name="guint16" c:type="guint16*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="dup_string_utf32"
              c:identifier="gst_byte_reader_dup_string_utf32"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1279">Free-function: g_free

Returns a newly-allocated copy of the current data position if there is
a NUL-terminated UTF-32 string in the data (this could be an empty string
as well), and advances the current position.

No input checking for valid UTF-32 is done. This function is endianness
agnostic - you should not assume the UTF-32 characters are in host
endianness.

This function will fail if no NUL-terminator was found in in the data.

Note: there is no peek or get variant of this function to ensure correct
byte alignment of the UTF-32 string.</doc>
        <source-position filename="gstbytereader.h" line="119"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1300">%TRUE if a string could be read, %FALSE otherwise. The
    string put into @str must be freed with g_free() when no longer needed.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1281">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="str"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1282">address of a
    #guint32 pointer varieble in which to store the result</doc>
            <array c:type="guint32**">
              <type name="guint32" c:type="guint32*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="dup_string_utf8"
              c:identifier="gst_byte_reader_dup_string_utf8"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1229">Free-function: g_free

FIXME:Reads (copies) a NUL-terminated string in the #GstByteReader instance,
advancing the current position to the byte after the string. This will work
for any NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="117"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1244">%TRUE if a string could be read into @str, %FALSE otherwise. The
    string put into @str must be freed with g_free() when no longer needed.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1231">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="str"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1232">address of a
    #gchar pointer varieble in which to store the result</doc>
            <array c:type="gchar**">
              <type name="utf8" c:type="gchar*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="free"
              c:identifier="gst_byte_reader_free"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="91">Frees a #GstByteReader instance, which was previously allocated by
gst_byte_reader_new() or gst_byte_reader_new_from_buffer().</doc>
        <source-position filename="gstbytereader.h" line="48"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="93">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_data"
              c:identifier="gst_byte_reader_get_data"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="857">Returns a constant pointer to the current data
position if at least @size bytes are left and
updates the current position.</doc>
        <source-position filename="gstbytereader.h" line="111"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="869">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="859">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="860">Size in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="861">address of a
    #guint8 pointer variable in which to store the result</doc>
            <array length="0" zero-terminated="0" c:type="const guint8**">
              <type name="guint8" c:type="guint8*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="get_float32_be"
              c:identifier="gst_byte_reader_get_float32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="772">Read a 32 bit big endian floating point value into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="101"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="780">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="774">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="775">Pointer to a #gfloat to store the result</doc>
            <type name="gfloat" c:type="gfloat*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_float32_le"
              c:identifier="gst_byte_reader_get_float32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="746">Read a 32 bit little endian floating point value into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="100"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="754">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="748">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="749">Pointer to a #gfloat to store the result</doc>
            <type name="gfloat" c:type="gfloat*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_float64_be"
              c:identifier="gst_byte_reader_get_float64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="824">Read a 64 bit big endian floating point value into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="103"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="832">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="826">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="827">Pointer to a #gdouble to store the result</doc>
            <type name="gdouble" c:type="gdouble*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_float64_le"
              c:identifier="gst_byte_reader_get_float64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="798">Read a 64 bit little endian floating point value into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="102"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="806">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="800">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="801">Pointer to a #gdouble to store the result</doc>
            <type name="gdouble" c:type="gdouble*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int16_be"
              c:identifier="gst_byte_reader_get_int16_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="356">Read a signed 16 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="67"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="364">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="358">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="359">Pointer to a #gint16 to store the result</doc>
            <type name="gint16" c:type="gint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int16_le"
              c:identifier="gst_byte_reader_get_int16_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="304">Read a signed 16 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="65"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="312">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="306">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="307">Pointer to a #gint16 to store the result</doc>
            <type name="gint16" c:type="gint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int24_be"
              c:identifier="gst_byte_reader_get_int24_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="460">Read a signed 24 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="71"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="468">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="462">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="463">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int24_le"
              c:identifier="gst_byte_reader_get_int24_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="408">Read a signed 24 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="69"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="416">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="410">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="411">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int32_be"
              c:identifier="gst_byte_reader_get_int32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="565">Read a signed 32 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="75"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="573">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="567">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="568">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int32_le"
              c:identifier="gst_byte_reader_get_int32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="513">Read a signed 32 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="73"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="521">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="515">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="516">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int64_be"
              c:identifier="gst_byte_reader_get_int64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="669">Read a signed 64 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="79"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="677">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="671">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="672">Pointer to a #gint64 to store the result</doc>
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int64_le"
              c:identifier="gst_byte_reader_get_int64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="617">Read a signed 64 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="77"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="625">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="619">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="620">Pointer to a #gint64 to store the result</doc>
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_int8"
              c:identifier="gst_byte_reader_get_int8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="255">Read a signed 8 bit integer into @val and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="63"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="262">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="257">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="258">Pointer to a #gint8 to store the result</doc>
            <type name="gint8" c:type="gint8*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_pos"
              c:identifier="gst_byte_reader_get_pos"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="175">Returns the current position of a #GstByteReader instance in bytes.</doc>
        <source-position filename="gstbytereader.h" line="55"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="181">The current position of @reader in bytes.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="177">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_remaining"
              c:identifier="gst_byte_reader_get_remaining"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="191">Returns the remaining number of bytes of a #GstByteReader instance.</doc>
        <source-position filename="gstbytereader.h" line="56"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="197">The remaining number of bytes of @reader instance.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="193">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_size"
              c:identifier="gst_byte_reader_get_size"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="207">Returns the total number of bytes of a #GstByteReader instance.</doc>
        <source-position filename="gstbytereader.h" line="58"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="213">The total number of bytes of @reader instance.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="209">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_string_utf8"
              c:identifier="gst_byte_reader_get_string_utf8"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1171">Returns a constant pointer to the current data position if there is
a NUL-terminated string in the data (this could be just a NUL terminator),
advancing the current position to the byte after the string. This will work
for any NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc.

No input checking for valid UTF-8 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="134"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1187">%TRUE if a string could be found, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1173">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="str"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1174">address of a
    #gchar pointer varieble in which to store the result</doc>
            <array c:type="const gchar**">
              <type name="utf8" c:type="gchar*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint16_be"
              c:identifier="gst_byte_reader_get_uint16_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="343">Read an unsigned 16 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="66"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="351">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="345">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="346">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint16_le"
              c:identifier="gst_byte_reader_get_uint16_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="291">Read an unsigned 16 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="64"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="299">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="293">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="294">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint24_be"
              c:identifier="gst_byte_reader_get_uint24_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="447">Read an unsigned 24 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="70"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="455">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="449">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="450">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint24_le"
              c:identifier="gst_byte_reader_get_uint24_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="395">Read an unsigned 24 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="68"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="403">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="397">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="398">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint32_be"
              c:identifier="gst_byte_reader_get_uint32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="552">Read an unsigned 32 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="74"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="560">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="554">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="555">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint32_le"
              c:identifier="gst_byte_reader_get_uint32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="500">Read an unsigned 32 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="72"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="508">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="502">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="503">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint64_be"
              c:identifier="gst_byte_reader_get_uint64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="656">Read an unsigned 64 bit big endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="78"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="664">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="658">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="659">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint64_le"
              c:identifier="gst_byte_reader_get_uint64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="604">Read an unsigned 64 bit little endian integer into @val
and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="76"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="612">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="606">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="607">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_uint8"
              c:identifier="gst_byte_reader_get_uint8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="243">Read an unsigned 8 bit integer into @val and update the current position.</doc>
        <source-position filename="gstbytereader.h" line="62"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="250">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="245">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="246">Pointer to a #guint8 to store the result</doc>
            <type name="guint8" c:type="guint8*"/>
          </parameter>
        </parameters>
      </method>
      <method name="init"
              c:identifier="gst_byte_reader_init"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="108">Initializes a #GstByteReader instance to read from @data. This function
can be called on already initialized instances.</doc>
        <source-position filename="gstbytereader.h" line="50"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="110">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="111">data from which
    the #GstByteReader should read</doc>
            <array length="1" zero-terminated="0" c:type="const guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="113">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="init_from_buffer"
              c:identifier="gst_byte_reader_init_from_buffer"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="130">Initializes a #GstByteReader instance to read from @buffer. This function
can be called on already initialized instances.</doc>
        <source-position filename="gstbytereader.h" line="51"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="132">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="133">Buffer from which the #GstByteReader should read</doc>
            <type name="Gst.Buffer" c:type="const GstBuffer*"/>
          </parameter>
        </parameters>
      </method>
      <method name="masked_scan_uint32"
              c:identifier="gst_byte_reader_masked_scan_uint32"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="926">Scan for pattern @pattern with applied mask @mask in the byte reader data,
starting from offset @offset relative to the current position.

The bytes in @pattern and @mask are interpreted left-to-right, regardless
of endianness.  All four bytes of the pattern must be present in the
byte reader data for it to match, even if the first or last bytes are masked
out.

It is an error to call this function without making sure that there is
enough data (offset+size bytes) in the byte reader.</doc>
        <source-position filename="gstbytereader.h" line="137"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="946">offset of the first match, or -1 if no match was found.

Example:
&lt;programlisting&gt;
// Assume the reader contains 0x00 0x01 0x02 ... 0xfe 0xff

gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 0, 256);
// -&gt; returns 0
gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 1, 255);
// -&gt; returns -1
gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x01020304, 1, 255);
// -&gt; returns 1
gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0001, 0, 256);
// -&gt; returns -1
gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0203, 0, 256);
// -&gt; returns 0
gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 256);
// -&gt; returns 2
gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 4);
// -&gt; returns -1
&lt;/programlisting&gt;</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="928">a #GstByteReader</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="mask" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="929">mask to apply to data before matching against @pattern</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="pattern" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="930">pattern to match (after mask is applied)</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="931">offset from which to start scanning, relative to the current
    position</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="933">number of bytes to scan from offset</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_data"
              c:identifier="gst_byte_reader_peek_data"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="880">Returns a constant pointer to the current data
position if at least @size bytes are left and
keeps the current position.</doc>
        <source-position filename="gstbytereader.h" line="112"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="892">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="882">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="883">Size in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="884">address of a
    #guint8 pointer variable in which to store the result</doc>
            <array length="0" zero-terminated="0" c:type="const guint8**">
              <type name="guint8" c:type="guint8*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="peek_float32_be"
              c:identifier="gst_byte_reader_peek_float32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="785">Read a 32 bit big endian floating point value into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="106"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="793">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="787">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="788">Pointer to a #gfloat to store the result</doc>
            <type name="gfloat" c:type="gfloat*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_float32_le"
              c:identifier="gst_byte_reader_peek_float32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="759">Read a 32 bit little endian floating point value into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="105"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="767">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="761">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="762">Pointer to a #gfloat to store the result</doc>
            <type name="gfloat" c:type="gfloat*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_float64_be"
              c:identifier="gst_byte_reader_peek_float64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="837">Read a 64 bit big endian floating point value into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="108"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="845">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="839">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="840">Pointer to a #gdouble to store the result</doc>
            <type name="gdouble" c:type="gdouble*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_float64_le"
              c:identifier="gst_byte_reader_peek_float64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="811">Read a 64 bit little endian floating point value into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="107"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="819">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="813">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="814">Pointer to a #gdouble to store the result</doc>
            <type name="gdouble" c:type="gdouble*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int16_be"
              c:identifier="gst_byte_reader_peek_int16_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="382">Read a signed 16 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="86"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="390">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="384">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="385">Pointer to a #gint16 to store the result</doc>
            <type name="gint16" c:type="gint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int16_le"
              c:identifier="gst_byte_reader_peek_int16_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="330">Read a signed 16 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="84"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="338">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="332">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="333">Pointer to a #gint16 to store the result</doc>
            <type name="gint16" c:type="gint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int24_be"
              c:identifier="gst_byte_reader_peek_int24_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="486">Read a signed 24 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="90"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="494">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="488">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="489">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int24_le"
              c:identifier="gst_byte_reader_peek_int24_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="434">Read a signed 24 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="88"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="442">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="436">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="437">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int32_be"
              c:identifier="gst_byte_reader_peek_int32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="591">Read a signed 32 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="94"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="599">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="593">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="594">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int32_le"
              c:identifier="gst_byte_reader_peek_int32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="539">Read a signed 32 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="92"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="547">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="541">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="542">Pointer to a #gint32 to store the result</doc>
            <type name="gint32" c:type="gint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int64_be"
              c:identifier="gst_byte_reader_peek_int64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="695">Read a signed 64 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="98"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="703">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="697">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="698">Pointer to a #gint64 to store the result</doc>
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int64_le"
              c:identifier="gst_byte_reader_peek_int64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="643">Read a signed 64 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="96"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="651">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="645">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="646">Pointer to a #gint64 to store the result</doc>
            <type name="gint64" c:type="gint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_int8"
              c:identifier="gst_byte_reader_peek_int8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="279">Read a signed 8 bit integer into @val but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="82"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="286">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="281">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="282">Pointer to a #gint8 to store the result</doc>
            <type name="gint8" c:type="gint8*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_string_utf8"
              c:identifier="gst_byte_reader_peek_string_utf8"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1136">Returns a constant pointer to the current data position if there is
a NUL-terminated string in the data (this could be just a NUL terminator).
The current position will be maintained. This will work for any
NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc.

No input checking for valid UTF-8 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="135"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1152">%TRUE if a string could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1138">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="str"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1139">address of a
    #gchar pointer varieble in which to store the result</doc>
            <array c:type="const gchar**">
              <type name="utf8" c:type="gchar*"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint16_be"
              c:identifier="gst_byte_reader_peek_uint16_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="369">Read an unsigned 16 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="85"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="377">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="371">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="372">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint16_le"
              c:identifier="gst_byte_reader_peek_uint16_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="317">Read an unsigned 16 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="83"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="325">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="319">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="320">Pointer to a #guint16 to store the result</doc>
            <type name="guint16" c:type="guint16*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint24_be"
              c:identifier="gst_byte_reader_peek_uint24_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="473">Read an unsigned 24 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="89"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="481">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="475">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="476">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint24_le"
              c:identifier="gst_byte_reader_peek_uint24_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="421">Read an unsigned 24 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="87"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="429">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="423">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="424">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint32_be"
              c:identifier="gst_byte_reader_peek_uint32_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="578">Read an unsigned 32 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="93"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="586">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="580">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="581">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint32_le"
              c:identifier="gst_byte_reader_peek_uint32_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="526">Read an unsigned 32 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="91"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="534">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="528">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="529">Pointer to a #guint32 to store the result</doc>
            <type name="guint32" c:type="guint32*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint64_be"
              c:identifier="gst_byte_reader_peek_uint64_be"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="682">Read an unsigned 64 bit big endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="97"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="690">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="684">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="685">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint64_le"
              c:identifier="gst_byte_reader_peek_uint64_le"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="630">Read an unsigned 64 bit little endian integer into @val
but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="95"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="638">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="632">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="633">Pointer to a #guint64 to store the result</doc>
            <type name="guint64" c:type="guint64*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek_uint8"
              c:identifier="gst_byte_reader_peek_uint8"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="267">Read an unsigned 8 bit integer into @val but keep the current position.</doc>
        <source-position filename="gstbytereader.h" line="81"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="274">%TRUE if successful, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="269">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="const GstByteReader*"/>
          </instance-parameter>
          <parameter name="val"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="270">Pointer to a #guint8 to store the result</doc>
            <type name="guint8" c:type="guint8*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_pos"
              c:identifier="gst_byte_reader_set_pos"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="150">Sets the new position of a #GstByteReader instance to @pos in bytes.</doc>
        <source-position filename="gstbytereader.h" line="53"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="157">%TRUE if the position could be set successfully, %FALSE
otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="152">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="pos" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="153">The new position in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="skip"
              c:identifier="gst_byte_reader_skip"
              version="0.10.22">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="226">Skips @nbytes bytes of the #GstByteReader instance.</doc>
        <source-position filename="gstbytereader.h" line="60"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="233">%TRUE if @nbytes bytes could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="228">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
          <parameter name="nbytes" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="229">the number of bytes to skip</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="skip_string_utf16"
              c:identifier="gst_byte_reader_skip_string_utf16"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1084">Skips a NUL-terminated UTF-16 string in the #GstByteReader instance,
advancing the current position to the byte after the string.

No input checking for valid UTF-16 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="125"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1095">%TRUE if a string could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1086">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="skip_string_utf32"
              c:identifier="gst_byte_reader_skip_string_utf32"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1101">Skips a NUL-terminated UTF-32 string in the #GstByteReader instance,
advancing the current position to the byte after the string.

No input checking for valid UTF-32 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="126"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1112">%TRUE if a string could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1103">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="skip_string_utf8"
              c:identifier="gst_byte_reader_skip_string_utf8"
              version="0.10.24">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="1067">Skips a NUL-terminated string in the #GstByteReader instance, advancing
the current position to the byte after the string. This will work for
any NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done.

This function will fail if no NUL-terminator was found in in the data.</doc>
        <source-position filename="gstbytereader.h" line="124"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1078">%TRUE if a string could be skipped, %FALSE otherwise.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="reader" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="1069">a #GstByteReader instance</doc>
            <type name="ByteReader" c:type="GstByteReader*"/>
          </instance-parameter>
        </parameters>
      </method>
      <function name="new"
                c:identifier="gst_byte_reader_new"
                version="0.10.22"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="44">Create a new #GstByteReader instance, which will read from @data.

Free-function: gst_byte_reader_free</doc>
        <source-position filename="gstbytereader.h" line="46"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="54">a new #GstByteReader instance</doc>
          <type name="ByteReader" c:type="GstByteReader*"/>
        </return-value>
        <parameters>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="46">data from which the
    #GstByteReader should read</doc>
            <array length="1" zero-terminated="0" c:type="const guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="48">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </function>
      <function name="new_from_buffer"
                c:identifier="gst_byte_reader_new_from_buffer"
                version="0.10.22"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytereader.c"
             line="69">Create a new #GstByteReader instance, which will read from the
#GstBuffer @buffer.

Free-function: gst_byte_reader_free</doc>
        <source-position filename="gstbytereader.h" line="47"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="78">a new #GstByteReader instance</doc>
          <type name="ByteReader" c:type="GstByteReader*"/>
        </return-value>
        <parameters>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytereader.c"
                 line="71">Buffer from which the #GstByteReader should read</doc>
            <type name="Gst.Buffer" c:type="const GstBuffer*"/>
          </parameter>
        </parameters>
      </function>
    </record>
    <record name="ByteWriter" c:type="GstByteWriter">
      <doc xml:space="preserve"
           filename="gstbytewriter.c"
           line="28">#GstByteWriter provides a byte writer and reader that can write/read different
integer and floating point types to/from a memory buffer. It provides functions
for writing/reading signed/unsigned, little/big endian integers of 8, 16, 24,
32 and 64 bits and functions for reading little/big endian floating points numbers of
32 and 64 bits. It also provides functions to write/read NUL-terminated strings
in various character encodings.</doc>
      <source-position filename="gstbytewriter.h" line="49"/>
      <field name="parent" writable="1">
        <doc xml:space="preserve"
             filename="gstbytewriter.h"
             line="35">#GstByteReader parent</doc>
        <type name="ByteReader" c:type="GstByteReader"/>
      </field>
      <field name="alloc_size" writable="1">
        <doc xml:space="preserve"
             filename="gstbytewriter.h"
             line="36">Allocation size of the data</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="fixed" writable="1">
        <doc xml:space="preserve"
             filename="gstbytewriter.h"
             line="37">If %TRUE no reallocations are allowed</doc>
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="owned" writable="1">
        <doc xml:space="preserve"
             filename="gstbytewriter.h"
             line="38">If %FALSE no reallocations are allowed and copies of data are returned</doc>
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <method name="ensure_free_space"
              c:identifier="gst_byte_writer_ensure_free_space"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="407">Checks if enough free space from the current write cursor is
available and reallocates if necessary.</doc>
        <source-position filename="gstbytewriter.h" line="122"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="415">%TRUE if at least @size bytes are still available</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="409">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="410">Number of bytes that should be available</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="fill"
              c:identifier="gst_byte_writer_fill"
              version="0.10.27">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="786">Writes @size bytes containing @value to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="149"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="794">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="788">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="value" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="789">Value to be writen</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="790">Number of bytes to be writen</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="free"
              c:identifier="gst_byte_writer_free"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="315">Frees @writer and all memory allocated by it.</doc>
        <source-position filename="gstbytewriter.h" line="61"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="317">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="free_and_get_buffer"
              c:identifier="gst_byte_writer_free_and_get_buffer"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="358">Frees @writer and all memory allocated by it except
the current data, which is returned as #GstBuffer.

Free-function: gst_buffer_unref</doc>
        <source-position filename="gstbytewriter.h" line="63"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="367">the current data as buffer. gst_buffer_unref()
    after usage.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="360">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="free_and_get_data"
              c:identifier="gst_byte_writer_free_and_get_data"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="332">Frees @writer and all memory allocated by it except
the current data, which is returned.

Free-function: g_free</doc>
        <source-position filename="gstbytewriter.h" line="62"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="341">the current data. g_free() after usage.</doc>
          <type name="guint8" c:type="guint8*"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="334">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_remaining"
              c:identifier="gst_byte_writer_get_remaining"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="385">Returns the remaining size of data that can still be written. If
-1 is returned the remaining size is only limited by system resources.</doc>
        <source-position filename="gstbytewriter.h" line="121"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="392">the remaining size of data that can still be written</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="387">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="const GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="init"
              c:identifier="gst_byte_writer_init"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="145">Initializes @writer to an empty instance</doc>
        <source-position filename="gstbytewriter.h" line="56"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="147">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="init_with_buffer"
              c:identifier="gst_byte_writer_init_with_buffer"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="216">Initializes @writer with the given
buffer. If @initialized is %TRUE it is possible to
read the complete buffer from the #GstByteWriter from the beginning.

&lt;note&gt;@buffer must be writable&lt;/note&gt;</doc>
        <source-position filename="gstbytewriter.h" line="59"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="218">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="219">Buffer used for writing</doc>
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="initialized" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="220">If %TRUE the complete data can be read from the beginning</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="init_with_data"
              c:identifier="gst_byte_writer_init_with_data"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="187">Initializes @writer with the given
memory area. If @initialized is %TRUE it is possible to
read @size bytes from the #GstByteWriter from the beginning.</doc>
        <source-position filename="gstbytewriter.h" line="58"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="189">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="190">Memory
    area for writing</doc>
            <array length="1" zero-terminated="0" c:type="guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="192">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="initialized" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="193">If %TRUE the complete data can be read from the beginning</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="init_with_size"
              c:identifier="gst_byte_writer_init_with_size"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="163">Initializes @writer with the given initial data size.</doc>
        <source-position filename="gstbytewriter.h" line="57"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="165">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="166">Initial size of data</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="fixed" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="167">If %TRUE the data can't be reallocated</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_data"
              c:identifier="gst_byte_writer_put_data"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="774">Writes @size bytes of @data to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="148"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="782">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="776">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="777">Data to write</doc>
            <array length="1" zero-terminated="0" c:type="const guint8*">
              <type name="guint8" c:type="guint8"/>
            </array>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="778">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_float32_be"
              c:identifier="gst_byte_writer_put_float32_be"
              version="0.10.27">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="696">Writes a big endian 32 bit float to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="143"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="703">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="698">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="699">Value to write</doc>
            <type name="gfloat" c:type="gfloat"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_float32_le"
              c:identifier="gst_byte_writer_put_float32_le"
              version="0.10.27">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="718">Writes a little endian 32 bit float to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="144"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="725">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="720">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="721">Value to write</doc>
            <type name="gfloat" c:type="gfloat"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_float64_be"
              c:identifier="gst_byte_writer_put_float64_be"
              version="0.10.27">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="707">Writes a big endian 64 bit float to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="145"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="714">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="709">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="710">Value to write</doc>
            <type name="gdouble" c:type="gdouble"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_float64_le"
              c:identifier="gst_byte_writer_put_float64_le"
              version="0.10.27">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="729">Writes a little endian 64 bit float to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="146"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="736">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="731">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="732">Value to write</doc>
            <type name="gdouble" c:type="gdouble"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int16_be"
              c:identifier="gst_byte_writer_put_int16_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="608">Writes a signed big endian 16 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="128"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="615">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="610">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="611">Value to write</doc>
            <type name="gint16" c:type="gint16"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int16_le"
              c:identifier="gst_byte_writer_put_int16_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="652">Writes a signed little endian 16 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="129"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="659">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="654">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="655">Value to write</doc>
            <type name="gint16" c:type="gint16"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int24_be"
              c:identifier="gst_byte_writer_put_int24_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="619">Writes a signed big endian 24 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="132"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="626">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="621">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="622">Value to write</doc>
            <type name="gint32" c:type="gint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int24_le"
              c:identifier="gst_byte_writer_put_int24_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="663">Writes a signed little endian 24 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="133"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="670">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="665">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="666">Value to write</doc>
            <type name="gint32" c:type="gint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int32_be"
              c:identifier="gst_byte_writer_put_int32_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="630">Writes a signed big endian 32 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="136"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="637">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="632">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="633">Value to write</doc>
            <type name="gint32" c:type="gint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int32_le"
              c:identifier="gst_byte_writer_put_int32_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="674">Writes a signed little endian 32 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="137"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="681">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="676">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="677">Value to write</doc>
            <type name="gint32" c:type="gint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int64_be"
              c:identifier="gst_byte_writer_put_int64_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="641">Writes a signed big endian 64 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="140"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="648">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="643">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="644">Value to write</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int64_le"
              c:identifier="gst_byte_writer_put_int64_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="685">Writes a signed little endian 64 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="141"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="692">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="687">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="688">Value to write</doc>
            <type name="gint64" c:type="gint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_int8"
              c:identifier="gst_byte_writer_put_int8"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="597">Writes a signed 8 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="125"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="604">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="599">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="600">Value to write</doc>
            <type name="gint8" c:type="gint8"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_string_utf16"
              c:identifier="gst_byte_writer_put_string_utf16"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="752">Writes a NUL-terminated UTF16 string to @writer (including the terminator).</doc>
        <source-position filename="gstbytewriter.h" line="151"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="759">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="754">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="755">UTF16 string to write</doc>
            <array c:type="const guint16*">
              <type name="guint16" c:type="guint16"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="put_string_utf32"
              c:identifier="gst_byte_writer_put_string_utf32"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="763">Writes a NUL-terminated UTF32 string to @writer (including the terminator).</doc>
        <source-position filename="gstbytewriter.h" line="152"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="770">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="765">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="766">UTF32 string to write</doc>
            <array c:type="const guint32*">
              <type name="guint32" c:type="guint32"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="put_string_utf8"
              c:identifier="gst_byte_writer_put_string_utf8"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="740">Writes a NUL-terminated UTF8 string to @writer (including the terminator).</doc>
        <source-position filename="gstbytewriter.h" line="150"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="748">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="742">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="743">UTF8 string to
    write</doc>
            <array c:type="const gchar*">
              <type name="utf8" c:type="gchar"/>
            </array>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint16_be"
              c:identifier="gst_byte_writer_put_uint16_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="509">Writes a unsigned big endian 16 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="126"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="516">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="511">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="512">Value to write</doc>
            <type name="guint16" c:type="guint16"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint16_le"
              c:identifier="gst_byte_writer_put_uint16_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="553">Writes a unsigned little endian 16 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="127"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="560">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="555">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="556">Value to write</doc>
            <type name="guint16" c:type="guint16"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint24_be"
              c:identifier="gst_byte_writer_put_uint24_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="520">Writes a unsigned big endian 24 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="130"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="527">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="522">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="523">Value to write</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint24_le"
              c:identifier="gst_byte_writer_put_uint24_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="564">Writes a unsigned little endian 24 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="131"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="571">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="566">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="567">Value to write</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint32_be"
              c:identifier="gst_byte_writer_put_uint32_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="531">Writes a unsigned big endian 32 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="134"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="538">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="533">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="534">Value to write</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint32_le"
              c:identifier="gst_byte_writer_put_uint32_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="575">Writes a unsigned little endian 32 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="135"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="582">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="577">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="578">Value to write</doc>
            <type name="guint32" c:type="guint32"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint64_be"
              c:identifier="gst_byte_writer_put_uint64_be"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="542">Writes a unsigned big endian 64 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="138"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="549">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="544">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="545">Value to write</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint64_le"
              c:identifier="gst_byte_writer_put_uint64_le"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="586">Writes a unsigned little endian 64 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="139"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="593">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="588">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="589">Value to write</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
        </parameters>
      </method>
      <method name="put_uint8"
              c:identifier="gst_byte_writer_put_uint8"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="498">Writes a unsigned 8 bit integer to @writer.</doc>
        <source-position filename="gstbytewriter.h" line="124"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="505">%TRUE if the value could be written</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="500">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
          <parameter name="val" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="501">Value to write</doc>
            <type name="guint8" c:type="guint8"/>
          </parameter>
        </parameters>
      </method>
      <method name="reset"
              c:identifier="gst_byte_writer_reset"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="240">Resets @writer and frees the data if it's
owned by @writer.</doc>
        <source-position filename="gstbytewriter.h" line="65"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="242">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="reset_and_get_buffer"
              c:identifier="gst_byte_writer_reset_and_get_buffer"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="287">Resets @writer and returns the current data as buffer.

Free-function: gst_buffer_unref</doc>
        <source-position filename="gstbytewriter.h" line="67"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="295">the current data as buffer. gst_buffer_unref()
    after usage.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="289">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="reset_and_get_data"
              c:identifier="gst_byte_writer_reset_and_get_data"
              version="0.10.26">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="259">Resets @writer and returns the current data.

Free-function: g_free</doc>
        <source-position filename="gstbytewriter.h" line="66"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="267">the current data. g_free() after usage.</doc>
          <type name="guint8" c:type="guint8*"/>
        </return-value>
        <parameters>
          <instance-parameter name="writer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="261">#GstByteWriter instance</doc>
            <type name="ByteWriter" c:type="GstByteWriter*"/>
          </instance-parameter>
        </parameters>
      </method>
      <function name="new"
                c:identifier="gst_byte_writer_new"
                version="0.10.26"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="41">Creates a new, empty #GstByteWriter instance

Free-function: gst_byte_writer_free</doc>
        <source-position filename="gstbytewriter.h" line="51"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="48">a new, empty #GstByteWriter instance</doc>
          <type name="ByteWriter" c:type="GstByteWriter*"/>
        </return-value>
      </function>
      <function name="new_with_buffer"
                c:identifier="gst_byte_writer_new_with_buffer"
                version="0.10.26"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="118">Creates a new #GstByteWriter instance with the given
buffer. If @initialized is %TRUE it is possible to
read the complete buffer from the #GstByteWriter from the beginning.

&lt;note&gt;@buffer must be writable&lt;/note&gt;

Free-function: gst_byte_writer_free</doc>
        <source-position filename="gstbytewriter.h" line="54"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="131">a new #GstByteWriter instance</doc>
          <type name="ByteWriter" c:type="GstByteWriter*"/>
        </return-value>
        <parameters>
          <parameter name="buffer" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="120">Buffer used for writing</doc>
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="initialized" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="121">If %TRUE the complete data can be read from the beginning</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </function>
      <function name="new_with_data"
                c:identifier="gst_byte_writer_new_with_data"
                version="0.10.26"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="88">Creates a new #GstByteWriter instance with the given
memory area. If @initialized is %TRUE it is possible to
read @size bytes from the #GstByteWriter from the beginning.

Free-function: gst_byte_writer_free</doc>
        <source-position filename="gstbytewriter.h" line="53"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="100">a new #GstByteWriter instance</doc>
          <type name="ByteWriter" c:type="GstByteWriter*"/>
        </return-value>
        <parameters>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="90">Memory area for writing</doc>
            <type name="guint8" c:type="guint8*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="91">Size of @data in bytes</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="initialized" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="92">If %TRUE the complete data can be read from the beginning</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </function>
      <function name="new_with_size"
                c:identifier="gst_byte_writer_new_with_size"
                version="0.10.26"
                introspectable="0">
        <doc xml:space="preserve"
             filename="gstbytewriter.c"
             line="61">Creates a new #GstByteWriter instance with the given
initial data size.

Free-function: gst_byte_writer_free</doc>
        <source-position filename="gstbytewriter.h" line="52"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstbytewriter.c"
               line="71">a new #GstByteWriter instance</doc>
          <type name="ByteWriter" c:type="GstByteWriter*"/>
        </return-value>
        <parameters>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="63">Initial size of data</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="fixed" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstbytewriter.c"
                 line="64">If %TRUE the data can't be reallocated</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </function>
    </record>
    <function-macro name="COLLECT_PADS"
                    c:identifier="GST_COLLECT_PADS"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="30"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2"
                    c:identifier="GST_COLLECT_PADS2"
                    introspectable="0">
      <source-position filename="gstcollectpads2.h" line="31"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_CLASS"
                    c:identifier="GST_COLLECT_PADS2_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads2.h" line="32"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_GET_CLASS"
                    c:identifier="GST_COLLECT_PADS2_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads2.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_GET_STREAM_LOCK"
                    c:identifier="GST_COLLECT_PADS2_GET_STREAM_LOCK"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="244">Get the stream lock of @pads. The stream lock is used to coordinate and
serialize execution among the various streams being collected, and in
protecting the resources used to accomplish this.</doc>
      <source-position filename="gstcollectpads2.h" line="254"/>
      <parameters>
        <parameter name="pads">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="246">a #GstCollectPads2</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STATE"
                    c:identifier="GST_COLLECT_PADS2_STATE"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="77">A flags word containing #GstCollectPads2StateFlags flags set
on this collected pad.</doc>
      <source-position filename="gstcollectpads2.h" line="86"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="79">a #GstCollectData2.</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STATE_IS_SET"
                    c:identifier="GST_COLLECT_PADS2_STATE_IS_SET"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="87">Gives the status of a specific flag on a collected pad.</doc>
      <source-position filename="gstcollectpads2.h" line="96"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="89">a #GstCollectData2.</doc>
        </parameter>
        <parameter name="flag">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="90">the #GstCollectPads2StateFlags to check.</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STATE_SET"
                    c:identifier="GST_COLLECT_PADS2_STATE_SET"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="97">Sets a state flag on a collected pad.</doc>
      <source-position filename="gstcollectpads2.h" line="106"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="99">a #GstCollectData2.</doc>
        </parameter>
        <parameter name="flag">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="100">the #GstCollectPads2StateFlags to set.</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STATE_UNSET"
                    c:identifier="GST_COLLECT_PADS2_STATE_UNSET"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="107">Clears a state flag on a collected pad.</doc>
      <source-position filename="gstcollectpads2.h" line="116"/>
      <parameters>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="109">a #GstCollectData2.</doc>
        </parameter>
        <parameter name="flag">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="110">the #GstCollectPads2StateFlags to clear.</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STREAM_LOCK"
                    c:identifier="GST_COLLECT_PADS2_STREAM_LOCK"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="255">Lock the stream lock of @pads.</doc>
      <source-position filename="gstcollectpads2.h" line="263"/>
      <parameters>
        <parameter name="pads">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="257">a #GstCollectPads2</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS2_STREAM_UNLOCK"
                    c:identifier="GST_COLLECT_PADS2_STREAM_UNLOCK"
                    version="0.10.36"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="264">Unlock the stream lock of @pads.</doc>
      <source-position filename="gstcollectpads2.h" line="272"/>
      <parameters>
        <parameter name="pads">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="266">a #GstCollectPads2</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_BROADCAST"
                    c:identifier="GST_COLLECT_PADS_BROADCAST"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="126"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_CLASS"
                    c:identifier="GST_COLLECT_PADS_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="31"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_GET_CLASS"
                    c:identifier="GST_COLLECT_PADS_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_GET_COND"
                    c:identifier="GST_COLLECT_PADS_GET_COND"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="123"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_GET_PAD_LOCK"
                    c:identifier="GST_COLLECT_PADS_GET_PAD_LOCK"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="119"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_PAD_LOCK"
                    c:identifier="GST_COLLECT_PADS_PAD_LOCK"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="120"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_PAD_UNLOCK"
                    c:identifier="GST_COLLECT_PADS_PAD_UNLOCK"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="121"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_SIGNAL"
                    c:identifier="GST_COLLECT_PADS_SIGNAL"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="125"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="COLLECT_PADS_WAIT"
                    c:identifier="GST_COLLECT_PADS_WAIT"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="124"/>
      <parameters>
        <parameter name="pads">
        </parameter>
      </parameters>
    </function-macro>
    <record name="CollectData" c:type="GstCollectData">
      <doc xml:space="preserve"
           filename="gstcollectpads.h"
           line="76">Structure used by the collect_pads.</doc>
      <source-position filename="gstcollectpads.h" line="106"/>
      <field name="collect" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="78">owner #GstCollectPads</doc>
        <type name="CollectPads" c:type="GstCollectPads*"/>
      </field>
      <field name="pad" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="79">#GstPad managed by this data</doc>
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="buffer" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="80">currently queued buffer.</doc>
        <type name="Gst.Buffer" c:type="GstBuffer*"/>
      </field>
      <field name="pos" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="81">position in the buffer</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="segment" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="82">last segment received.</doc>
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <union name="abidata" c:type="abidata">
        <source-position filename="gstcollectpads.h" line="105"/>
        <record name="ABI" c:type="ABI">
          <source-position filename="gstcollectpads.h" line="102"/>
          <field name="flushing" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="new_segment" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="eos" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="refcount" writable="1">
            <type name="gint" c:type="gint"/>
          </field>
        </record>
        <field name="_gst_reserved" writable="1">
          <array zero-terminated="0" fixed-size="4">
            <type name="gpointer" c:type="gpointer"/>
          </array>
        </field>
      </union>
    </record>
    <record name="CollectData2" c:type="GstCollectData2" version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="118">Structure used by the collect_pads2.</doc>
      <source-position filename="gstcollectpads2.h" line="147"/>
      <field name="collect" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="120">owner #GstCollectPads2</doc>
        <type name="CollectPads2" c:type="GstCollectPads2*"/>
      </field>
      <field name="pad" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="121">#GstPad managed by this data</doc>
        <type name="Gst.Pad" c:type="GstPad*"/>
      </field>
      <field name="buffer" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="122">currently queued buffer.</doc>
        <type name="Gst.Buffer" c:type="GstBuffer*"/>
      </field>
      <field name="pos" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="123">position in the buffer</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="segment" writable="1">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="124">last segment received.</doc>
        <type name="Gst.Segment" c:type="GstSegment"/>
      </field>
      <field name="state" readable="0" private="1">
        <type name="CollectPads2StateFlags"
              c:type="GstCollectPads2StateFlags"/>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="CollectData2Private" c:type="GstCollectData2Private*"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <callback name="CollectData2DestroyNotify"
              c:type="GstCollectData2DestroyNotify"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="43">A function that will be called when the #GstCollectData2 will be freed.
It is passed the pointer to the structure and should free any custom
memory and resources allocated for it.</doc>
      <source-position filename="gstcollectpads2.h" line="53"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="data" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="45">the #GstCollectData2 that will be freed</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
      </parameters>
    </callback>
    <record name="CollectData2Private"
            c:type="GstCollectData2Private"
            disguised="1">
      <source-position filename="gstcollectpads2.h" line="38"/>
    </record>
    <callback name="CollectDataDestroyNotify"
              c:type="GstCollectDataDestroyNotify"
              version="0.10.12">
      <doc xml:space="preserve"
           filename="gstcollectpads.h"
           line="41">A function that will be called when the #GstCollectData will be freed.
It is passed the pointer to the structure and should free any custom
memory and resources allocated for it.</doc>
      <source-position filename="gstcollectpads.h" line="51"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="data" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="43">the #GstCollectData that will be freed</doc>
          <type name="CollectData" c:type="GstCollectData*"/>
        </parameter>
      </parameters>
    </callback>
    <class name="CollectPads"
           c:symbol-prefix="collect_pads"
           c:type="GstCollectPads"
           parent="Gst.Object"
           glib:type-name="GstCollectPads"
           glib:get-type="gst_collect_pads_get_type"
           glib:type-struct="CollectPadsClass">
      <doc xml:space="preserve"
           filename="gstcollectpads.c"
           line="21">Manages a set of pads that operate in collect mode. This means that control
is given to the manager of this object when all pads have data.
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;
    Collectpads are created with gst_collect_pads_new(). A callback should then
    be installed with gst_collect_pads_set_function ().
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Pads are added to the collection with gst_collect_pads_add_pad()/
    gst_collect_pads_remove_pad(). The pad
    has to be a sinkpad. The chain and event functions of the pad are
    overridden. The element_private of the pad is used to store
    private information for the collectpads.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    For each pad, data is queued in the _chain function or by
    performing a pull_range.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    When data is queued on all pads, the callback function is called.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Data can be dequeued from the pad with the gst_collect_pads_pop() method.
    One can peek at the data with the gst_collect_pads_peek() function.
    These functions will return NULL if the pad received an EOS event. When all
    pads return NULL from a gst_collect_pads_peek(), the element can emit an EOS
    event itself.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Data can also be dequeued in byte units using the gst_collect_pads_available(),
    gst_collect_pads_read() and gst_collect_pads_flush() calls.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Elements should call gst_collect_pads_start() and gst_collect_pads_stop() in
    their state change functions to start and stop the processing of the collecpads.
    The gst_collect_pads_stop() call should be called before calling the parent
    element state change function in the PAUSED_TO_READY state change to ensure
    no pad is blocked and the element can finish streaming.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    gst_collect_pads_collect() and gst_collect_pads_collect_range() can be used by
    elements that start a #GstTask to drive the collect_pads. This feature is however
    not yet implemented.
  &lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

Last reviewed on 2006-05-10 (0.10.6)</doc>
      <source-position filename="gstcollectpads.h" line="177"/>
      <constructor name="new" c:identifier="gst_collect_pads_new">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="165">Create a new instance of #GstCollectPads.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="182"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="172">a new #GstCollectPads, or NULL in case of an error.</doc>
          <type name="CollectPads" c:type="GstCollectPads*"/>
        </return-value>
      </constructor>
      <method name="add_pad"
              c:identifier="gst_collect_pads_add_pad"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="242">Add a pad to the collection of collect pads. The pad has to be
a sinkpad. The refcount of the pad is incremented. Use
gst_collect_pads_remove_pad() to remove the pad from the collection
again.

This function will override the chain and event functions of the pad
along with the element_private data, which is used to store private
information for the collectpads.

You specify a size for the returned #GstCollectData structure
so that you can use it to store additional information.

The pad will be automatically activated in push mode when @pads is
started.

This function calls gst_collect_pads_add_pad_full() passing a value of NULL
for destroy_notify.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="191"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="268">a new #GstCollectData to identify the new pad. Or NULL
  if wrong parameters are supplied.</doc>
          <type name="CollectData" c:type="GstCollectData*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="244">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="245">the pad to add</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="246">the size of the returned #GstCollectData structure</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="add_pad_full"
              c:identifier="gst_collect_pads_add_pad_full"
              version="0.10.12"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="277">Add a pad to the collection of collect pads. The pad has to be
a sinkpad. The refcount of the pad is incremented. Use
gst_collect_pads_remove_pad() to remove the pad from the collection
again.

You specify a size for the returned #GstCollectData structure
so that you can use it to store additional information.

You can also specify a #GstCollectDataDestroyNotify that will be called
just before the #GstCollectData structure is freed. It is passed the
pointer to the structure and should free any custom memory and resources
allocated for it.

The pad will be automatically activated in push mode when @pads is
started.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="192"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="305">a new #GstCollectData to identify the new pad. Or NULL
  if wrong parameters are supplied.</doc>
          <type name="CollectData" c:type="GstCollectData*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="279">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="280">the pad to add</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="281">the size of the returned #GstCollectData structure</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="destroy_notify" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="282">function to be called before the returned #GstCollectData
structure is freed</doc>
            <type name="CollectDataDestroyNotify"
                  c:type="GstCollectDataDestroyNotify"/>
          </parameter>
        </parameters>
      </method>
      <method name="available" c:identifier="gst_collect_pads_available">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="819">Query how much bytes can be read from each queued buffer. This means
that the result of this call is the maximum number of bytes that can
be read from each of the pads.

This function should be called with @pads LOCK held, such as
in the callback.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="211"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="832">The maximum number of bytes queued on all pads. This function
returns 0 if a pad has no queued buffer.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="821">the collectspads to query</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="collect" c:identifier="gst_collect_pads_collect">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="501">Collect data on all pads. This function is usually called
from a #GstTask function in an element.

This function is currently not implemented.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="199"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="512">#GstFlowReturn of the operation.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="503">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="collect_range"
              c:identifier="gst_collect_pads_collect_range">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="525">Collect data with @offset and @length on all pads. This function
is typically called in the getrange function of an element.

This function is currently not implemented.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="200"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="538">#GstFlowReturn of the operation.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="527">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="528">the offset to collect</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
          <parameter name="length" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="529">the length to collect</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="flush" c:identifier="gst_collect_pads_flush">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="1005">Flush @size bytes from the pad @data.

This function should be called with @pads LOCK held, such as
in the callback.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="218"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="1018">The number of bytes flushed. This can be less than @size and
is 0 if the pad was end-of-stream.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="1007">the collectspads to query</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="1008">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="1009">the number of bytes to flush</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="is_active" c:identifier="gst_collect_pads_is_active">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="475">Check if a pad is active.

This function is currently not implemented.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="196"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="486">%TRUE if the pad is active.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="477">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="478">the pad to check</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek" c:identifier="gst_collect_pads_peek">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="736">Peek at the buffer currently queued in @data. This function
should be called with the @pads LOCK held, such as in the callback
handler.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="207"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="747">The buffer in @data or NULL if no buffer is queued.
 should unref the buffer after usage.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="738">the collectspads to peek</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="739">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
        </parameters>
      </method>
      <method name="pop" c:identifier="gst_collect_pads_pop">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="768">Pop the buffer currently queued in @data. This function
should be called with the @pads LOCK held, such as in the callback
handler.

Free-function: gst_buffer_unref

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="208"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="781">The buffer in @data or NULL if no buffer was
  queued. You should unref the buffer after usage.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="770">the collectspads to pop</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="771">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
        </parameters>
      </method>
      <method name="read" c:identifier="gst_collect_pads_read">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="885">Get a pointer in @bytes where @size bytes can be read from the
given pad @data.

This function should be called with @pads LOCK held, such as
in the callback.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="212"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="900">The number of bytes available for consumption in the
memory pointed to by @bytes. This can be less than @size and
is 0 if the pad is end-of-stream.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="887">the collectspads to query</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="888">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
          <parameter name="bytes"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="889">a pointer to a byte array</doc>
            <array length="2" zero-terminated="0" c:type="guint8**">
              <type name="guint8" c:type="guint8*"/>
            </array>
          </parameter>
          <parameter name="size"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="890">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="read_buffer"
              c:identifier="gst_collect_pads_read_buffer"
              version="0.10.18">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="927">Get a buffer of @size bytes from the given pad @data.

This function should be called with @pads LOCK held, such as in the callback.

Free-function: gst_buffer_unref</doc>
        <source-position filename="gstcollectpads.h" line="214"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="939">a #GstBuffer. The size of the buffer can be less
    that requested. A return of NULL signals that the pad is end-of-stream.
    Unref the buffer with gst_buffer_unref() after use.

MT safe.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="929">the collectspads to query</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="930">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="931">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="remove_pad" c:identifier="gst_collect_pads_remove_pad">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="388">Remove a pad from the collection of collect pads. This function will also
free the #GstCollectData and all the resources that were allocated with
gst_collect_pads_add_pad().

The pad will be deactivated automatically when @pads is stopped.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="195"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="401">%TRUE if the pad could be removed.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="390">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="391">the pad to remove</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_clip_function"
              c:identifier="gst_collect_pads_set_clip_function"
              version="0.10.26"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="362">Install a clipping function that is called right after a buffer is received
on a pad managed by @pads. See #GstCollectPadsClipFunction for more info.</doc>
        <source-position filename="gstcollectpads.h" line="187"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="364">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="clipfunc" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="365">clip function to install</doc>
            <type name="CollectPadsClipFunction"
                  c:type="GstCollectPadsClipFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="366">user data to pass to @clip_func</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_flushing"
              c:identifier="gst_collect_pads_set_flushing"
              version="0.10.7.">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="616">Change the flushing state of all the pads in the collection. No pad
is able to accept anymore data when @flushing is %TRUE. Calling this
function with @flushing %FALSE makes @pads accept data again.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="204"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="618">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="flushing" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="619">desired state of the pads</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_function"
              c:identifier="gst_collect_pads_set_function"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="184">Set the callback function and user data that will be called when
all the pads added to the collection have buffers queued.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="185"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="186">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="func" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="187">the function to set</doc>
            <type name="CollectPadsFunction" c:type="GstCollectPadsFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="188">user data passed to the function</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="start" c:identifier="gst_collect_pads_start">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="642">Starts the processing of data in the collect_pads.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="202"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="644">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="stop" c:identifier="gst_collect_pads_stop">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="683">Stops the processing of data in the collect_pads. this function
will also unblock any blocking operations.

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="203"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="685">the collectspads to use</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="take_buffer"
              c:identifier="gst_collect_pads_take_buffer"
              version="0.10.18">
        <doc xml:space="preserve"
             filename="gstcollectpads.c"
             line="972">Get a buffer of @size bytes from the given pad @data. Flushes the amount
of read bytes.

This function should be called with @pads LOCK held, such as in the callback.

Free-function: gst_buffer_unref

MT safe.</doc>
        <source-position filename="gstcollectpads.h" line="216"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads.c"
               line="987">a #GstBuffer. The size of the buffer can be less
    that requested. A return of NULL signals that the pad is end-of-stream.
    Unref the buffer after use.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="974">the collectspads to query</doc>
            <type name="CollectPads" c:type="GstCollectPads*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="975">the data to use</doc>
            <type name="CollectData" c:type="GstCollectData*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads.c"
                 line="976">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <field name="object">
        <type name="Gst.Object" c:type="GstObject"/>
      </field>
      <field name="data">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="130">#GList of #GstCollectData managed by this #GstCollectPads.</doc>
        <type name="GLib.SList" c:type="GSList*">
          <type name="gpointer" c:type="gpointer"/>
        </type>
      </field>
      <field name="cookie" readable="0" private="1">
        <type name="guint32" c:type="guint32"/>
      </field>
      <field name="cond" readable="0" private="1">
        <type name="GLib.Cond" c:type="GCond*"/>
      </field>
      <field name="func" readable="0" private="1">
        <type name="CollectPadsFunction" c:type="GstCollectPadsFunction"/>
      </field>
      <field name="user_data" readable="0" private="1">
        <type name="gpointer" c:type="gpointer"/>
      </field>
      <field name="numpads" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="queuedpads" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="eospads" readable="0" private="1">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="started" readable="0" private="1">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <union name="abidata" c:type="abidata">
        <source-position filename="gstcollectpads.h" line="169"/>
        <record name="ABI" c:type="ABI">
          <source-position filename="gstcollectpads.h" line="166"/>
          <field name="pad_lock" writable="1">
            <type name="GLib.Mutex" c:type="GMutex*"/>
          </field>
          <field name="pad_list" writable="1">
            <type name="GLib.SList" c:type="GSList*">
              <type name="gpointer" c:type="gpointer"/>
            </type>
          </field>
          <field name="pad_cookie" writable="1">
            <type name="guint32" c:type="guint32"/>
          </field>
          <field name="priv" writable="1">
            <type name="CollectPadsPrivate" c:type="GstCollectPadsPrivate*"/>
          </field>
        </record>
        <field name="_gst_reserved" writable="1">
          <array zero-terminated="0" fixed-size="4">
            <type name="gpointer" c:type="gpointer"/>
          </array>
        </field>
      </union>
    </class>
    <class name="CollectPads2"
           c:symbol-prefix="collect_pads2"
           c:type="GstCollectPads2"
           version="0.10.36"
           parent="Gst.Object"
           glib:type-name="GstCollectPads2"
           glib:get-type="gst_collect_pads2_get_type"
           glib:type-struct="CollectPads2Class">
      <doc xml:space="preserve"
           filename="gstcollectpads2.c"
           line="23">Manages a set of pads that operate in collect mode. This means that control
is given to the manager of this object when all pads have data.
&lt;itemizedlist&gt;
  &lt;listitem&gt;&lt;para&gt;
    Collectpads are created with gst_collect_pads2_new(). A callback should then
    be installed with gst_collect_pads2_set_function ().
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Pads are added to the collection with gst_collect_pads2_add_pad()/
    gst_collect_pads2_remove_pad(). The pad
    has to be a sinkpad. The chain and event functions of the pad are
    overridden. The element_private of the pad is used to store
    private information for the collectpads.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    For each pad, data is queued in the _chain function or by
    performing a pull_range.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    When data is queued on all pads in waiting mode, the callback function is called.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Data can be dequeued from the pad with the gst_collect_pads2_pop() method.
    One can peek at the data with the gst_collect_pads2_peek() function.
    These functions will return NULL if the pad received an EOS event. When all
    pads return NULL from a gst_collect_pads2_peek(), the element can emit an EOS
    event itself.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Data can also be dequeued in byte units using the gst_collect_pads2_available(),
    gst_collect_pads2_read() and gst_collect_pads2_flush() calls.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    Elements should call gst_collect_pads2_start() and gst_collect_pads2_stop() in
    their state change functions to start and stop the processing of the collectpads.
    The gst_collect_pads2_stop() call should be called before calling the parent
    element state change function in the PAUSED_TO_READY state change to ensure
    no pad is blocked and the element can finish streaming.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    gst_collect_pads2_collect() and gst_collect_pads2_collect_range() can be used by
    elements that start a #GstTask to drive the collect_pads2. This feature is however
    not yet implemented.
  &lt;/para&gt;&lt;/listitem&gt;
  &lt;listitem&gt;&lt;para&gt;
    gst_collect_pads2_set_waiting() sets a pad to waiting or non-waiting mode.
    CollectPads element is not waiting for data to be collected on non-waiting pads.
    Thus these pads may but need not have data when the callback is called.
    All pads are in waiting mode by default.
  &lt;/para&gt;&lt;/listitem&gt;
&lt;/itemizedlist&gt;

Last reviewed on 2011-10-28 (0.10.36)</doc>
      <source-position filename="gstcollectpads2.h" line="302"/>
      <constructor name="new"
                   c:identifier="gst_collect_pads2_new"
                   version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="276">Create a new instance of #GstCollectsPads.</doc>
        <source-position filename="gstcollectpads2.h" line="307"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="281">a new #GstCollectPads2, or NULL in case of an error.

MT safe.</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </return-value>
      </constructor>
      <method name="add_pad"
              c:identifier="gst_collect_pads2_add_pad"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="474">Add a pad to the collection of collect pads. The pad has to be
a sinkpad. The refcount of the pad is incremented. Use
gst_collect_pads2_remove_pad() to remove the pad from the collection
again.

You specify a size for the returned #GstCollectData2 structure
so that you can use it to store additional information.

The pad will be automatically activated in push mode when @pads is
started.

This function calls gst_collect_pads2_add_pad() passing a value of NULL
for destroy_notify and TRUE for locked.</doc>
        <source-position filename="gstcollectpads2.h" line="322"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="494">a new #GstCollectData2 to identify the new pad. Or NULL
  if wrong parameters are supplied.

MT safe.</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="476">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="477">the pad to add</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="478">the size of the returned #GstCollectData2 structure</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="add_pad_full"
              c:identifier="gst_collect_pads2_add_pad_full"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="507">Add a pad to the collection of collect pads. The pad has to be
a sinkpad. The refcount of the pad is incremented. Use
gst_collect_pads2_remove_pad() to remove the pad from the collection
again.

You specify a size for the returned #GstCollectData2 structure
so that you can use it to store additional information.

You can also specify a #GstCollectData2DestroyNotify that will be called
just before the #GstCollectData2 structure is freed. It is passed the
pointer to the structure and should free any custom memory and resources
allocated for it.

Keeping a pad locked in waiting state is only relevant when using
the default collection algorithm (providing the oldest buffer).
It ensures a buffer must be available on this pad for a collection
to take place.  This is of typical use to a muxer element where
non-subtitle streams should always be in waiting state,
e.g. to assure that caps information is available on all these streams
when initial headers have to be written.

The pad will be automatically activated in push mode when @pads is
started.</doc>
        <source-position filename="gstcollectpads2.h" line="323"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="542">a new #GstCollectData2 to identify the new pad. Or NULL
  if wrong parameters are supplied.

MT safe.</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="509">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="510">the pad to add</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="511">the size of the returned #GstCollectData2 structure</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
          <parameter name="destroy_notify" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="512">function to be called before the returned #GstCollectData2
structure is freed</doc>
            <type name="CollectData2DestroyNotify"
                  c:type="GstCollectData2DestroyNotify"/>
          </parameter>
          <parameter name="lock" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="514">whether to lock this pad in usual waiting state</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="available"
              c:identifier="gst_collect_pads2_available"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1026">Query how much bytes can be read from each queued buffer. This means
that the result of this call is the maximum number of bytes that can
be read from each of the pads.

This function should be called with @pads STREAM_LOCK held, such as
in the callback.</doc>
        <source-position filename="gstcollectpads2.h" line="341"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="1037">The maximum number of bytes queued on all pads. This function
returns 0 if a pad has no queued buffer.

MT safe.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1028">the collectspads to query</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="collect"
              c:identifier="gst_collect_pads2_collect"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="722">Collect data on all pads. This function is usually called
from a #GstTask function in an element.

This function is currently not implemented.</doc>
        <source-position filename="gstcollectpads2.h" line="329"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="731">#GstFlowReturn of the operation.

MT safe.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="724">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="collect_range"
              c:identifier="gst_collect_pads2_collect_range"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="748">Collect data with @offset and @length on all pads. This function
is typically called in the getrange function of an element.

This function is currently not implemented.</doc>
        <source-position filename="gstcollectpads2.h" line="330"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="759">#GstFlowReturn of the operation.

MT safe.</doc>
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="750">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="offset" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="751">the offset to collect</doc>
            <type name="guint64" c:type="guint64"/>
          </parameter>
          <parameter name="length" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="752">the length to collect</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="flush"
              c:identifier="gst_collect_pads2_flush"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1141">Flush @size bytes from the pad @data.

This function should be called with @pads STREAM_LOCK held, such as
in the callback.</doc>
        <source-position filename="gstcollectpads2.h" line="344"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="1152">The number of bytes flushed This can be less than @size and
is 0 if the pad was end-of-stream.

MT safe.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1143">the collectspads to query</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1144">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1145">the number of bytes to flush</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="is_active"
              c:identifier="gst_collect_pads2_is_active"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="694">Check if a pad is active.

This function is currently not implemented.</doc>
        <source-position filename="gstcollectpads2.h" line="326"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="703">%TRUE if the pad is active.

MT safe.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="696">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="697">the pad to check</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
        </parameters>
      </method>
      <method name="peek"
              c:identifier="gst_collect_pads2_peek"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="940">Peek at the buffer currently queued in @data. This function
should be called with the @pads STREAM_LOCK held, such as in the callback
handler.</doc>
        <source-position filename="gstcollectpads2.h" line="337"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="949">The buffer in @data or NULL if no buffer is queued.
 should unref the buffer after usage.

MT safe.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="942">the collectspads to peek</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="943">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
        </parameters>
      </method>
      <method name="pop"
              c:identifier="gst_collect_pads2_pop"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="974">Pop the buffer currently queued in @data. This function
should be called with the @pads STREAM_LOCK held, such as in the callback
handler.</doc>
        <source-position filename="gstcollectpads2.h" line="338"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="983">The buffer in @data or NULL if no buffer was queued.
  You should unref the buffer after usage.

MT safe.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="976">the collectspads to pop</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="977">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
        </parameters>
      </method>
      <method name="read"
              c:identifier="gst_collect_pads2_read"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1097">Get a pointer in @bytes where @size bytes can be read from the
given pad data.

This function should be called with @pads STREAM_LOCK held, such as
in the callback.</doc>
        <source-position filename="gstcollectpads2.h" line="342"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="1110">The number of bytes available for consumption in the
memory pointed to by @bytes. This can be less than @size and
is 0 if the pad is end-of-stream.

MT safe.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1099">the collectspads to query</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1100">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
          <parameter name="bytes" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1101">a pointer to a byte array</doc>
            <type name="guint8" c:type="guint8**"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1102">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="read_buffer"
              c:identifier="gst_collect_pads2_read_buffer"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1186">Get a subbuffer of @size bytes from the given pad @data.

This function should be called with @pads STREAM_LOCK held, such as in the
callback.</doc>
        <source-position filename="gstcollectpads2.h" line="346"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="1199">A sub buffer. The size of the buffer can be less that requested.
A return of NULL signals that the pad is end-of-stream.
Unref the buffer after use.

MT safe.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1188">the collectspads to query</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1189">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1190">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="remove_pad"
              c:identifier="gst_collect_pads2_remove_pad"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="605">Remove a pad from the collection of collect pads. This function will also
free the #GstCollectData2 and all the resources that were allocated with
gst_collect_pads2_add_pad().

The pad will be deactivated automatically when @pads is stopped.</doc>
        <source-position filename="gstcollectpads2.h" line="325"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="616">%TRUE if the pad could be removed.

MT safe.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="607">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="pad" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="608">the pad to remove</doc>
            <type name="Gst.Pad" c:type="GstPad*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_buffer_function"
              c:identifier="gst_collect_pads2_set_buffer_function"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="306">Set the callback function and user data that will be called with
the oldest buffer when all pads have been collected.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="312"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="308">the collectpads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="func" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="309">the function to set</doc>
            <type name="CollectPads2BufferFunction"
                  c:type="GstCollectPads2BufferFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="310">user data passed to the function</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_clip_function"
              c:identifier="gst_collect_pads2_set_clip_function"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="452">Install a clipping function that is called right after a buffer is received
on a pad managed by @pads. See #GstCollectPad2ClipFunction for more info.</doc>
        <source-position filename="gstcollectpads2.h" line="318"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="454">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="clipfunc" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="455">clip function to install</doc>
            <type name="CollectPads2ClipFunction"
                  c:type="GstCollectPads2ClipFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="456">user data to pass to @clip_func</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_compare_function"
              c:identifier="gst_collect_pads2_set_compare_function"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="331">Set the timestamp comparison function.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="316"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="333">the pads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="func" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="334">the function to set</doc>
            <type name="CollectPads2CompareFunction"
                  c:type="GstCollectPads2CompareFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="335">user data passed to the function</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_event_function"
              c:identifier="gst_collect_pads2_set_event_function"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="422">Set the event callback function and user data that will be called after
collectpads has processed and event originating from one of the collected
pads.  If the event being processed is a serialized one, this callback is
called with @pads STREAM_LOCK held, otherwise not.  As this lock should be
held when calling a number of CollectPads functions, it should be acquired
if so (unusually) needed.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="314"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="424">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="func" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="425">the function to set</doc>
            <type name="CollectPads2EventFunction"
                  c:type="GstCollectPads2EventFunction"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="426">user data passed to the function</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_flushing"
              c:identifier="gst_collect_pads2_set_flushing"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="809">Change the flushing state of all the pads in the collection. No pad
is able to accept anymore data when @flushing is %TRUE. Calling this
function with @flushing %FALSE makes @pads accept data again.
Caller must ensure that downstream streaming (thread) is not blocked,
e.g. by sending a FLUSH_START downstream.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="334"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="811">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="flushing" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="812">desired state of the pads</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_function"
              c:identifier="gst_collect_pads2_set_function"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="360">CollectPads provides a default collection algorithm that will determine
the oldest buffer available on all of its pads, and then delegate
to a configured callback.
However, if circumstances are more complicated and/or more control
is desired, this sets a callback that will be invoked instead when
all the pads added to the collection have buffers queued.
Evidently, this callback is not compatible with
gst_collect_pads2_set_buffer_function() callback.
If this callback is set, the former will be unset.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="310"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="362">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="func" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="363">the function to set</doc>
            <type name="CollectPads2Function"
                  c:type="GstCollectPads2Function"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="364">user data passed to the function</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_waiting"
              c:identifier="gst_collect_pads2_set_waiting"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1257">Sets a pad to waiting or non-waiting mode, if at least this pad
has not been created with locked waiting state,
in which case nothing happens.

This function should be called with @pads STREAM_LOCK held, such as
in the callback.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="352"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1259">the collectspads</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1260">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
          <parameter name="waiting" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1261">boolean indicating whether this pad should operate
          in waiting or non-waiting mode</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="start"
              c:identifier="gst_collect_pads2_start"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="837">Starts the processing of data in the collect_pads2.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="332"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="839">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="stop"
              c:identifier="gst_collect_pads2_stop"
              version="0.10.36">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="880">Stops the processing of data in the collect_pads2. this function
will also unblock any blocking operations.

MT safe.</doc>
        <source-position filename="gstcollectpads2.h" line="333"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="882">the collectspads to use</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="take_buffer"
              c:identifier="gst_collect_pads2_take_buffer"
              version="0.10.36"
              introspectable="0">
        <doc xml:space="preserve"
             filename="gstcollectpads2.c"
             line="1225">Get a subbuffer of @size bytes from the given pad @data. Flushes the amount
of read bytes.

This function should be called with @pads STREAM_LOCK held, such as in the
callback.</doc>
        <source-position filename="gstcollectpads2.h" line="348"/>
        <return-value>
          <doc xml:space="preserve"
               filename="gstcollectpads2.c"
               line="1239">A sub buffer. The size of the buffer can be less that requested.
A return of NULL signals that the pad is end-of-stream.
Unref the buffer after use.

MT safe.</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </return-value>
        <parameters>
          <instance-parameter name="pads" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1227">the collectspads to query</doc>
            <type name="CollectPads2" c:type="GstCollectPads2*"/>
          </instance-parameter>
          <parameter name="data" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1228">the data to use</doc>
            <type name="CollectData2" c:type="GstCollectData2*"/>
          </parameter>
          <parameter name="size" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstcollectpads2.c"
                 line="1229">the number of bytes to read</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <field name="object">
        <type name="Gst.Object" c:type="GstObject"/>
      </field>
      <field name="data">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="276">#GList of #GstCollectData2 managed by this #GstCollectPads2.</doc>
        <type name="GLib.SList" c:type="GSList*">
          <type name="gpointer" c:type="gpointer"/>
        </type>
      </field>
      <field name="stream_lock" introspectable="0" readable="0" private="1">
        <type c:type="GStaticRecMutex"/>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="CollectPads2Private" c:type="GstCollectPads2Private*"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <callback name="CollectPads2BufferFunction"
              c:type="GstCollectPads2BufferFunction"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="162">A function that will be called when a (considered oldest) buffer can be muxed.
If all pads have reached EOS, this function is called with NULL @buffer
and NULL @data.</doc>
      <source-position filename="gstcollectpads2.h" line="177"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="173">#GST_FLOW_OK for success</doc>
        <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="164">the #GstCollectPads2 that trigered the callback</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="165">the #GstCollectData2 of pad that has received the buffer</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
        <parameter name="buffer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="166">the #GstBuffer</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="3">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="167">user data passed to gst_collect_pads2_set_buffer_function()</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <record name="CollectPads2Class"
            c:type="GstCollectPads2Class"
            glib:is-gtype-struct-for="CollectPads2">
      <source-position filename="gstcollectpads2.h" line="302"/>
      <field name="parent_class">
        <type name="Gst.ObjectClass" c:type="GstObjectClass"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <callback name="CollectPads2ClipFunction"
              c:type="GstCollectPads2ClipFunction"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="219">A function that will be called when @inbuffer is received on the pad managed
by @data in the collecpad object @pads.

The function should use the segment of @data and the negotiated media type on
the pad to perform clipping of @inbuffer.

This function takes ownership of @inbuffer and should output a buffer in
@outbuffer or return %NULL in @outbuffer if the buffer should be dropped.</doc>
      <source-position filename="gstcollectpads2.h" line="240"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="236">a #GstFlowReturn that corresponds to the result of clipping.</doc>
        <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="221">a #GstCollectPads2</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="222">a #GstCollectData2</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
        <parameter name="inbuffer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="223">the input #GstBuffer</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </parameter>
        <parameter name="outbuffer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="224">the output #GstBuffer</doc>
          <type name="Gst.Buffer" c:type="GstBuffer**"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="4">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="225">user data</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="CollectPads2CompareFunction"
              c:type="GstCollectPads2CompareFunction"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="180">A function for comparing two timestamps of buffers or newsegments collected on one pad.</doc>
      <source-position filename="gstcollectpads2.h" line="197"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="191">Integer less than zero when first timestamp is deemed older than the second one.
         Zero if the timestamps are deemed equally old.
         Integer greate than zero when second timestamp is deemed older than the first one.</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="182">the #GstCollectPads that is comparing the timestamps</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </parameter>
        <parameter name="data1" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="183">the first #GstCollectData2</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
        <parameter name="timestamp1" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="184">the first timestamp</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </parameter>
        <parameter name="data2" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="185">the second #GstCollectData2</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
        <parameter name="timestamp2" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="186">the second timestamp</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="5">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="187">user data passed to gst_collect_pads2_set_compare_function()</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="CollectPads2EventFunction"
              c:type="GstCollectPads2EventFunction"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="202">A function that will be called after collectpads has processed the event.</doc>
      <source-position filename="gstcollectpads2.h" line="215"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="211">%TRUE if the pad could handle the event</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="204">the #GstCollectPads2 that trigered the callback</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </parameter>
        <parameter name="pad" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="205">the #GstPad that received an event</doc>
          <type name="CollectData2" c:type="GstCollectData2*"/>
        </parameter>
        <parameter name="event" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="206">the #GstEvent received</doc>
          <type name="Gst.Event" c:type="GstEvent*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="3">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="207">user data passed to gst_collect_pads2_set_event_function()</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="CollectPads2Function"
              c:type="GstCollectPads2Function"
              version="0.10.36">
      <doc xml:space="preserve"
           filename="gstcollectpads2.h"
           line="149">A function that will be called when all pads have received data.</doc>
      <source-position filename="gstcollectpads2.h" line="160"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="156">#GST_FLOW_OK for success</doc>
        <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="151">the #GstCollectPads2 that trigered the callback</doc>
          <type name="CollectPads2" c:type="GstCollectPads2*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="1">
          <doc xml:space="preserve"
               filename="gstcollectpads2.h"
               line="152">user data passed to gst_collect_pads2_set_function()</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <record name="CollectPads2Private"
            c:type="GstCollectPads2Private"
            disguised="1">
      <source-position filename="gstcollectpads2.h" line="40"/>
    </record>
    <bitfield name="CollectPads2StateFlags"
              version="0.10.36"
              c:type="GstCollectPads2StateFlags">
      <source-position filename="gstcollectpads2.h" line="75"/>
      <member name="eos" value="1" c:identifier="GST_COLLECT_PADS2_STATE_EOS">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="57">Set if collectdata's pad is EOS.</doc>
      </member>
      <member name="flushing"
              value="2"
              c:identifier="GST_COLLECT_PADS2_STATE_FLUSHING">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="58">Set if collectdata's pad is flushing.</doc>
      </member>
      <member name="new_segment"
              value="4"
              c:identifier="GST_COLLECT_PADS2_STATE_NEW_SEGMENT">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="59">Set if collectdata's pad received a
                                     new_segment event.</doc>
      </member>
      <member name="waiting"
              value="8"
              c:identifier="GST_COLLECT_PADS2_STATE_WAITING">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="61">Set if collectdata's pad must be waited
                                     for when collecting.</doc>
      </member>
      <member name="locked"
              value="16"
              c:identifier="GST_COLLECT_PADS2_STATE_LOCKED">
        <doc xml:space="preserve"
             filename="gstcollectpads2.h"
             line="63">Set collectdata's pad WAITING state must
                                     not be changed.
#GstCollectPads2StateFlags indicate private state of a collectdata('s pad).</doc>
      </member>
    </bitfield>
    <record name="CollectPadsClass"
            c:type="GstCollectPadsClass"
            glib:is-gtype-struct-for="CollectPads">
      <source-position filename="gstcollectpads.h" line="177"/>
      <field name="parent_class">
        <type name="Gst.ObjectClass" c:type="GstObjectClass"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <callback name="CollectPadsClipFunction"
              c:type="GstCollectPadsClipFunction"
              version="0.10.26"
              introspectable="0">
      <doc xml:space="preserve"
           filename="gstcollectpads.h"
           line="53">A function that will be called when @buffer is received on the pad managed
by @data in the collecpad object @pads.

The function should use the segment of @data and the negotiated media type on
the pad to perform clipping of @buffer.

This function takes ownership of @buffer.</doc>
      <source-position filename="gstcollectpads.h" line="73"/>
      <return-value>
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="68">a #GstBuffer that contains the clipped data of @buffer or NULL when
the buffer has been clipped completely.</doc>
        <type name="Gst.Buffer" c:type="GstBuffer*"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="55">a #GstCollectPads</doc>
          <type name="CollectPads" c:type="GstCollectPads*"/>
        </parameter>
        <parameter name="data" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="56">a #GstCollectData</doc>
          <type name="CollectData" c:type="GstCollectData*"/>
        </parameter>
        <parameter name="buffer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="57">a #GstBuffer</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="3">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="58">user data</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="CollectPadsFunction" c:type="GstCollectPadsFunction">
      <doc xml:space="preserve"
           filename="gstcollectpads.h"
           line="108">A function that will be called when all pads have received data.</doc>
      <source-position filename="gstcollectpads.h" line="117"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstcollectpads.h"
             line="115">#GST_FLOW_OK for success</doc>
        <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
      </return-value>
      <parameters>
        <parameter name="pads" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="110">the #GstCollectPads that triggered the callback</doc>
          <type name="CollectPads" c:type="GstCollectPads*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="1">
          <doc xml:space="preserve"
               filename="gstcollectpads.h"
               line="111">user data passed to gst_collect_pads_set_function()</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <record name="CollectPadsPrivate"
            c:type="GstCollectPadsPrivate"
            disguised="1">
      <source-position filename="gstcollectpads.h" line="38"/>
    </record>
    <function-macro name="DATA_QUEUE"
                    c:identifier="GST_DATA_QUEUE"
                    introspectable="0">
      <source-position filename="gstdataqueue.h" line="30"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="DATA_QUEUE_CLASS"
                    c:identifier="GST_DATA_QUEUE_CLASS"
                    introspectable="0">
      <source-position filename="gstdataqueue.h" line="32"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <class name="DataQueue"
           c:symbol-prefix="data_queue"
           c:type="GstDataQueue"
           version="0.10.11"
           parent="GObject.Object"
           glib:type-name="GstDataQueue"
           glib:get-type="gst_data_queue_get_type"
           glib:type-struct="DataQueueClass">
      <doc xml:space="preserve"
           filename="gstdataqueue.c"
           line="22">#GstDataQueue is an object that handles threadsafe queueing of objects. It
also provides size-related functionality. This object should be used for
any #GstElement that wishes to provide some sort of queueing functionality.</doc>
      <source-position filename="gstdataqueue.h" line="156"/>
      <constructor name="new"
                   c:identifier="gst_data_queue_new"
                   introspectable="0">
        <source-position filename="gstdataqueue.h" line="160"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="230">a new #GstDataQueue.</doc>
          <type name="DataQueue" c:type="GstDataQueue*"/>
        </return-value>
        <parameters>
          <parameter name="checkfull" transfer-ownership="none" closure="1">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="226">the callback used to tell if the element considers the queue full
or not.</doc>
            <type name="DataQueueCheckFullFunction"
                  c:type="GstDataQueueCheckFullFunction"/>
          </parameter>
          <parameter name="checkdata"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="228">a #gpointer that will be given in the @checkfull callback.</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </constructor>
      <constructor name="new_full"
                   c:identifier="gst_data_queue_new_full"
                   version="0.10.26"
                   introspectable="0">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="189">Creates a new #GstDataQueue. The difference with @gst_data_queue_new is that it will
not emit the 'full' and 'empty' signals, but instead calling directly @fullcallback
or @emptycallback.</doc>
        <source-position filename="gstdataqueue.h" line="163"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="201">a new #GstDataQueue.</doc>
          <type name="DataQueue" c:type="GstDataQueue*"/>
        </return-value>
        <parameters>
          <parameter name="checkfull" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="191">the callback used to tell if the element considers the queue full
or not.</doc>
            <type name="DataQueueCheckFullFunction"
                  c:type="GstDataQueueCheckFullFunction"/>
          </parameter>
          <parameter name="fullcallback" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="193">the callback which will be called when the queue is considered full.</doc>
            <type name="DataQueueFullCallback"
                  c:type="GstDataQueueFullCallback"/>
          </parameter>
          <parameter name="emptycallback"
                     transfer-ownership="none"
                     closure="3">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="194">the callback which will be called when the queue is considered empty.</doc>
            <type name="DataQueueEmptyCallback"
                  c:type="GstDataQueueEmptyCallback"/>
          </parameter>
          <parameter name="checkdata"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="195">a #gpointer that will be given in the @checkfull callback.</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </constructor>
      <virtual-method name="empty">
        <source-position filename="gstdataqueue.h" line="152"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="full">
        <source-position filename="gstdataqueue.h" line="153"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <method name="drop_head"
              c:identifier="gst_data_queue_drop_head"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="535">Pop and unref the head-most #GstMiniObject with the given #GType.</doc>
        <source-position filename="gstdataqueue.h" line="174"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="542">TRUE if an element was removed.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="537">The #GstDataQueue to drop an item from.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
          <parameter name="type" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="538">The #GType of the item to drop.</doc>
            <type name="GType" c:type="GType"/>
          </parameter>
        </parameters>
      </method>
      <method name="flush"
              c:identifier="gst_data_queue_flush"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="298">Flushes all the contents of the @queue. Any call to #gst_data_queue_push and
#gst_data_queue_pop will be released.
MT safe.</doc>
        <source-position filename="gstdataqueue.h" line="171"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="300">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_level"
              c:identifier="gst_data_queue_get_level"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="611">Get the current level of the queue.</doc>
        <source-position filename="gstdataqueue.h" line="179"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="613">The #GstDataQueue</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
          <parameter name="level" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="614">the location to store the result</doc>
            <type name="DataQueueSize" c:type="GstDataQueueSize*"/>
          </parameter>
        </parameters>
      </method>
      <method name="is_empty"
              c:identifier="gst_data_queue_is_empty"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="317">Queries if there are any items in the @queue.
MT safe.</doc>
        <source-position filename="gstdataqueue.h" line="177"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="324">#TRUE if @queue is empty.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="319">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_full"
              c:identifier="gst_data_queue_is_full"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="340">Queries if @queue is full. This check will be done using the
#GstDataQueueCheckFullFunction registered with @queue.
MT safe.</doc>
        <source-position filename="gstdataqueue.h" line="176"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="348">#TRUE if @queue is full.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="342">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="limits_changed"
              c:identifier="gst_data_queue_limits_changed"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="589">Inform the queue that the limits for the fullness check have changed and that
any blocking gst_data_queue_push() should be unblocked to recheck the limts.</doc>
        <source-position filename="gstdataqueue.h" line="180"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="591">The #GstDataQueue</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="pop" c:identifier="gst_data_queue_pop" version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="468">Retrieves the first @item available on the @queue. If the queue is currently
empty, the call will block until at least one item is available, OR the
@queue is set to the flushing state.
MT safe.</doc>
        <source-position filename="gstdataqueue.h" line="169"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="478">#TRUE if an @item was successfully retrieved from the @queue.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="470">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
          <parameter name="item" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="471">pointer to store the returned #GstDataQueueItem.</doc>
            <type name="DataQueueItem" c:type="GstDataQueueItem**"/>
          </parameter>
        </parameters>
      </method>
      <method name="push" c:identifier="gst_data_queue_push" version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="396">Pushes a #GstDataQueueItem (or a structure that begins with the same fields)
on the @queue. If the @queue is full, the call will block until space is
available, OR the @queue is set to flushing state.
MT safe.

Note that this function has slightly different semantics than gst_pad_push()
and gst_pad_push_event(): this function only takes ownership of @item and
the #GstMiniObject contained in @item if the push was successful. If FALSE
is returned, the caller is responsible for freeing @item and its contents.</doc>
        <source-position filename="gstdataqueue.h" line="168"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.c"
               line="411">#TRUE if the @item was successfully pushed on the @queue.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="398">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
          <parameter name="item" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="399">a #GstDataQueueItem.</doc>
            <type name="DataQueueItem" c:type="GstDataQueueItem*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_flushing"
              c:identifier="gst_data_queue_set_flushing"
              version="0.10.11">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="364">Sets the queue to flushing state if @flushing is #TRUE. If set to flushing
state, any incoming data on the @queue will be discarded. Any call currently
blocking on #gst_data_queue_push or #gst_data_queue_pop will return straight
away with a return value of #FALSE. While the @queue is in flushing state,
all calls to those two functions will return #FALSE.

MT Safe.</doc>
        <source-position filename="gstdataqueue.h" line="172"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="queue" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="366">a #GstDataQueue.</doc>
            <type name="DataQueue" c:type="GstDataQueue*"/>
          </instance-parameter>
          <parameter name="flushing" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="gstdataqueue.c"
                 line="367">a #gboolean stating if the queue will be flushing or not.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <property name="current-level-bytes" transfer-ownership="none">
        <type name="guint" c:type="guint"/>
      </property>
      <property name="current-level-time" transfer-ownership="none">
        <type name="guint64" c:type="guint64"/>
      </property>
      <property name="current-level-visible" transfer-ownership="none">
        <type name="guint" c:type="guint"/>
      </property>
      <field name="object">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="112">the parent structure</doc>
        <type name="GObject.Object" c:type="GObject"/>
      </field>
      <field name="queue" readable="0" private="1">
        <type name="GLib.Queue" c:type="GQueue*"/>
      </field>
      <field name="cur_level" readable="0" private="1">
        <type name="DataQueueSize" c:type="GstDataQueueSize"/>
      </field>
      <field name="checkfull" readable="0" private="1">
        <type name="DataQueueCheckFullFunction"
              c:type="GstDataQueueCheckFullFunction"/>
      </field>
      <field name="checkdata" readable="0" private="1">
        <type name="gpointer" c:type="gpointer*"/>
      </field>
      <field name="qlock" readable="0" private="1">
        <type name="GLib.Mutex" c:type="GMutex*"/>
      </field>
      <field name="item_add" readable="0" private="1">
        <type name="GLib.Cond" c:type="GCond*"/>
      </field>
      <field name="item_del" readable="0" private="1">
        <type name="GLib.Cond" c:type="GCond*"/>
      </field>
      <field name="flushing" readable="0" private="1">
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="fullcallback" readable="0" private="1">
        <type name="DataQueueFullCallback" c:type="GstDataQueueFullCallback"/>
      </field>
      <field name="emptycallback" readable="0" private="1">
        <type name="DataQueueEmptyCallback"
              c:type="GstDataQueueEmptyCallback"/>
      </field>
      <union name="abidata" c:type="abidata">
        <source-position filename="gstdataqueue.h" line="144"/>
        <record name="ABI" c:type="ABI">
          <source-position filename="gstdataqueue.h" line="142"/>
          <field name="waiting_add" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
          <field name="waiting_del" writable="1">
            <type name="gboolean" c:type="gboolean"/>
          </field>
        </record>
        <field name="_gst_reserved" writable="1">
          <array zero-terminated="0" fixed-size="2">
            <type name="gpointer" c:type="gpointer"/>
          </array>
        </field>
      </union>
      <glib:signal name="empty" when="first">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="126">Reports that the queue became empty (empty).
A queue is empty if the total amount of visible items inside it (num-visible, time,
size) is lower than the boundary values which can be set through the GObject
properties.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </glib:signal>
      <glib:signal name="full" when="first">
        <doc xml:space="preserve"
             filename="gstdataqueue.c"
             line="140">Reports that the queue became full (full).
A queue is full if the total amount of data inside it (num-visible, time,
size) is higher than the boundary values which can be set through the GObject
properties.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </glib:signal>
    </class>
    <callback name="DataQueueCheckFullFunction"
              c:type="GstDataQueueCheckFullFunction"
              version="0.10.11">
      <doc xml:space="preserve"
           filename="gstdataqueue.h"
           line="89">The prototype of the function used to inform the queue that it should be
considered as full.</doc>
      <source-position filename="gstdataqueue.h" line="104"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="100">#TRUE if the queue should be considered full.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="queue" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.h"
               line="91">a #GstDataQueue.</doc>
          <type name="DataQueue" c:type="GstDataQueue*"/>
        </parameter>
        <parameter name="visible" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.h"
               line="92">The number of visible items currently in the queue.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="bytes" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.h"
               line="93">The amount of bytes currently in the queue.</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="time" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstdataqueue.h"
               line="94">The accumulated duration of the items currently in the queue.</doc>
          <type name="guint64" c:type="guint64"/>
        </parameter>
        <parameter name="checkdata"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gstdataqueue.h"
               line="95">The #gpointer registered when the #GstDataQueue was created.</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <record name="DataQueueClass"
            c:type="GstDataQueueClass"
            glib:is-gtype-struct-for="DataQueue">
      <source-position filename="gstdataqueue.h" line="156"/>
      <field name="parent_class">
        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
      </field>
      <field name="empty">
        <callback name="empty">
          <source-position filename="gstdataqueue.h" line="152"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="queue" transfer-ownership="none">
              <type name="DataQueue" c:type="GstDataQueue*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="full">
        <callback name="full">
          <source-position filename="gstdataqueue.h" line="153"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="queue" transfer-ownership="none">
              <type name="DataQueue" c:type="GstDataQueue*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <callback name="DataQueueEmptyCallback" c:type="GstDataQueueEmptyCallback">
      <source-position filename="gstdataqueue.h" line="108"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="queue" transfer-ownership="none">
          <type name="DataQueue" c:type="GstDataQueue*"/>
        </parameter>
        <parameter name="checkdata"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="DataQueueFullCallback" c:type="GstDataQueueFullCallback">
      <source-position filename="gstdataqueue.h" line="107"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="queue" transfer-ownership="none">
          <type name="DataQueue" c:type="GstDataQueue*"/>
        </parameter>
        <parameter name="checkdata"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <record name="DataQueueItem" c:type="GstDataQueueItem" version="0.10.11">
      <doc xml:space="preserve"
           filename="gstdataqueue.h"
           line="44">Structure used by #GstDataQueue. You can supply a different structure, as
long as the top of the structure is identical to this structure.</doc>
      <source-position filename="gstdataqueue.h" line="70"/>
      <field name="object" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="46">the #GstMiniObject to queue.</doc>
        <type name="Gst.MiniObject" c:type="GstMiniObject*"/>
      </field>
      <field name="size" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="47">the size in bytes of the miniobject.</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="duration" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="48">the duration in #GstClockTime of the miniobject. Can not be
#GST_CLOCK_TIME_NONE.</doc>
        <type name="guint64" c:type="guint64"/>
      </field>
      <field name="visible" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="50">#TRUE if @object should be considered as a visible object.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </field>
      <field name="destroy" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="51">The #GDestroyNotify function to use to free the #GstDataQueueItem.
This function should also drop the reference to @object the owner of the
#GstDataQueueItem is assumed to hold.</doc>
        <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
      </field>
    </record>
    <record name="DataQueueSize" c:type="GstDataQueueSize" version="0.10.11">
      <doc xml:space="preserve"
           filename="gstdataqueue.h"
           line="72">Structure describing the size of a queue.</doc>
      <source-position filename="gstdataqueue.h" line="87"/>
      <field name="visible" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="74">number of buffers</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="bytes" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="75">number of bytes</doc>
        <type name="guint" c:type="guint"/>
      </field>
      <field name="time" writable="1">
        <doc xml:space="preserve"
             filename="gstdataqueue.h"
             line="76">amount of time</doc>
        <type name="guint64" c:type="guint64"/>
      </field>
    </record>
    <function-macro name="IS_ADAPTER"
                    c:identifier="GST_IS_ADAPTER"
                    introspectable="0">
      <source-position filename="gstadapter.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_ADAPTER_CLASS"
                    c:identifier="GST_IS_ADAPTER_CLASS"
                    introspectable="0">
      <source-position filename="gstadapter.h" line="37"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_PARSE"
                    c:identifier="GST_IS_BASE_PARSE"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_PARSE_CLASS"
                    c:identifier="GST_IS_BASE_PARSE_CLASS"
                    introspectable="0">
      <source-position filename="gstbaseparse.h" line="34"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_SINK"
                    c:identifier="GST_IS_BASE_SINK"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_SINK_CLASS"
                    c:identifier="GST_IS_BASE_SINK_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesink.h" line="36"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_SRC"
                    c:identifier="GST_IS_BASE_SRC"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_SRC_CLASS"
                    c:identifier="GST_IS_BASE_SRC_CLASS"
                    introspectable="0">
      <source-position filename="gstbasesrc.h" line="36"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_TRANSFORM"
                    c:identifier="GST_IS_BASE_TRANSFORM"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_BASE_TRANSFORM_CLASS"
                    c:identifier="GST_IS_BASE_TRANSFORM_CLASS"
                    introspectable="0">
      <source-position filename="gstbasetransform.h" line="33"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_COLLECT_PADS"
                    c:identifier="GST_IS_COLLECT_PADS"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_COLLECT_PADS2"
                    c:identifier="GST_IS_COLLECT_PADS2"
                    introspectable="0">
      <source-position filename="gstcollectpads2.h" line="34"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_COLLECT_PADS2_CLASS"
                    c:identifier="GST_IS_COLLECT_PADS2_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads2.h" line="35"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_COLLECT_PADS_CLASS"
                    c:identifier="GST_IS_COLLECT_PADS_CLASS"
                    introspectable="0">
      <source-position filename="gstcollectpads.h" line="34"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_DATA_QUEUE"
                    c:identifier="GST_IS_DATA_QUEUE"
                    introspectable="0">
      <source-position filename="gstdataqueue.h" line="34"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_DATA_QUEUE_CLASS"
                    c:identifier="GST_IS_DATA_QUEUE_CLASS"
                    introspectable="0">
      <source-position filename="gstdataqueue.h" line="36"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_PUSH_SRC"
                    c:identifier="GST_IS_PUSH_SRC"
                    introspectable="0">
      <source-position filename="gstpushsrc.h" line="36"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_PUSH_SRC_CLASS"
                    c:identifier="GST_IS_PUSH_SRC_CLASS"
                    introspectable="0">
      <source-position filename="gstpushsrc.h" line="37"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="PUSH_SRC"
                    c:identifier="GST_PUSH_SRC"
                    introspectable="0">
      <source-position filename="gstpushsrc.h" line="33"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="PUSH_SRC_CLASS"
                    c:identifier="GST_PUSH_SRC_CLASS"
                    introspectable="0">
      <source-position filename="gstpushsrc.h" line="34"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="PUSH_SRC_GET_CLASS"
                    c:identifier="GST_PUSH_SRC_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstpushsrc.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <class name="PushSrc"
           c:symbol-prefix="push_src"
           c:type="GstPushSrc"
           parent="BaseSrc"
           glib:type-name="GstPushSrc"
           glib:get-type="gst_push_src_get_type"
           glib:type-struct="PushSrcClass">
      <doc xml:space="preserve"
           filename="gstpushsrc.c"
           line="23">This class is mostly useful for elements that cannot do
random access, or at least very slowly. The source usually
prefers to push out a fixed size buffer.

Subclasses usually operate in a format that is different from the
default GST_FORMAT_BYTES format of #GstBaseSrc.

Classes extending this base class will usually be scheduled
in a push based mode. If the peer accepts to operate without
offsets and within the limits of the allowed block size, this
class can operate in getrange based mode automatically. To make
this possible, the subclass should override the ::check_get_range
method.

The subclass should extend the methods from the baseclass in
addition to the ::create method.

Seeking, flushing, scheduling and sync is all handled by this
base class.

Last reviewed on 2006-07-04 (0.10.9)</doc>
      <source-position filename="gstpushsrc.h" line="62"/>
      <virtual-method name="create">
        <source-position filename="gstpushsrc.h" line="58"/>
        <return-value transfer-ownership="none">
          <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
        </return-value>
        <parameters>
          <instance-parameter name="src" transfer-ownership="none">
            <type name="PushSrc" c:type="GstPushSrc*"/>
          </instance-parameter>
          <parameter name="buf" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer**"/>
          </parameter>
        </parameters>
      </virtual-method>
      <field name="parent">
        <type name="BaseSrc" c:type="GstBaseSrc"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <record name="PushSrcClass"
            c:type="GstPushSrcClass"
            glib:is-gtype-struct-for="PushSrc">
      <source-position filename="gstpushsrc.h" line="62"/>
      <field name="parent_class">
        <type name="BaseSrcClass" c:type="GstBaseSrcClass"/>
      </field>
      <field name="create">
        <callback name="create">
          <source-position filename="gstpushsrc.h" line="58"/>
          <return-value transfer-ownership="none">
            <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
          </return-value>
          <parameters>
            <parameter name="src" transfer-ownership="none">
              <type name="PushSrc" c:type="GstPushSrc*"/>
            </parameter>
            <parameter name="buf" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer**"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <callback name="TypeFindHelperGetRangeFunction"
              c:type="GstTypeFindHelperGetRangeFunction">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.h"
           line="40">This function will be called by gst_type_find_helper_get_range() when
typefinding functions request to peek at the data of a stream at certain
offsets. If this function returns GST_FLOW_OK, the result buffer will be
stored in @buffer. The  contents of @buffer is invalid for any other
return value.

This function is supposed to behave exactly like a #GstPadGetRangeFunction.</doc>
      <source-position filename="gsttypefindhelper.h" line="57"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.h"
             line="55">GST_FLOW_OK for success</doc>
        <type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.h"
               line="42">a #GstObject that will handle the getrange request</doc>
          <type name="Gst.Object" c:type="GstObject*"/>
        </parameter>
        <parameter name="offset" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.h"
               line="43">the offset of the range</doc>
          <type name="guint64" c:type="guint64"/>
        </parameter>
        <parameter name="length" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.h"
               line="44">the length of the range</doc>
          <type name="guint" c:type="guint"/>
        </parameter>
        <parameter name="buffer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.h"
               line="45">a memory location to hold the result buffer</doc>
          <type name="Gst.Buffer" c:type="GstBuffer**"/>
        </parameter>
      </parameters>
    </callback>
    <function-macro name="byte_reader_dup_string"
                    c:identifier="gst_byte_reader_dup_string"
                    introspectable="0">
      <source-position filename="gstbytereader.h" line="114"/>
      <parameters>
        <parameter name="reader">
        </parameter>
        <parameter name="str">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="byte_reader_get_string"
                    c:identifier="gst_byte_reader_get_string"
                    introspectable="0">
      <source-position filename="gstbytereader.h" line="128"/>
      <parameters>
        <parameter name="reader">
        </parameter>
        <parameter name="str">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="byte_reader_peek_string"
                    c:identifier="gst_byte_reader_peek_string"
                    version="0.10.24"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbytereader.c"
           line="1118">Returns a constant pointer to the current data position if there is
a NUL-terminated string in the data (this could be just a NUL terminator).
The current position will be maintained. This will work for any
NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc.

This function will fail if no NUL-terminator was found in in the data.</doc>
      <source-position filename="gstbytereader.h" line="131"/>
      <parameters>
        <parameter name="reader">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1120">a #GstByteReader instance</doc>
        </parameter>
        <parameter name="str">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1121">address of a
    #gchar pointer varieble in which to store the result</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="byte_reader_skip_string"
                    c:identifier="gst_byte_reader_skip_string"
                    version="0.10.24"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbytereader.c"
           line="1052">Skips a NUL-terminated string in the #GstByteReader instance, advancing
the current position to the byte after the string. This will work for
any NUL-terminated string with a character width of 8 bits, so ASCII,
UTF-8, ISO-8859-N etc.

This function will fail if no NUL-terminator was found in in the data.</doc>
      <source-position filename="gstbytereader.h" line="121"/>
      <parameters>
        <parameter name="reader">
          <doc xml:space="preserve"
               filename="gstbytereader.c"
               line="1054">a #GstByteReader instance</doc>
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="byte_writer_put_string"
                    c:identifier="gst_byte_writer_put_string"
                    version="0.10.26"
                    introspectable="0">
      <doc xml:space="preserve"
           filename="gstbytewriter.h"
           line="154">Write a NUL-terminated string to @writer (including the terminator). The
string is assumed to be in an 8-bit encoding (e.g. ASCII,UTF-8 or
ISO-8859-1).</doc>
      <source-position filename="gstbytewriter.h" line="167"/>
      <parameters>
        <parameter name="writer">
          <doc xml:space="preserve"
               filename="gstbytewriter.h"
               line="156">#GstByteWriter instance</doc>
        </parameter>
        <parameter name="data">
          <doc xml:space="preserve"
               filename="gstbytewriter.h"
               line="157">Null terminated string</doc>
        </parameter>
      </parameters>
    </function-macro>
    <docsection name="gsttypefindhelper">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="24">Utility functions for elements doing typefinding:
gst_type_find_helper() does typefinding in pull mode, while
gst_type_find_helper_for_buffer() is useful for elements needing to do
typefinding in push mode from a chain function.</doc>
    </docsection>
    <function name="type_find_helper" c:identifier="gst_type_find_helper">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="380">Tries to find what type of data is flowing from the given source #GstPad.

Free-function: gst_caps_unref</doc>
      <source-position filename="gsttypefindhelper.h" line="31"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.c"
             line="389">the #GstCaps corresponding to the data stream.
    Returns #NULL if no #GstCaps matches the data stream.</doc>
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </return-value>
      <parameters>
        <parameter name="src" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="382">A source #GstPad</doc>
          <type name="Gst.Pad" c:type="GstPad*"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="383">The length in bytes</doc>
          <type name="guint64" c:type="guint64"/>
        </parameter>
      </parameters>
    </function>
    <function name="type_find_helper_for_buffer"
              c:identifier="gst_type_find_helper_for_buffer">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="481">Tries to find what type of data is contained in the given #GstBuffer, the
assumption being that the buffer represents the beginning of the stream or
file.

All available typefinders will be called on the data in order of rank. If
a typefinding function returns a probability of #GST_TYPE_FIND_MAXIMUM,
typefinding is stopped immediately and the found caps will be returned
right away. Otherwise, all available typefind functions will the tried,
and the caps with the highest probability will be returned, or #NULL if
the content of the buffer could not be identified.

Free-function: gst_caps_unref</doc>
      <source-position filename="gsttypefindhelper.h" line="33"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.c"
             line="501">the #GstCaps corresponding to the data, or #NULL
    if no type could be found. The caller should free the caps returned
    with gst_caps_unref().</doc>
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="483">object doing the typefinding, or NULL (used for logging)</doc>
          <type name="Gst.Object" c:type="GstObject*"/>
        </parameter>
        <parameter name="buf" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="484">a #GstBuffer with data to typefind</doc>
          <type name="Gst.Buffer" c:type="GstBuffer*"/>
        </parameter>
        <parameter name="prob"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   optional="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="485">location to store the probability of the found
    caps, or #NULL</doc>
          <type name="Gst.TypeFindProbability"
                c:type="GstTypeFindProbability*"/>
        </parameter>
      </parameters>
    </function>
    <function name="type_find_helper_for_extension"
              c:identifier="gst_type_find_helper_for_extension"
              version="0.10.23">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="555">Tries to find the best #GstCaps associated with @extension.

All available typefinders will be checked against the extension in order
of rank. The caps of the first typefinder that can handle @extension will be
returned.

Free-function: gst_caps_unref</doc>
      <source-position filename="gsttypefindhelper.h" line="37"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.c"
             line="568">the #GstCaps corresponding to @extension, or
    #NULL if no type could be found. The caller should free the caps
    returned with gst_caps_unref().</doc>
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </return-value>
      <parameters>
        <parameter name="obj"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="557">object doing the typefinding, or NULL (used for logging)</doc>
          <type name="Gst.Object" c:type="GstObject*"/>
        </parameter>
        <parameter name="extension" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="558">an extension</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="type_find_helper_get_range"
              c:identifier="gst_type_find_helper_get_range">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="349">Utility function to do pull-based typefinding. Unlike gst_type_find_helper()
however, this function will use the specified function @func to obtain the
data needed by the typefind functions, rather than operating on a given
source pad. This is useful mostly for elements like tag demuxers which
strip off data at the beginning and/or end of a file and want to typefind
the stripped data stream before adding their own source pad (the specified
callback can then call the upstream peer pad with offsets adjusted for the
tag size, for example).

Free-function: gst_caps_unref</doc>
      <source-position filename="gsttypefindhelper.h" line="62"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.c"
             line="369">the #GstCaps corresponding to the data stream.
    Returns #NULL if no #GstCaps matches the data stream.</doc>
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="351">A #GstObject that will be passed as first argument to @func</doc>
          <type name="Gst.Object" c:type="GstObject*"/>
        </parameter>
        <parameter name="func" transfer-ownership="none" scope="call">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="352">A generic #GstTypeFindHelperGetRangeFunction that will
       be used to access data at random offsets when doing the typefinding</doc>
          <type name="TypeFindHelperGetRangeFunction"
                c:type="GstTypeFindHelperGetRangeFunction"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="354">The length in bytes</doc>
          <type name="guint64" c:type="guint64"/>
        </parameter>
        <parameter name="prob"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   optional="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="355">location to store the probability of the found
    caps, or #NULL</doc>
          <type name="Gst.TypeFindProbability"
                c:type="GstTypeFindProbability*"/>
        </parameter>
      </parameters>
    </function>
    <function name="type_find_helper_get_range_ext"
              c:identifier="gst_type_find_helper_get_range_ext"
              version="0.10.26">
      <doc xml:space="preserve"
           filename="gsttypefindhelper.c"
           line="218">Utility function to do pull-based typefinding. Unlike gst_type_find_helper()
however, this function will use the specified function @func to obtain the
data needed by the typefind functions, rather than operating on a given
source pad. This is useful mostly for elements like tag demuxers which
strip off data at the beginning and/or end of a file and want to typefind
the stripped data stream before adding their own source pad (the specified
callback can then call the upstream peer pad with offsets adjusted for the
tag size, for example).

When @extension is not NULL, this function will first try the typefind
functions for the given extension, which might speed up the typefinding
in many cases.

Free-function: gst_caps_unref</doc>
      <source-position filename="gsttypefindhelper.h" line="67"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="gsttypefindhelper.c"
             line="243">the #GstCaps corresponding to the data stream.
    Returns #NULL if no #GstCaps matches the data stream.</doc>
        <type name="Gst.Caps" c:type="GstCaps*"/>
      </return-value>
      <parameters>
        <parameter name="obj" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="220">A #GstObject that will be passed as first argument to @func</doc>
          <type name="Gst.Object" c:type="GstObject*"/>
        </parameter>
        <parameter name="func" transfer-ownership="none" scope="call">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="221">A generic #GstTypeFindHelperGetRangeFunction that will
       be used to access data at random offsets when doing the typefinding</doc>
          <type name="TypeFindHelperGetRangeFunction"
                c:type="GstTypeFindHelperGetRangeFunction"/>
        </parameter>
        <parameter name="size" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="223">The length in bytes</doc>
          <type name="guint64" c:type="guint64"/>
        </parameter>
        <parameter name="extension" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="224">extension of the media</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="prob"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   optional="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="gsttypefindhelper.c"
               line="225">location to store the probability of the found
    caps, or #NULL</doc>
          <type name="Gst.TypeFindProbability"
                c:type="GstTypeFindProbability*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
