diff options
author | Michael Bradshaw <mjbshaw@google.com> | 2018-12-14 03:57:49 +0300 |
---|---|---|
committer | Michael Bradshaw <mjbshaw@google.com> | 2019-01-05 20:24:12 +0300 |
commit | c7007c923a825f4d6b928e7afc24a6b1d6bcc98d (patch) | |
tree | 5f9754ab4437210d96d476e6ad321ca54335b6e6 /src/data.h | |
parent | 9ea56386dee2706d94f3c2dac1720bcf4961aaba (diff) |
Add a user data pointer to Dav1dDataProps
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -35,11 +35,22 @@ */ void dav1d_data_move_ref(Dav1dData *dst, Dav1dData *src); +/** + * Copy the source properties to the destitionatin and increase the + * user_data's reference count (if it's not NULL). + */ +void dav1d_data_props_copy(Dav1dDataProps *dst, const Dav1dDataProps *src); + uint8_t *dav1d_data_create_internal(Dav1dData *buf, size_t sz); int dav1d_data_wrap_internal(Dav1dData *buf, const uint8_t *ptr, size_t sz, void (*free_callback)(const uint8_t *data, void *user_data), void *user_data); +int dav1d_data_wrap_user_data_internal(Dav1dData *buf, + const uint8_t *user_data, + void (*free_callback)(const uint8_t *user_data, + void *cookie), + void *cookie); void dav1d_data_unref_internal(Dav1dData *buf); #endif /* __DAV1D_SRC_DATA_H__ */ |