diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-02-15 16:04:52 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-02-16 12:36:50 -0800 |
commit | 01743f4ecd42b2974072d31604c2e91941488dd8 (patch) | |
tree | 056a317b7ca394998c3c58faa2373795568501d7 /video/mp_image_pool.h | |
parent | cd0a34feb3675ae3867ae57177000c70e144e721 (diff) | |
download | mpv-01743f4ecd42b2974072d31604c2e91941488dd8.tar.bz2 mpv-01743f4ecd42b2974072d31604c2e91941488dd8.tar.xz |
mp_image_pool: add mp_image_pool_add
Provide a way for the user to add mp_images to the pool. This is required for
dxva2, for which using set_allocator is extremely awkward since all the d3d9
surfaces must be allocated in advance and all together.
Diffstat (limited to 'video/mp_image_pool.h')
-rw-r--r-- | video/mp_image_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image_pool.h b/video/mp_image_pool.h index c2307da887..32beb89d9b 100644 --- a/video/mp_image_pool.h +++ b/video/mp_image_pool.h @@ -8,6 +8,8 @@ struct mp_image_pool; struct mp_image_pool *mp_image_pool_new(int max_count); struct mp_image *mp_image_pool_get(struct mp_image_pool *pool, int fmt, int w, int h); +// the reference to "new" is transferred to the pool +void mp_image_pool_add(struct mp_image_pool *pool, struct mp_image *new); void mp_image_pool_clear(struct mp_image_pool *pool); void mp_image_pool_set_lru(struct mp_image_pool *pool); |