diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/foundation/ABuffer.h | 3 |
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; } |