]> git.sesse.net Git - vlc/blobdiff - include/vlc_picture_pool.h
Allowed vout_display_DeleteWindow(vd, NULL) to destroy unused window.
[vlc] / include / vlc_picture_pool.h
index 2a01d522f698b6be85fb836bb6d4c0d843a0c462..a4ab493becddb0240cbc1a066223398ce9238a36 100644 (file)
@@ -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 */