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/lib.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2020-03-19 16:31:25 +0300
committerJean-Baptiste Kempf <jb@videolan.org>2020-03-21 20:15:10 +0300
commitaca57bf3db00c29e90605656f1015561d1d67c2d (patch)
tree85e863136eff224383189f574712c48c76f47303 /src/lib.c
parent89ea92ba12bab0bd06a12828480af6bf809e065f (diff)
Rewrite refmvs.c
Approximately 12.1% faster while using 27.7% less memory on first 1000 frames of Chimera 8bit/1080p on a Haswell system, single-threaded.
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib.c b/src/lib.c
index 40081bf..cda2e9d 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -191,8 +191,7 @@ COLD int dav1d_open(Dav1dContext **const c_out, const Dav1dSettings *const s) {
t->tile_thread.td.inited = 1;
}
}
- f->libaom_cm = dav1d_alloc_ref_mv_common();
- if (!f->libaom_cm) goto error;
+ dav1d_refmvs_init(&f->rf);
if (c->n_fc > 1) {
if (pthread_mutex_init(&f->frame_thread.td.lock, NULL)) goto error;
if (pthread_cond_init(&f->frame_thread.td.cond, NULL)) {
@@ -544,7 +543,7 @@ static COLD void close_internal(Dav1dContext **const c_out, int flush) {
free(f->lf.lr_mask);
free(f->lf.level);
free(f->lf.tx_lpf_right_edge[0]);
- if (f->libaom_cm) dav1d_free_ref_mv_common(f->libaom_cm);
+ dav1d_refmvs_clear(&f->rf);
dav1d_free_aligned(f->lf.cdef_line_buf);
dav1d_free_aligned(f->lf.lr_lpf_line[0]);
}