X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_picture_pool.h;h=a4ab493becddb0240cbc1a066223398ce9238a36;hb=5741789dd874a3156b9c55a99b25bfa2053170b5;hp=2a01d522f698b6be85fb836bb6d4c0d843a0c462;hpb=0eb8d3314e7451c5192b12083614a69ca838ce96;p=vlc diff --git a/include/vlc_picture_pool.h b/include/vlc_picture_pool.h index 2a01d522f6..a4ab493bec 100644 --- a/include/vlc_picture_pool.h +++ b/include/vlc_picture_pool.h @@ -106,5 +106,21 @@ VLC_EXPORT( picture_t *, picture_pool_Get, ( picture_pool_t * ) ); */ VLC_EXPORT( void, picture_pool_NonEmpty, ( picture_pool_t *, bool reset ) ); +/** + * It reserves picture_count pictures from the given pool and returns + * a new pool with thoses pictures. + * + * The master pool must be full. + * The returned pool must be deleted before the master pool. + * When deleted, all pictures return to the master pool. + */ +VLC_EXPORT( picture_pool_t *, picture_pool_Reserve, (picture_pool_t *, int picture_count) ); + +/** + * It returns the size of the given pool. + */ +VLC_EXPORT( int, picture_pool_GetSize, (picture_pool_t *) ); + + #endif /* VLC_PICTURE_POOL_H */