diff options
author | wm4 <wm4@nowhere> | 2020-07-14 20:48:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-07-15 22:59:17 +0200 |
commit | f1290f709509b950ee9d7131bfcb6e1be901f69d (patch) | |
tree | 872626c99398e6a1ca41dbb2a1d36b41627f2c81 /video/zimg.h | |
parent | d086421ca478940b8588e33c9f836472a578b199 (diff) | |
download | mpv-f1290f709509b950ee9d7131bfcb6e1be901f69d.tar.bz2 mpv-f1290f709509b950ee9d7131bfcb6e1be901f69d.tar.xz |
zimg: refactor (move around fields)
The intention is to add slice-threading to the wrapper. For that
purpose, move all zimg related state to a new struct mp_zimg_state.
There is now an array of instances of this struct. The intention is to
have one instance for each thread. As of this commit, this is hardcoded
to 1 thread; the following commit extends this.
Diffstat (limited to 'video/zimg.h')
-rw-r--r-- | video/zimg.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/video/zimg.h b/video/zimg.h index 4c1a25ca7d..01e731cc36 100644 --- a/video/zimg.h +++ b/video/zimg.h @@ -40,11 +40,8 @@ struct mp_zimg_context { // Cached zimg state (if any). Private, do not touch. struct m_config_cache *opts_cache; - zimg_filter_graph *zimg_graph; - void *zimg_tmp; - void *zimg_tmp_alloc; - struct mp_zimg_repack *zimg_src; - struct mp_zimg_repack *zimg_dst; + struct mp_zimg_state **states; + int num_states; }; // Allocate a zimg context. Always succeeds. Returns a talloc pointer (use |