diff options
Diffstat (limited to 'video/mp_image_pool.h')
-rw-r--r-- | video/mp_image_pool.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/video/mp_image_pool.h b/video/mp_image_pool.h new file mode 100644 index 0000000000..fdb0e76c39 --- /dev/null +++ b/video/mp_image_pool.h @@ -0,0 +1,22 @@ +#ifndef MPV_MP_IMAGE_POOL_H +#define MPV_MP_IMAGE_POOL_H + +struct mp_image_pool { + int max_count; + + struct mp_image **images; + int num_images; + struct pool_trampoline *trampoline; +}; + +struct mp_image_pool *mp_image_pool_new(int max_count); +struct mp_image *mp_image_pool_get(struct mp_image_pool *pool, unsigned int fmt, + int w, int h); +void mp_image_pool_clear(struct mp_image_pool *pool); + +struct mp_image *mp_image_pool_new_copy(struct mp_image_pool *pool, + struct mp_image *img); +void mp_image_pool_make_writeable(struct mp_image_pool *pool, + struct mp_image *img); + +#endif |