summaryrefslogtreecommitdiff
path: root/libavutil/buffer_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-01-09 09:25:32 +0100
committerAnton Khirnov <anton@khirnov.net>2016-02-14 21:24:39 +0100
commit721a4efc0545548a241080b53ab480e34f366240 (patch)
tree18a42b31590ac34907c2f76d77b92078c2f0f656 /libavutil/buffer_internal.h
parentc084d6d2cfb570b10d8784eb20cc696dfb7c5605 (diff)
buffer: add support for pools using caller data in allocation
This should allow using more complex allocators than simple malloc wrappers.
Diffstat (limited to 'libavutil/buffer_internal.h')
-rw-r--r--libavutil/buffer_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/buffer_internal.h b/libavutil/buffer_internal.h
index 1032a543e5..64344d8262 100644
--- a/libavutil/buffer_internal.h
+++ b/libavutil/buffer_internal.h
@@ -88,7 +88,10 @@ struct AVBufferPool {
volatile int refcount;
int size;
+ void *opaque;
AVBufferRef* (*alloc)(int size);
+ AVBufferRef* (*alloc2)(void *opaque, int size);
+ void (*pool_free)(void *opaque);
};
#endif /* AVUTIL_BUFFER_INTERNAL_H */