diff options
author | Steve Lhomme <robux4@ycbcr.xyz> | 2018-10-19 18:34:41 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2018-10-19 18:34:41 +0300 |
commit | 1c42f8bf81d8fc1ac2d7a89dd00337fd70c5ae80 (patch) | |
tree | 8cfb84c01a2bc1daf931420328940750b229146c /src/ref.h | |
parent | 793c50481b0fa407f5b0bd6eda8599c6c3249563 (diff) |
Add support for external picture buffer allocation
Diffstat (limited to 'src/ref.h')
-rw-r--r-- | src/ref.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -35,14 +35,13 @@ struct Dav1dRef { void *data; - size_t size; atomic_int ref_cnt; void (*free_callback)(uint8_t *data, void *user_data); void *user_data; }; Dav1dRef *dav1d_ref_create(size_t size); -Dav1dRef *dav1d_ref_wrap(uint8_t *ptr, size_t sz, +Dav1dRef *dav1d_ref_wrap(uint8_t *ptr, void (*free_callback)(uint8_t *data, void *user_data), void *user_data); void dav1d_ref_inc(Dav1dRef *ref); |