buffer: improve the buffer memory methods
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 30 Mar 2012 16:04:51 +0000 (18:04 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 30 Mar 2012 16:15:24 +0000 (18:15 +0200)
commit38b96e6c8c7438441ec81e2372a888ca1bd9ee85
tree3d354c1b1fddb8345698a47fc1c251f6f9eac3d2
parentbcb98f409b6842c287b51bd90afad534de61e6ba
buffer: improve the buffer memory methods

gst_buffer_take_memory -> gst_buffer_insert_memory because insert is what the
method does.
Make all methods deal with ranges so that we can replace, merge, remove and map
a certain subset of the memory in a buffer. With the new methods we can make
some code nicer and reuse more code. Being able to deal with a subset of the
buffer memory allows us to optimize more cases later (most notably RTP headers
and payload that could be in different memory objects).
Make some more convenient macros that call the more generic range methods.
13 files changed:
docs/design/part-buffer.txt
docs/gst/gstreamer-sections.txt
docs/random/porting-to-0.11.txt
gst/gstbuffer.c
gst/gstbuffer.h
libs/gst/base/gstadapter.c
libs/gst/base/gstbytewriter.c
plugins/elements/gstfakesrc.c
tests/check/gst/gstbuffer.c
tests/check/libs/bitreader.c
tests/check/libs/bytereader.c
tests/check/libs/typefindhelper.c
win32/common/libgstreamer.def