diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2020-11-20 03:37:54 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2020-11-22 16:51:03 +0300 |
commit | 236e1122da50c23d95766682590d546f787684ea (patch) | |
tree | baf702b6c70baefc15a07ebb051c9deeaf843f17 /src/cdf.h | |
parent | dc98fff8757e018a4a74217aade64a10b7afd46d (diff) |
Add more buffer pools
Add buffer pools for miscellaneous smaller buffers that are
repeatedly being freed and reallocated.
Also improve dav1d_ref_create() by consolidating two separate
memory allocations into a single one.
Diffstat (limited to 'src/cdf.h')
-rw-r--r-- | src/cdf.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -140,7 +140,8 @@ typedef struct CdfThreadContext { } CdfThreadContext; void dav1d_cdf_thread_init_static(CdfThreadContext *cdf, int qidx); -int dav1d_cdf_thread_alloc(CdfThreadContext *cdf, struct thread_data *t); +int dav1d_cdf_thread_alloc(Dav1dContext *c, CdfThreadContext *cdf, + struct thread_data *t); void dav1d_cdf_thread_copy(CdfContext *dst, const CdfThreadContext *src); void dav1d_cdf_thread_ref(CdfThreadContext *dst, CdfThreadContext *src); void dav1d_cdf_thread_unref(CdfThreadContext *cdf); |