blob: fdb0e76c399af2ba2217c3898d7502f309ff3e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|