]> git.sesse.net Git - vlc/blobdiff - include/vlc_picture_pool.h
JPEG 2000 decoding support.
[vlc] / include / vlc_picture_pool.h
index 1f22e324eff9742562f9a94c84b33202b632b38f..83a5728e539bee268846b263f1b06004c5356516 100644 (file)
@@ -53,7 +53,7 @@ typedef struct {
 /**
  * It creates a picture_pool_t wrapping the given configuration.
  *
- * It is usefull to avoid useless picture creations/destructions.
+ * It avoids useless picture creations/destructions.
  * The given picture must not have a reference count greater than 1.
  * The pool takes ownership of the picture and MUST not be used directly.
  * When deleted, the pool will release the pictures using picture_Release.
@@ -116,6 +116,11 @@ VLC_EXPORT( void, picture_pool_NonEmpty, ( picture_pool_t *, bool reset ) );
  */
 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 */