summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-07-25 07:53:14 -0700
committerLajos Molnar <lajos@google.com>2014-07-25 18:48:36 -0700
commit90b16fbdef406d95a6fb2f9395719dd7b7ca6adb (patch)
tree2191778875d82541447201f29dbf5fd93009909e /include/media
parentd8f33e78f9a09ffda0d7c9cadc1902044849461c (diff)
downloadframeworks_av-90b16fbdef406d95a6fb2f9395719dd7b7ca6adb.zip
frameworks_av-90b16fbdef406d95a6fb2f9395719dd7b7ca6adb.tar.gz
frameworks_av-90b16fbdef406d95a6fb2f9395719dd7b7ca6adb.tar.bz2
stagefright: add ABuffer.CreateAsCopy
Bug: 10706245 Change-Id: I8c4e96a2581a039e9e8237c3e09e2c22226da055
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/foundation/ABuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/stagefright/foundation/ABuffer.h b/include/media/stagefright/foundation/ABuffer.h
index 28f0aed..602f7ab 100644
--- a/include/media/stagefright/foundation/ABuffer.h
+++ b/include/media/stagefright/foundation/ABuffer.h
@@ -42,6 +42,9 @@ struct ABuffer : public RefBase {
void setRange(size_t offset, size_t size);
+ // create buffer from dup of some memory block
+ static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
+
void setInt32Data(int32_t data) { mInt32Data = data; }
int32_t int32Data() const { return mInt32Data; }