2012-12-12 22:55:34 +00:00
|
|
|
#ifndef MPV_MP_IMAGE_POOL_H
|
|
|
|
#define MPV_MP_IMAGE_POOL_H
|
|
|
|
|
2013-07-27 22:10:58 +00:00
|
|
|
struct mp_image_pool;
|
2012-12-12 22:55:34 +00:00
|
|
|
|
|
|
|
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
|