Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/cdf.h
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2020-11-20 03:37:54 +0300
committerHenrik Gramner <henrik@gramner.com>2020-11-22 16:51:03 +0300
commit236e1122da50c23d95766682590d546f787684ea (patch)
treebaf702b6c70baefc15a07ebb051c9deeaf843f17 /src/cdf.h
parentdc98fff8757e018a4a74217aade64a10b7afd46d (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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cdf.h b/src/cdf.h
index 6d1c29a..36286e5 100644
--- a/src/cdf.h
+++ b/src/cdf.h
@@ -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);