summaryrefslogtreecommitdiff
path: root/libs/gst/base/gstadapter.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-01-25 10:50:03 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-01-25 10:50:03 +0000
commit8be291377174d3e9ca6b171971ae8886e0a71a14 (patch)
tree8a2b3abb3e92313052742afc026fcb36e32549c4 /libs/gst/base/gstadapter.h
parent00a8f6ac84924943c5162c248806d8edededc914 (diff)
API: gst_adapter_copy() that can reduce the amount of memcpy when getting data from the adapter. Fixes #388201.
Original commit message from CVS: Patch by: David Schleef <ds at schleef dot org> * docs/libs/gstreamer-libs-sections.txt: * libs/gst/base/gstadapter.c: (gst_adapter_copy): * libs/gst/base/gstadapter.h: API: gst_adapter_copy() that can reduce the amount of memcpy when getting data from the adapter. Fixes #388201.
Diffstat (limited to 'libs/gst/base/gstadapter.h')
-rw-r--r--libs/gst/base/gstadapter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gst/base/gstadapter.h b/libs/gst/base/gstadapter.h
index 1ae993b62..3dc52c0e3 100644
--- a/libs/gst/base/gstadapter.h
+++ b/libs/gst/base/gstadapter.h
@@ -78,6 +78,8 @@ GstAdapter * gst_adapter_new (void);
void gst_adapter_clear (GstAdapter *adapter);
void gst_adapter_push (GstAdapter *adapter, GstBuffer* buf);
const guint8 * gst_adapter_peek (GstAdapter *adapter, guint size);
+void gst_adapter_copy (GstAdapter *adapter, guint8 *dest,
+ guint offset, guint size);
void gst_adapter_flush (GstAdapter *adapter, guint flush);
guint8* gst_adapter_take (GstAdapter *adapter, guint nbytes);
GstBuffer* gst_adapter_take_buffer (GstAdapter *adapter, guint nbytes);