+2004-08-12 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * docs/gst/gstreamer-sections.txt:
+ * docs/gst/tmpl/gstbuffer.sgml:
+ * docs/gst/tmpl/gstschedulerfactory.sgml:
+ reorder docs a little, make GstBuffer's more sensible.
+ * gst/gstbuffer.h:
+ API: added GST_BUFFER_FLAG_DELTA_UNIT
+ * gst/gstscheduler.c:
+ comment API addition
+
2004-08-12 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/elements/gstfilesrc.c: (gst_filesrc_get_mmap):
* docs/gst/gstreamer-sections.txt:
* gst/gstscheduler.c: (gst_scheduler_register):
* gst/gstscheduler.h:
+ API:
add gst_scheduler_register shortcut similar to gst_element_register
* gst/schedulers/entryscheduler.c: (plugin_init):
* gst/schedulers/gstbasicscheduler.c: (plugin_init):
* win32/gst-register.vcproj:
* win32/gstspider.vcproj:
update the include and lib dirs to fit standard libraries as
- described in the Win32 manual
+ described in the Win32 manual
2004-08-09 Steve Lhomme <steve.lhomme@free.fr>
* win32/config.h:
* win32/README.txt:
* docs/manual/win32.xml:
- Fixed the plugin and GSTreamer location
+ Fixed the plugin and GStreamer location
2004-07-24 Steve Lhomme <steve.lhomme@free.fr>
* testsuite/states/.cvsignore:
* testsuite/threads/.cvsignore:
keep this up to date, since I seem to be the only one who cares
- about not missing files on commits
+ about not missing files on commits (editor's note: no you don't,
+ but feel free to change them at the time you add stuff instead
+ of later on)
2004-07-21 Benjamin Otte <otte@gnome.org>
</para>
<para>
Alternatively, use gst_buffer_new_and_alloc()
-to create a buffer with preallocated
-data of a given size.
+to create a buffer with preallocated data of a given size.
+</para>
+<para>
+If an element knows what pad you will push the buffer out on, it should use
+gst_pad_alloc_buffer() instead to create a buffer. This allows downstream
+elements to provide special buffers to write in, like hardware buffers.
</para>
<para>
gst_buffer_ref() is used to increase the refcount of a buffer. This must be
</para>
<para>
-Last reviewed on August 30th, 2002 (0.4.0.1)
+Last reviewed on August 12th, 2004 (0.8.5)
</para>
<!-- ##### SECTION See_Also ##### -->
@buffer_private:
@_gst_reserved:
-<!-- ##### USER_FUNCTION GstBufferFreeDataFunc ##### -->
+<!-- ##### FUNCTION gst_buffer_new ##### -->
<para>
</para>
-@buffer:
+@Returns:
-<!-- ##### MACRO GST_BUFFER_TRACE_NAME ##### -->
+<!-- ##### FUNCTION gst_buffer_new_and_alloc ##### -->
<para>
-The name used for tracing memory allocations
-</para>
-
-
-<!-- ##### MACRO GST_BUFFER_REFCOUNT ##### -->
-<para>
-Gets a handle to the refcount structure of the buffer.
</para>
-@buf: a #GstBuffer to get the refcount structure of.
-
-
-<!-- ##### MACRO GST_BUFFER_REFCOUNT_VALUE ##### -->
-<para>
-Gets the current refcount value of the buffer.
-</para>
-
-@buf: a #GstBuffer to get the refcount value of.
+@size:
+@Returns:
-<!-- ##### MACRO GST_BUFFER_COPY_FUNC ##### -->
+<!-- ##### ENUM GstBufferFlag ##### -->
<para>
-Calls the buffer-specific copy function on the given buffer.
-</para>
-
-@buf: a #GstBuffer to copy.
-
-<!-- ##### MACRO GST_BUFFER_FREE_FUNC ##### -->
-<para>
-Calls the buffer-specific free function on the given buffer.
</para>
-@buf: a #GstBuffer to free.
-
+@GST_BUFFER_READONLY:
+@GST_BUFFER_SUBBUFFER:
+@GST_BUFFER_ORIGINAL:
+@GST_BUFFER_DONTFREE:
+@GST_BUFFER_KEY_UNIT:
+@GST_BUFFER_DONTKEEP:
+@GST_BUFFER_IN_CAPS:
+@GST_BUFFER_DELTA_UNIT:
+@GST_BUFFER_FLAG_LAST:
<!-- ##### MACRO GST_BUFFER_FLAGS ##### -->
<para>
@flag: the #GstBufferFlag to clear.
+<!-- ##### MACRO gst_buffer_set_data ##### -->
+<para>
+A convenience function to set the data and size on a buffer
+</para>
+
+@buf: The buffer to modify
+@data: The data to set on the buffer
+@size: The size to set on the buffer
+
+
<!-- ##### MACRO GST_BUFFER_DATA ##### -->
<para>
Retrieves a pointer to the data element of this buffer.
@buf:
-<!-- ##### MACRO GST_BUFFER_FREE_DATA_FUNC ##### -->
+<!-- ##### MACRO gst_buffer_ref ##### -->
<para>
-
+Increases the refcount of the given buffer by one.
</para>
-@buf:
+@buf: a #GstBuffer to increase the refcount of.
-<!-- ##### MACRO GST_BUFFER_PRIVATE ##### -->
+<!-- ##### MACRO gst_buffer_ref_by_count ##### -->
<para>
-
+Increases the refcount of the buffer by the given value.
</para>
-@buf:
+@buf: a #GstBuffer to increase the refcount of.
+@c: the value to add to the refcount.
-<!-- ##### MACRO GST_BUFFER_OFFSET_NONE ##### -->
+<!-- ##### MACRO gst_buffer_unref ##### -->
<para>
-
+Decreases the refcount of the buffer. If the refcount reaches 0, the buffer
+will be freed.
</para>
+@buf: a #GstBuffer to unref.
-<!-- ##### MACRO GST_BUFFER_MAXSIZE_NONE ##### -->
+<!-- ##### FUNCTION gst_buffer_stamp ##### -->
<para>
</para>
+@dest:
+@src:
-<!-- ##### MACRO GST_BUFFER_DURATION_IS_VALID ##### -->
+<!-- ##### MACRO gst_buffer_copy ##### -->
<para>
-
+Copies the given buffer using the copy function of the parent GstData structure.
</para>
-@buffer:
+@buf: a #GstBuffer to copy.
+@Returns: a new #GstBuffer copy of the buffer.
-<!-- ##### MACRO GST_BUFFER_TIMESTAMP_IS_VALID ##### -->
+<!-- ##### MACRO gst_buffer_is_writable ##### -->
<para>
</para>
-@buffer:
+@buf:
-<!-- ##### MACRO GST_BUFFER_OFFSET_IS_VALID ##### -->
+<!-- ##### MACRO gst_buffer_copy_on_write ##### -->
<para>
-
+This function returns a buffer that is safe to write to.
+Copy the buffer if the refcount > 1 so that the newly
+created buffer can be safely written to.
+If the refcount is 1, this function just returns the original buffer.
</para>
-@buffer:
+@buf: a #GstBuffer to copy
+@Returns: the #GstBuffer that can safely be written to.
-<!-- ##### MACRO GST_BUFFER_OFFSET_END_IS_VALID ##### -->
+<!-- ##### FUNCTION gst_buffer_create_sub ##### -->
<para>
</para>
-@buffer:
+@parent:
+@offset:
+@size:
+@Returns:
-<!-- ##### MACRO GST_BUFFER_MAXSIZE_IS_VALID ##### -->
+<!-- ##### FUNCTION gst_buffer_join ##### -->
<para>
</para>
-@buffer:
+@buf1:
+@buf2:
+@Returns:
-<!-- ##### ENUM GstBufferFlag ##### -->
+<!-- ##### FUNCTION gst_buffer_merge ##### -->
<para>
-A set of buffer flags used to describe properties of a #GstBuffer.
+
</para>
-@GST_BUFFER_READONLY: the buffer is read-only.
-@GST_BUFFER_SUBBUFFER: the buffer is a subbuffer, the parent buffer can be
- found with the GST_BUFFER_POOL_PRIVATE() macro.
-@GST_BUFFER_ORIGINAL: buffer is not a copy of another buffer.
-@GST_BUFFER_DONTFREE: do not try to free the data when this buffer is
- unreferenced.
-@GST_BUFFER_KEY_UNIT: the buffer holds a key unit, a unit that can be
- decoded independently of other buffers.
-@GST_BUFFER_DONTKEEP:
-@GST_BUFFER_IN_CAPS: the buffer has been added as a field in a #GstCaps.
-@GST_BUFFER_FLAG_LAST: additional flags can be added starting from this flag.
+@buf1:
+@buf2:
+@Returns:
-<!-- ##### FUNCTION gst_buffer_new ##### -->
+
+<!-- ##### FUNCTION gst_buffer_span ##### -->
<para>
</para>
+@buf1:
+@offset:
+@buf2:
+@len:
@Returns:
-<!-- ##### FUNCTION gst_buffer_new_and_alloc ##### -->
+<!-- ##### FUNCTION gst_buffer_is_span_fast ##### -->
<para>
</para>
-@size:
+@buf1:
+@buf2:
@Returns:
-<!-- ##### MACRO gst_buffer_set_data ##### -->
+<!-- ##### FUNCTION gst_buffer_default_free ##### -->
<para>
-A convenience function to set the data and size on a buffer
+
</para>
-@buf: The buffer to modify
-@data: The data to set on the buffer
-@size: The size to set on the buffer
+@buffer:
-<!-- ##### MACRO gst_buffer_ref ##### -->
+<!-- ##### FUNCTION gst_buffer_default_copy ##### -->
<para>
-Increases the refcount of the given buffer by one.
+
</para>
-@buf: a #GstBuffer to increase the refcount of.
+@buffer:
+@Returns:
-<!-- ##### MACRO gst_buffer_ref_by_count ##### -->
+<!-- ##### MACRO GST_BUFFER_TRACE_NAME ##### -->
<para>
-Increases the refcount of the buffer by the given value.
+The name used for tracing memory allocations
</para>
-@buf: a #GstBuffer to increase the refcount of.
-@c: the value to add to the refcount.
-<!-- ##### MACRO gst_buffer_unref ##### -->
+<!-- ##### MACRO GST_BUFFER_REFCOUNT ##### -->
<para>
-Decreases the refcount of the buffer. If the refcount reaches 0, the buffer
-will be freed.
+Gets a handle to the refcount structure of the buffer.
</para>
-@buf: a #GstBuffer to unref.
+@buf: a #GstBuffer to get the refcount structure of.
-<!-- ##### FUNCTION gst_buffer_stamp ##### -->
+<!-- ##### MACRO GST_BUFFER_REFCOUNT_VALUE ##### -->
<para>
-
+Gets the current refcount value of the buffer.
</para>
-@dest:
-@src:
+@buf: a #GstBuffer to get the refcount value of.
-<!-- ##### MACRO gst_buffer_copy ##### -->
+<!-- ##### MACRO GST_BUFFER_COPY_FUNC ##### -->
<para>
-Copies the given buffer using the copy function of the parent GstData structure.
+Calls the buffer-specific copy function on the given buffer.
</para>
@buf: a #GstBuffer to copy.
-@Returns: a new #GstBuffer copy of the buffer.
-<!-- ##### MACRO gst_buffer_is_writable ##### -->
+<!-- ##### MACRO GST_BUFFER_FREE_FUNC ##### -->
+<para>
+Calls the buffer-specific free function on the given buffer.
+</para>
+
+@buf: a #GstBuffer to free.
+
+
+<!-- ##### MACRO GST_BUFFER_FREE_DATA_FUNC ##### -->
<para>
</para>
@buf:
-<!-- ##### MACRO gst_buffer_copy_on_write ##### -->
+<!-- ##### USER_FUNCTION GstBufferFreeDataFunc ##### -->
<para>
-This function returns a buffer that is safe to write to.
-Copy the buffer if the refcount > 1 so that the newly
-created buffer can be safely written to.
-If the refcount is 1, this function just returns the original buffer.
+
</para>
-@buf: a #GstBuffer to copy
-@Returns: the #GstBuffer that can safely be written to.
+@buffer:
-<!-- ##### FUNCTION gst_buffer_create_sub ##### -->
+<!-- ##### MACRO GST_BUFFER_PRIVATE ##### -->
<para>
</para>
-@parent:
-@offset:
-@size:
-@Returns:
+@buf:
-<!-- ##### FUNCTION gst_buffer_join ##### -->
+<!-- ##### MACRO GST_BUFFER_OFFSET_NONE ##### -->
<para>
</para>
-@buf1:
-@buf2:
-@Returns:
-<!-- ##### FUNCTION gst_buffer_merge ##### -->
+<!-- ##### MACRO GST_BUFFER_MAXSIZE_NONE ##### -->
<para>
</para>
-@buf1:
-@buf2:
-@Returns:
-<!-- ##### FUNCTION gst_buffer_is_span_fast ##### -->
+<!-- ##### MACRO GST_BUFFER_DURATION_IS_VALID ##### -->
<para>
</para>
-@buf1:
-@buf2:
-@Returns:
+@buffer:
-<!-- ##### FUNCTION gst_buffer_span ##### -->
+<!-- ##### MACRO GST_BUFFER_TIMESTAMP_IS_VALID ##### -->
<para>
</para>
-@buf1:
-@offset:
-@buf2:
-@len:
-@Returns:
+@buffer:
-<!-- ##### FUNCTION gst_buffer_default_free ##### -->
+<!-- ##### MACRO GST_BUFFER_OFFSET_IS_VALID ##### -->
<para>
</para>
@buffer:
-<!-- ##### FUNCTION gst_buffer_default_copy ##### -->
+<!-- ##### MACRO GST_BUFFER_OFFSET_END_IS_VALID ##### -->
+<para>
+
+</para>
+
+@buffer:
+
+
+<!-- ##### MACRO GST_BUFFER_MAXSIZE_IS_VALID ##### -->
<para>
</para>
@buffer:
-@Returns: